Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

A remote application interface (RAPI) version of this function exists and is called CeGlobalMemoryStatus (RAPI).

Syntax

void GlobalMemoryStatus(
  LPMEMORYSTATUS 
lpBuffer
);

Parameters

lpBuffer

[out] Pointer to a MEMORYSTATUSstructure.

The GlobalMemoryStatusfunction stores information about current memory availability in this structure.

Return Value

None.

Remarks

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

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

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Memory Management Functions
MEMORYSTATUS

Other Resources