Export (0) Print
Expand All

RAWKEYBOARD structure

Contains information about the state of the keyboard.

Syntax


typedef struct tagRAWKEYBOARD {
  USHORT MakeCode;
  USHORT Flags;
  USHORT Reserved;
  USHORT VKey;
  UINT   Message;
  ULONG  ExtraInformation;
} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;

Members

MakeCode

Type: USHORT

The scan code from the key depression. The scan code for keyboard overrun is KEYBOARD_OVERRUN_MAKE_CODE.

Flags

Type: USHORT

Flags for scan code information. It can be one or more of the following.

ValueMeaning
RI_KEY_BREAK
1

The key is up.

RI_KEY_E0
2

This is the left version of the key.

RI_KEY_E1
4

This is the right version of the key.

RI_KEY_MAKE
0

The key is down.

 

Reserved

Type: USHORT

Reserved; must be zero.

VKey

Type: USHORT

Windows message compatible virtual-key code. For more information, see Virtual Key Codes.

Message

Type: UINT

The corresponding window message, for example WM_KEYDOWN, WM_SYSKEYDOWN, and so forth.

ExtraInformation

Type: ULONG

The device-specific additional information for the event.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
GetRawInputDeviceInfo
RAWINPUT
Conceptual
Raw Input

 

 

Community Additions

ADD
Show:
© 2015 Microsoft