INPUT_INJECTION_VALUE structure (winuser.h)

Contains the input injection details.

Syntax

typedef struct tagINPUT_INJECTION_VALUE {
  USHORT page;
  USHORT usage;
  INT32  value;
  USHORT index;
} INPUT_INJECTION_VALUE, *PINPUT_INJECTION_VALUE;

Members

page

The Usage Page ID, such as VR Controls Page (0x03) or Game Controls Page (0x05).

usage

The Usage ID associated with a Usage Page, such as Turn Right/Left (21) or Move Right/Left (24) for a Game Controls Page.

value

The injected input value.

index

The Usage index, such as the selected item in a radio button set.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Header winuser.h

See also

Universal Serial Bus HID Usage Tables - USB.org