Previous Next

INTERNAL_I8042_HOOK_MOUSE

INTERNAL_I8042_HOOK_MOUSE is used by I8042prt to connect an optional callback routine that supplements the operation of the mouse ISR. The callback can be supplied by an optional, vendor-supplied, upper-level filter driver.

typedef struct _INTERNAL_I8042_HOOK_MOUSE {
  OUT PVOID  Context;
  OUT PI8042_MOUSE_ISR  IsrRoutine;
  IN PI8042_ISR_WRITE_PORT  IsrWritePort;
  IN PI8042_QUEUE_PACKET  QueueMousePacket;
  IN PVOID CallContext;
} INTERNAL_I8042_HOOK_MOUSE, *PINTERNAL_I8042_HOOK_MOUSE;

Members

Context
Pointer, if non-NULL, to the context that must be used with the IsrRoutine routine. Otherwise, Context is NULL.
IsrRoutine
Pointer, if non-NULL, to an optional PI8042_MOUSE_ISR callback that customizes the operation of the I8042prt mouse ISR. Otherwise, IsrRoutine is NULL.
IsrWritePort
Pointer to the system-supplied mouse PI8042_ISR_WRITE_PORT callback, which writes data to a mouse.
QueueMousePacket
Pointer to the system-supplied mouse PI8042_QUEUE_PACKET callback, which queues a mouse input data packet for processing by the mouse's ISR deferred procedure call.
CallContext
Pointer to the context that must be used with the IsrWritePort and QueueMousePacket routines.

Headers

Declared in ntdd8042.h. Include ntdd8042.h.

Comments

This structure is only used with an IOCTL_INTERNAL_I8042_HOOK_MOUSE request.

Context, InitializationRoutine, and IsrRoutine can be supplied by an optional, vendor-supplied, upper-level filter driver.

IsrWritePort, QueueMousePacket, and CallContext are supplied by I8042prt.

For more information about connecting to a mouse device and hooking callbacks for a mouse device, see Features of the Kbfiltr and Moufiltr Drivers and Operation of Non-HIDClass Keyboard and Mouse Drivers.

See Also

IOCTL_INTERNAL_I8042_HOOK_MOUSE, MouFilter_IsrHook, PI8042_ISR_WRITE_PORT, PI8042_MOUSE_ISR, PI8042_QUEUE_PACKET