Getting Memory Status and Processor Information

Send Feedback

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 Pocket PC and Smartphone 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

Handling Application Hibernation | Handling Low Memory States | How to: Determine Available Memory | How to: Determine Battery Status | Preventing Automatic Power Down | How to: Program Applications to Turn the Smartphone Backlight Off and On | How to: Suspend the Device | Managing Variables, Stacks, and Heaps on Mobile Devices | Memory and Power Management | System Out of Memory Dialog Box

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.