OUTPUT_PACKET structure

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 <b>Bytes</b>.
    
    
        `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 <a href="https://docs.microsoft.com/windows-hardware/drivers/ddi/ntdd8042/nc-ntdd8042-pi8042_keyboard_isr">PI8042_KEYBOARD_ISR</a> callback routine and a <a href="https://docs.microsoft.com/windows-hardware/drivers/ddi/ntdd8042/nc-ntdd8042-pi8042_mouse_isr">PI8042_MOUSE_ISR</a> callback routine.

Requirements

   
Header ntdd8042.h (include Ntdd8042.h)
## See Also

    <a href="https://docs.microsoft.com/previous-versions/ff542294(v=vs.85)">KbFilter_IsrHook</a>

MouFilter_IsrHook

PI8042_KEYBOARD_ISR

PI8042_MOUSE_ISR