Click to Rate and Give Feedback
MSDN
MSDN Library
Core OS Services
Core OS Reference
 GlobalMemoryStatus

  Switch on low bandwidth view
GlobalMemoryStatus
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

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).


void GlobalMemoryStatus(
  LPMEMORYSTATUS lpBuffer
);
lpBuffer

[out] Pointer to a MEMORYSTATUS structure.

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

None.

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.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Reference

Memory Management Functions
MEMORYSTATUS

Other Resources


Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker