次の方法で共有


TouchPanelPowerHandler (Compact 2013)

3/26/2014

This function sets the hardware appropriately, when the system is turning on or off.

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

In the Compact 2013 touch proxy driver, this function does nothing and returns. This is because the Compact 2013 touch driver is a stream interface driver, so the Device Manager loads the driver and provides power management for it.

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

tchproxy.dll

See Also

Reference

Touch Proxy Driver Functions