Memory Status and Information
Use the Windows CE GetSystemInfo function to return information about the processor and memory characteristics of the device through the Windows CE SYSTEM_INFO structure.
All devices running Windows Mobile 2002 software and later are based on the ARM4 CPU, and the wProcessorArchitecture structure member reports PROCESSOR_ARCHITECTURE_ARM. The emulator reports PROCESSOR_ARCHITECTURE_INTEL with a wProcessorLevel of 5.
Both processor architectures are based on a 4-KB page size with a 64-KB allocation granularity. The allocation granularity means that each page allocation must start on a 64-KB boundary.
The Windows CE GlobalMemoryStatus function returns information about the current state of memory on the device through the MEMORYSTATUS structure. The dwTotalPhys and dwAvailPhys members of the structure contain, respectively, the total amount of program memory and the amount that is currently available.
See Also
How to: Determine Available Memory
How to: Determine Battery Status
How to: Prevent Automatic Power Down
Managing Variables, Stacks, and Heaps on Mobile Devices
System Out of Memory Dialog Box
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.