Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
Windows Mobile Supported Windows Embedded CE Supported
4/14/2010

The function based on this prototype handles system power-state change notifications.

Syntax

typedef void (*PFN_KEYBD_DRIVER_POWER_HANDLER)(
  BOOL 
bOff
);

Parameters

bOff

[in] TRUE if the system is powering-down. FALSE if the system is powering-up.

Return Value

None.

Remarks

Layout Manager calls each PDD's power handler with the value of bOff.

This function runs in kernel context and assumes that interrupts are disabled because it works directly with microprocessor registers. It does not make any system calls or cause tasks to be rescheduled. This function is restricted to reading and writing to pre-allocated memory. Any subroutines called from this function must follow this restriction.

This function resets the auto-repeat state.

On receiving a power-down event, the sample driver empties the 8042-keyboard controller's data buffer.

Requirements

Header keybddr.h
Library layoutmanager.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later