29#define DD_KEYBOARD_DEVICE_NAME "\\Device\\KeyboardClass"
30#define DD_KEYBOARD_DEVICE_NAME_U L"\\Device\\KeyboardClass"
32#define IOCTL_KEYBOARD_QUERY_ATTRIBUTES \
33 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)
35#define IOCTL_KEYBOARD_QUERY_INDICATORS \
36 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS)
38#define IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION \
39 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0020, METHOD_BUFFERED, FILE_ANY_ACCESS)
41#define IOCTL_KEYBOARD_QUERY_TYPEMATIC \
42 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS)
44#define IOCTL_KEYBOARD_SET_TYPEMATIC \
45 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0001, METHOD_BUFFERED, FILE_ANY_ACCESS)
47#define IOCTL_KEYBOARD_SET_INDICATORS \
48 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0002, METHOD_BUFFERED, FILE_ANY_ACCESS)
50#define IOCTL_KEYBOARD_INSERT_DATA \
51 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0040, METHOD_BUFFERED, FILE_ANY_ACCESS)
53#define IOCTL_KEYBOARD_QUERY_IME_STATUS \
54 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0400, METHOD_BUFFERED, FILE_ANY_ACCESS)
56#define IOCTL_KEYBOARD_SET_IME_STATUS \
57 CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0401, METHOD_BUFFERED, FILE_ANY_ACCESS)
60 0x884b96c3, 0x56ef, 0x11d1, 0xbc, 0x8c, 0x00, 0xa0, 0xc9, 0x14, 0x05, 0xdd);
62#define GUID_CLASS_KEYBOARD GUID_DEVINTERFACE_KEYBOARD
64#define KEYBOARD_ERROR_VALUE_BASE 10000
67#define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
74#define KEY_TERMSRV_SET_LED 8
75#define KEY_TERMSRV_SHADOW 0x10
76#define KEY_TERMSRV_VKPACKET 0x20
78#define KEYBOARD_LED_INJECTED 0x8000
79#define KEYBOARD_SHADOW 0x4000
80#define KEYBOARD_KANA_LOCK_ON 8
81#define KEYBOARD_CAPS_LOCK_ON 4
82#define KEYBOARD_NUM_LOCK_ON 2
83#define KEYBOARD_SCROLL_LOCK_ON 1
105#define ENHANCED_KEYBOARD(Id) ((Id).Type == 2 || (Id).Type == 4 || FAREAST_KEYBOARD(Id))
106#define FAREAST_KEYBOARD(Id) ((Id).Type == 7 || (Id).Type == 8)
struct _KEYBOARD_INPUT_DATA KEYBOARD_INPUT_DATA
struct _KEYBOARD_IME_STATUS * PKEYBOARD_IME_STATUS
struct _INDICATOR_LIST INDICATOR_LIST
struct _KEYBOARD_TYPEMATIC_PARAMETERS KEYBOARD_TYPEMATIC_PARAMETERS
struct _INDICATOR_LIST * PINDICATOR_LIST
struct _KEYBOARD_INDICATOR_TRANSLATION KEYBOARD_INDICATOR_TRANSLATION
struct _KEYBOARD_ID * PKEYBOARD_ID
struct _KEYBOARD_ID KEYBOARD_ID
struct _KEYBOARD_UNIT_ID_PARAMETER KEYBOARD_UNIT_ID_PARAMETER
struct _KEYBOARD_IME_STATUS KEYBOARD_IME_STATUS
struct _KEYBOARD_TYPEMATIC_PARAMETERS * PKEYBOARD_TYPEMATIC_PARAMETERS
struct _KEYBOARD_ATTRIBUTES KEYBOARD_ATTRIBUTES
struct _KEYBOARD_UNIT_ID_PARAMETER * PKEYBOARD_UNIT_ID_PARAMETER
struct _KEYBOARD_INDICATOR_PARAMETERS * PKEYBOARD_INDICATOR_PARAMETERS
struct _KEYBOARD_ATTRIBUTES * PKEYBOARD_ATTRIBUTES
struct _KEYBOARD_INDICATOR_PARAMETERS KEYBOARD_INDICATOR_PARAMETERS
struct _KEYBOARD_INPUT_DATA * PKEYBOARD_INPUT_DATA
struct _KEYBOARD_INDICATOR_TRANSLATION * PKEYBOARD_INDICATOR_TRANSLATION
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
KEYBOARD_ID KeyboardIdentifier
KEYBOARD_TYPEMATIC_PARAMETERS KeyRepeatMaximum
ULONG InputDataQueueLength
USHORT NumberOfIndicators
KEYBOARD_TYPEMATIC_PARAMETERS KeyRepeatMinimum
USHORT NumberOfFunctionKeys
INDICATOR_LIST IndicatorList[1]
USHORT NumberOfIndicatorKeys