TouchPanelPowerHandler (Windows Embedded CE 6.0)
1/6/2010
This function handles power-state change notifications.
Syntax
VOID TouchPanelPowerHandler(
BOOL bOff
);
Parameters
- bOff
[in] Indicator to specify whether the system is turning off or on. TRUE indicates that the system is turning off. FALSE indicates that the system is turning on.
Return Value
None.
Remarks
This function executes in a kernel context and should not make any system calls. As with all power-down handlers, this function cannot call functions in other DLLs, memory allocators, debugging-output functions, or do anything that could cause a page fault. If power is shutting off, it should save the device state in local storage only, set a flag indicating that power is shutting off, and exit. If power is restoring, it should restore the saved device state and clear the power-off flag.
Requirements
Header | tchddi.h |
Library | Tchmain.lib |
Windows Embedded CE | Windows CE 1.0 and later |