Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Windows .dll question: getmemorystatusex

From: gregg:pointillistic at: 14-Oct-2008 10:05

Hi Bo, asn> I wrote the following snippet of code to try to get the size of physical asn> memory on a computer, but it isn't working. Does anyone know why? asn> ullTotalPhys [long] asn> ullAvailPhys [long] asn> ullTotalPagefile [long] asn> ullAvailPageFile [long] asn> ullTotalVirtual [long] asn> ullAvailVirtual [long] asn> ullAvailExtendedVirtual [long] Long is still four bytes (a DWORD). You need a 64-bit type for those params, and then to convert them to decimal values in REBOL (or wait for R3 and convince RT to add 64-bit int support to the library interface). You could also use an intermediary DLL to do it, exposing a REBOL friendly func. -- Gregg