次の方法で共有


IRAPISession::CeGlobalMemoryStatus

Send Feedback

This method gets information on the physical and virtual memory of the system on a remote Microsoft® Windows® CE–based device.

void CeGlobalMemoryStatus(
  LPMEMORYSTATUS lpmst
);

Parameters

  • lpmst
    [out] Pointer to a MEMORYSTATUS structure in which information about current memory availability is stored.

Return Values

None.

Note   This function generates a RAPI level error if it cannot properly marshal parameters between the Windows Mobile–based device and the desktop computer. In this case, you can trace the error by calling the IRAPISession::CeGetLastError method.

Remarks

You can use the IRAPISession::CeGlobalMemoryStatus method to determine how much memory your application can allocate without severely impacting other applications.

The information returned by the IRAPISession::CeGlobalMemoryStatus function is volatile. There is no guarantee that two sequential calls to this function will get the same information.

Requirements

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib

See Also

IRAPISession::IUnknown

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.