OUTPUT_PACKET structure (ntdd8042.h)

OUTPUT_PACKET contains information about the data that is being written to a keyboard or mouse device by I8042prt.

Syntax

typedef struct _OUTPUT_PACKET {
  PUCHAR         Bytes;
  ULONG          CurrentByte;
  ULONG          ByteCount;
  TRANSMIT_STATE State;
} OUTPUT_PACKET, *POUTPUT_PACKET;

Members

Bytes

Pointer to an array of bytes being written to an i8042 port device.

CurrentByte

Specifies the index of the next byte to write.

ByteCount

Specifies the number of bytes in the array of bytes located at Bytes.

State

Specifies one of the following write states:

typedef enum _TRANSMIT_STATE {
    Idle = 0,
    SendingBytes
} TRANSMIT_STATE;

Idle

Identifies that a write is not in progress.

SendingBytes

Identifies that a write is in progress.

Remarks

This structure is used with a PI8042_KEYBOARD_ISR callback routine and a PI8042_MOUSE_ISR callback routine.

Requirements

Requirement Value
Header ntdd8042.h (include Ntdd8042.h)

See also

KbFilter_IsrHook

MouFilter_IsrHook

PI8042_KEYBOARD_ISR

PI8042_MOUSE_ISR