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

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to