
Chapter 7 — Programming
182 CN2B Mobile Computer User’s Manual
NLEDSetDevice
Usage
#include “nled.h”
Syntax
BOOL NLEDSetDevice ( UINT nDeviceId, void *pInput );
Parameters
nDeviceId Integer specifying the device identification. The following is defined:
NLED_SETTINGS_INFO_ID Contains information about the desired LED settings.
pInput Pointer to the buffer that contains the NLED_SETTINGS_INFO structure.
Reboot Functions
There are several methods, via Kernel I/O Control functions, that an appli-
cation program can use to force the CN2B Computer to reboot.
IOCTL_HAL_REBOOT
IOCTL_HAL_REBOOT performs a warm-boot. See page 159.
IOCTL_HAL_COLDBOOT
Invoking with this forces a cold reboot, resets the CN2B Computer, reloads
Windows CE as if a power-up was performed, and discards the contents of
the Windows CE RAM-based object. See page 157.
IOCTL_HAL_WARMBOOT
This function is supported on CN2B Computers. It performs a warm boot
of the system, preserving the object store. See page 156.
Remapping the Keypad
Note: Only experienced application developers should perform this func-
tion of remapping the keypad. Data within the CN2B Computer could be
lost should any problems occur.
Applications have the ability to remap keys on the CN2B keypad. This
allows applications to enable keys that would otherwise not be available,
such as the [F1] function key. Also, to disable keys that should not be avail
-
able, such as the alpha key because no alpha entry is required. Use caution
when attempting to remap the keypad because improper remapping may
cause the keypad to become unusable. This can be corrected by performing
a cold-boot on the device that reloads the default keymap.
Kommentare zu diesen Handbüchern