Compartilhar via


PFN_KEYBD_DRIVER_POWER_HANDLER (Compact 2013)

3/26/2014

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

See Also

Reference

Keyboard Driver MDD Functions