GlobalMemoryStatus

This function gets information on the physical and virtual memory of the system.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.0 and later

Syntax

void GlobalMemoryStatus( LPMEMORYSTATUS lpmst );

Parameters

lpBuffer

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

Return Values

None.

Remarks

You can use the GlobalMemoryStatus function to determine how much memory your application can allocate without severely impacting other applications.

The information returned by the GlobalMemoryStatus function is volatile. There is no guarantee that two sequential calls to this function will return the same information.