RAM info?

Just starting out? Need help? Post your questions and find answers here.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

RAM info?

Post by nicolaus »

Hello,

How i can find informations about the RAM in a system?
I want know how many RAM is in the system and how many is momently free and how many is in use.

Thanks,
Nico
SoS
User
User
Posts: 13
Joined: Sat Feb 18, 2006 4:46 am

Post by SoS »

http://msdn.microsoft.com/library/defau ... ex_str.asp

Code: Select all

memex.MEMORYSTATUSEX

memex\dwLength = SizeOf(MEMORYSTATUSEX)

If GlobalMemoryStatusEx_(@memex) 
  debug str(memex\dwMemoryLoad) +" %"
  debug str(memex\ullTotalPhys /1024/1024)+" MB"
  debug str(memex\ullAvailPhys /1024/1024)+" MB"
  debug str((memex\ullTotalPageFile /1024/1024)-(memex\ullTotalPhys /1024/1024))+" MB"
  debug str((memex\ullAvailPageFile /1024/1024)-(memex\ullTotalPhys /1024/1024))+" MB"
endif
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

thanks for fast reply.
i think your calculation for GB is not right or?
SoS
User
User
Posts: 13
Joined: Sat Feb 18, 2006 4:46 am

Post by SoS »

ups,edited ;)
Post Reply