GlobalMemoryStatus
The GlobalMemoryStatus
function retrieves information about current available memory. The function
returns information about both physical and virtual memory. This function
supersedes the GetFreeSpace function.
VOID GlobalMemoryStatus(
LPMEMORYSTATUS lpBuffer |
// pointer to the
memory status structure |
); |
|
Parameters
lpBuffer
Points to a MEMORYSTATUS
Return Values
This function
does not return a value.
Remarks
An application
can use the GlobalMemoryStatus function to determine how much memory it
can allocate without severely impacting other applications.
The
information returned is volatile, and there is no guarantee that two sequential
calls to this function will return the same information.
See Also