Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1004 Bytes

GlobalMemoryStatus.md

File metadata and controls

48 lines (30 loc) · 1004 Bytes

Home

Function name : GlobalMemoryStatus

Group: Memory Management - Library: kernel32


The GlobalMemoryStatus function obtains information about the system"s current usage of both physical and virtual memory.


Code examples:

Displaying OS Memory Status

Declaration:

VOID GlobalMemoryStatus(
  LPMEMORYSTATUS lpBuffer   // memory status structure
);  

FoxPro declaration:

DECLARE GlobalMemoryStatus IN kernel32 STRING @ lpBuffer
  

Parameters:

lpBuffer [out] Pointer to a MEMORYSTATUS structure. The GlobalMemoryStatus function stores information about current memory availability into this structure


Return value:

This function does not return a value


Comments:

On computers with more than 4 GB of memory, the MEMORYSTATUS structure can return incorrect information.