GlobalMemoryStatus  TGXS2I 

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 MEMORYSTATUSJDN.LF structure in which information about current memory availability is returned. Before calling this function, the calling process should set the dwLength member of this structure.

 

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

MEMORYSTATUS