Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Use the Windows Embedded CE GetSystemInfofunction to return information about the processor and memory characteristics of the device through the Windows Embedded CE SYSTEM_INFOstructure.
All devices running Pocket PC 2002 and Smartphone 2002 software and later are based on the ARM4 CPU, and the wProcessorArchitecturestructure member reports PROCESSOR_ARCHITECTURE_ARM. The emulator reports PROCESSOR_ARCHITECTURE_INTELwith a wProcessorLevelof 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 Embedded CE GlobalMemoryStatusfunction returns information about the current state of memory on the device through the MEMORYSTATUSstructure. The dwTotalPhysand dwAvailPhysmembers of the structure contain, respectively, the total amount of program memory and the amount that is currently available.
See Also
Concepts
Handling Application HibernationHandling Low Memory States
How to: Determine Available Memory
How to: Determine Battery Status
Preventing Automatic Power Down
How to: Program an Application for Windows Mobile Standard to Turn the Backlight On or Off
How to: Suspend the Device
Managing Variables, Stacks, and Heaps on Windows Mobile Devices
System Out of Memory Dialog Box