[futurebasic] Re: [FB] [FB^3] Finding Ram

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2002 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Tue, 8 Jan 2002 17:34:16 +1300
>Hi all,
>I need to get the amount of ram installed in the computer my programming is
>running on. This is total physical ram not application memory. Does anybody
>know how to get this info. I suspect it's a gestalt thing but couldn't find
>anything in the examples or headers.
>
>Thanks,
>Craig



local fn PhysicalRamSize
dim as long @ response
// set response to zero if Gestalt returns a non-zero (error) value
if fn Gestalt( _gestaltPhysicalRAMSize, response) then response = 0
end fn = response

print fn PhysicalRamSize " bytes"

do
handleevents
until 0



Robert P.