Function Reference


Retrieves the amount of RAM that is physically installed on the computer

#include <WinAPISys.au3>
_WinAPI_GetPhysicallyInstalledSystemMemory ( )

Return Value

Success: The amount of physically installed RAM, in kilobytes.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.


The amount of memory available to the operating system can be less than the amount of memory physically installed
in the computer because the BIOS and some drivers may reserve memory as I/O regions for memory-mapped devices,
making the memory unavailable to the operating system and applications.

This function requires Windows Vista with SP1 or later.

See Also

Search GetPhysicallyInstalledSystemMemory in MSDN Library.