次の方法で共有


KbFilter_InitializationRoutine routine

The KbFilter_InitializationRoutine routine is a template for a PI8042_KEYBOARD_INITIALIZATION_ROUTINE callback routine that supplements I8042prt's keyboard initialization.

Syntax

NTSTATUS KbFilter_InitializationRoutine(
  _In_  PDEVICE_OBJECT          DeviceObject,
  _In_  PVOID                   SynchFuncContext,
  _In_  PI8042_SYNCH_READ_PORT  ReadPort,
  _In_  PI8042_SYNCH_WRITE_PORT WritePort,
  _Out_ PBOOLEAN                TurnTranslationOn
);

Parameters

  • DeviceObject [in]
    Pointer to the device object that is the context for this callback.

  • SynchFuncContext [in]
    Pointer to the context for the routines pointed to by ReadPort and Writeport.

  • ReadPort [in]
    Pointer to the system-supplied PI8042_SYNCH_READ_PORT callback that reads from the port.

  • WritePort [in]
    Pointer to the system-supplied PI8042_SYNCH_WRITE_PORT callback that writes to the port.

  • TurnTranslationOn [out]
    Specifies, if TRUE, to turn translation on. Otherwise, translation is turned off.

Return value

KbFilter_InitializationRoutine returns an appropriate NTSTATUS code.

Remarks

KbFilter_InitializationRoutine is not needed if I8042prt's default initialization of a keyboard is sufficient.

I8042prt calls KbFilter_InitializationRoutine when it initializes the keyboard. Default keyboard initialization includes the following operations: reset the keyboard, set the typematic rate and delay, and set the light-emitting diodes (LED).

Requirements

Target platform

Header

Ntdd8042.h (include Ntdd8042.h)

IRQL

DISPATCH_LEVEL

See also

PI8042_KEYBOARD_INITIALIZATION_ROUTINE

PI8042_SYNCH_READ_PORT

PI8042_SYNCH_WRITE_PORT

 

 

Send comments about this topic to Microsoft