GlobalMemoryStatus (Compact 2013)

3/28/2014

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

Syntax

void GlobalMemoryStatus(
  LPMEMORYSTATUS lpBuffer
);

Parameters

  • lpBuffer
    [out] Pointer to a MEMORYSTATUS structure.

    The GlobalMemoryStatus function stores information about current memory availability in this structure.

Return Value

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.

Requirements

Header

winbase.h

Library

coredll.lib

See Also

Reference

Memory Management Functions
MEMORYSTATUS