This function handles power-state change notifications.
VOID TouchPanelPowerHandler( BOOL bOff );
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.