
Chapter 4: Reset
Programmatic Initiation of Resets
Psion Mobile Devices Developers Guide
34
4.3 Programmatic Initiation of Resets
Warm reset, reset, and cold reset
The Mobile Devices SDK includes APIs that can initiate these resets.
WarmBoot: Initiates either a warm reset or a reset, whichever is available on the operating system of
the device.
ColdBoot: Initiates a cold reset. This is only available on Windows CE systems.
Hardware reset
A hardware reset cannot be initiated programmatically.
Clean start
The Mobile Devices SDK does not support clean start. For an alternative method—which is not supported on
all Psion computers—of programmatically initiating a clean start, see PsionCleanStart.cpp at:
community.psion.com/downloads/developer_sdkhdk/m/sample__demo_code/25345.aspx
The API used in this example does the following:
• Resets the system hive (registry).
• Resets the user hive (user registry, HKEY_CURRENT_USER).
• Sets a flag for Total Recall auto-restore.
• Formats the root file system, or clears the object store (Windows CE only).
• Formats the boot file system.
• Resets the real time clock (RTC).
This API has a flag that by default selects all of these options, but you can select a subset of them; however,
a true clean start must include all of them: If they are not all selected, then it is not a clean start.
Boot to BooSt
For a method—which is not supported on all Psion computers—of programmatically booting to BooSt see:
community.psion.com/downloads/developer_sdkhdk/m/sample__demo_code/31228.aspx
4.3.1 Controlling Keyboard Resets
On each Psion computer there are key combinations that reset the computer. See Section 4.2 Manual Initi-
ation of Resets on page 31 for a list. The key combinations can be enabled or disabled using the Mobile
Devices SDK. The following options are available:
Note: To restart Windows use WarmBoot.
Warning: ColdBoot reinitializes all the hardware as well as restarting Windows.
Reset Type Description
BoostResetKey Enabled: Boot to BooSt (bootstrap menu) reset key sequence enabled.
Disabled: When the BooSt reset key combination is entered, the device
performs a cold reset.
ColdResetKey Not valid on Windows Mobile-based devices.
Enabled: Cold reset key sequence enabled.
Disabled: Cold reset key sequence disabled.
WarmResetKey Enabled: Warm reset key sequence enabled.
Disabled: Warm reset key sequence disabled.
Comentarios a estos manuales