// hidpi.h
typedef struct _HIDP_DATA {
USHORT DataIndex;
USHORT Reserved;
union {
ULONG RawValue;
BOOLEAN On;
};
} HIDP_DATA, *PHIDP_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
The HIDP_DATA structure contains information about a HID control's data index and value in a HID report.
DataIndexSpecifies the data index of a control.
ReservedReserved for internal system use only.
RawValueContains the binary data extracted from a report if the control is a value.
OnSpecifies, if TRUE and the control is a button, that the button is set to ON (1). Otherwise, if On is FALSE and the control is a button, the button is set to OFF (zero).
See Extracting and Setting Control Data by Data Indices.