TouchPanelPowerHandler

This function handles power-state change notifications.

Syntax

VOID TouchPanelPowerHandler( BOOL bOff );

Parameters

bOff
Boolean. TRUE indicates that the system is being turned off. FALSE indicates the system is being turned on.

Remarks

This function is called 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 being shut off, it should save the device state in local storage only, set a flag indicating that power is being shut off, and exit. If power is being restored, it should restore the saved device state and clear the power-off flag.

This function is defined in the header file Tchddi.h file and is available in Windows CE version 1.0 and later.