ReactOS 0.4.16-dev-257-g6aa11ac
ntddkbd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _KEYBOARD_INPUT_DATA
 
struct  _KEYBOARD_TYPEMATIC_PARAMETERS
 
struct  _KEYBOARD_ID
 
struct  _KEYBOARD_INDICATOR_PARAMETERS
 
struct  _INDICATOR_LIST
 
struct  _KEYBOARD_INDICATOR_TRANSLATION
 
struct  _KEYBOARD_ATTRIBUTES
 
struct  _KEYBOARD_UNIT_ID_PARAMETER
 
struct  _KEYBOARD_IME_STATUS
 

Macros

#define DD_KEYBOARD_DEVICE_NAME   "\\Device\\KeyboardClass"
 
#define DD_KEYBOARD_DEVICE_NAME_U   L"\\Device\\KeyboardClass"
 
#define IOCTL_KEYBOARD_QUERY_ATTRIBUTES    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_QUERY_INDICATORS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0020, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_QUERY_TYPEMATIC    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_SET_TYPEMATIC    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0001, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_SET_INDICATORS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0002, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_INSERT_DATA    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0040, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_QUERY_IME_STATUS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0400, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_KEYBOARD_SET_IME_STATUS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0401, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define GUID_CLASS_KEYBOARD   GUID_DEVINTERFACE_KEYBOARD /* Obsolete */
 
#define KEYBOARD_ERROR_VALUE_BASE   10000
 
#define KEYBOARD_OVERRUN_MAKE_CODE   0xFF
 
#define KEY_MAKE   0
 
#define KEY_BREAK   1
 
#define KEY_E0   2
 
#define KEY_E1   4
 
#define KEY_TERMSRV_SET_LED   8
 
#define KEY_TERMSRV_SHADOW   0x10
 
#define KEY_TERMSRV_VKPACKET   0x20
 
#define KEYBOARD_LED_INJECTED   0x8000
 
#define KEYBOARD_SHADOW   0x4000
 
#define KEYBOARD_KANA_LOCK_ON   8
 
#define KEYBOARD_CAPS_LOCK_ON   4
 
#define KEYBOARD_NUM_LOCK_ON   2
 
#define KEYBOARD_SCROLL_LOCK_ON   1
 
#define ENHANCED_KEYBOARD(Id)   ((Id).Type == 2 || (Id).Type == 4 || FAREAST_KEYBOARD(Id))
 
#define FAREAST_KEYBOARD(Id)   ((Id).Type == 7 || (Id).Type == 8)
 

Typedefs

typedef struct _KEYBOARD_INPUT_DATA KEYBOARD_INPUT_DATA
 
typedef struct _KEYBOARD_INPUT_DATAPKEYBOARD_INPUT_DATA
 
typedef struct _KEYBOARD_TYPEMATIC_PARAMETERS KEYBOARD_TYPEMATIC_PARAMETERS
 
typedef struct _KEYBOARD_TYPEMATIC_PARAMETERSPKEYBOARD_TYPEMATIC_PARAMETERS
 
typedef struct _KEYBOARD_ID KEYBOARD_ID
 
typedef struct _KEYBOARD_IDPKEYBOARD_ID
 
typedef struct _KEYBOARD_INDICATOR_PARAMETERS KEYBOARD_INDICATOR_PARAMETERS
 
typedef struct _KEYBOARD_INDICATOR_PARAMETERSPKEYBOARD_INDICATOR_PARAMETERS
 
typedef struct _INDICATOR_LIST INDICATOR_LIST
 
typedef struct _INDICATOR_LISTPINDICATOR_LIST
 
typedef struct _KEYBOARD_INDICATOR_TRANSLATION KEYBOARD_INDICATOR_TRANSLATION
 
typedef struct _KEYBOARD_INDICATOR_TRANSLATIONPKEYBOARD_INDICATOR_TRANSLATION
 
typedef struct _KEYBOARD_ATTRIBUTES KEYBOARD_ATTRIBUTES
 
typedef struct _KEYBOARD_ATTRIBUTESPKEYBOARD_ATTRIBUTES
 
typedef struct _KEYBOARD_UNIT_ID_PARAMETER KEYBOARD_UNIT_ID_PARAMETER
 
typedef struct _KEYBOARD_UNIT_ID_PARAMETERPKEYBOARD_UNIT_ID_PARAMETER
 
typedef struct _KEYBOARD_IME_STATUS KEYBOARD_IME_STATUS
 
typedef struct _KEYBOARD_IME_STATUSPKEYBOARD_IME_STATUS
 

Functions

 DEFINE_GUID (GUID_DEVINTERFACE_KEYBOARD, 0x884b96c3, 0x56ef, 0x11d1, 0xbc, 0x8c, 0x00, 0xa0, 0xc9, 0x14, 0x05, 0xdd)
 

Macro Definition Documentation

◆ DD_KEYBOARD_DEVICE_NAME

#define DD_KEYBOARD_DEVICE_NAME   "\\Device\\KeyboardClass"

Definition at line 29 of file ntddkbd.h.

◆ DD_KEYBOARD_DEVICE_NAME_U

#define DD_KEYBOARD_DEVICE_NAME_U   L"\\Device\\KeyboardClass"

Definition at line 30 of file ntddkbd.h.

◆ ENHANCED_KEYBOARD

#define ENHANCED_KEYBOARD (   Id)    ((Id).Type == 2 || (Id).Type == 4 || FAREAST_KEYBOARD(Id))

Definition at line 105 of file ntddkbd.h.

◆ FAREAST_KEYBOARD

#define FAREAST_KEYBOARD (   Id)    ((Id).Type == 7 || (Id).Type == 8)

Definition at line 106 of file ntddkbd.h.

◆ GUID_CLASS_KEYBOARD

#define GUID_CLASS_KEYBOARD   GUID_DEVINTERFACE_KEYBOARD /* Obsolete */

Definition at line 62 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_INSERT_DATA

#define IOCTL_KEYBOARD_INSERT_DATA    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0040, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 50 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_QUERY_ATTRIBUTES

#define IOCTL_KEYBOARD_QUERY_ATTRIBUTES    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 32 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_QUERY_IME_STATUS

#define IOCTL_KEYBOARD_QUERY_IME_STATUS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0400, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 53 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION

#define IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0020, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 38 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_QUERY_INDICATORS

#define IOCTL_KEYBOARD_QUERY_INDICATORS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 35 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_QUERY_TYPEMATIC

#define IOCTL_KEYBOARD_QUERY_TYPEMATIC    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 41 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_SET_IME_STATUS

#define IOCTL_KEYBOARD_SET_IME_STATUS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0401, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 56 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_SET_INDICATORS

#define IOCTL_KEYBOARD_SET_INDICATORS    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0002, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 47 of file ntddkbd.h.

◆ IOCTL_KEYBOARD_SET_TYPEMATIC

#define IOCTL_KEYBOARD_SET_TYPEMATIC    CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0001, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 44 of file ntddkbd.h.

◆ KEY_BREAK

#define KEY_BREAK   1

Definition at line 71 of file ntddkbd.h.

◆ KEY_E0

#define KEY_E0   2

Definition at line 72 of file ntddkbd.h.

◆ KEY_E1

#define KEY_E1   4

Definition at line 73 of file ntddkbd.h.

◆ KEY_MAKE

#define KEY_MAKE   0

Definition at line 70 of file ntddkbd.h.

◆ KEY_TERMSRV_SET_LED

#define KEY_TERMSRV_SET_LED   8

Definition at line 74 of file ntddkbd.h.

◆ KEY_TERMSRV_SHADOW

#define KEY_TERMSRV_SHADOW   0x10

Definition at line 75 of file ntddkbd.h.

◆ KEY_TERMSRV_VKPACKET

#define KEY_TERMSRV_VKPACKET   0x20

Definition at line 76 of file ntddkbd.h.

◆ KEYBOARD_CAPS_LOCK_ON

#define KEYBOARD_CAPS_LOCK_ON   4

Definition at line 81 of file ntddkbd.h.

◆ KEYBOARD_ERROR_VALUE_BASE

#define KEYBOARD_ERROR_VALUE_BASE   10000

Definition at line 64 of file ntddkbd.h.

◆ KEYBOARD_KANA_LOCK_ON

#define KEYBOARD_KANA_LOCK_ON   8

Definition at line 80 of file ntddkbd.h.

◆ KEYBOARD_LED_INJECTED

#define KEYBOARD_LED_INJECTED   0x8000

Definition at line 78 of file ntddkbd.h.

◆ KEYBOARD_NUM_LOCK_ON

#define KEYBOARD_NUM_LOCK_ON   2

Definition at line 82 of file ntddkbd.h.

◆ KEYBOARD_OVERRUN_MAKE_CODE

#define KEYBOARD_OVERRUN_MAKE_CODE   0xFF

Definition at line 67 of file ntddkbd.h.

◆ KEYBOARD_SCROLL_LOCK_ON

#define KEYBOARD_SCROLL_LOCK_ON   1

Definition at line 83 of file ntddkbd.h.

◆ KEYBOARD_SHADOW

#define KEYBOARD_SHADOW   0x4000

Definition at line 79 of file ntddkbd.h.

Typedef Documentation

◆ INDICATOR_LIST

◆ KEYBOARD_ATTRIBUTES

◆ KEYBOARD_ID

◆ KEYBOARD_IME_STATUS

◆ KEYBOARD_INDICATOR_PARAMETERS

◆ KEYBOARD_INDICATOR_TRANSLATION

◆ KEYBOARD_INPUT_DATA

◆ KEYBOARD_TYPEMATIC_PARAMETERS

◆ KEYBOARD_UNIT_ID_PARAMETER

◆ PINDICATOR_LIST

◆ PKEYBOARD_ATTRIBUTES

◆ PKEYBOARD_ID

◆ PKEYBOARD_IME_STATUS

◆ PKEYBOARD_INDICATOR_PARAMETERS

◆ PKEYBOARD_INDICATOR_TRANSLATION

◆ PKEYBOARD_INPUT_DATA

◆ PKEYBOARD_TYPEMATIC_PARAMETERS

◆ PKEYBOARD_UNIT_ID_PARAMETER

Function Documentation

◆ DEFINE_GUID()

DEFINE_GUID ( GUID_DEVINTERFACE_KEYBOARD  ,
0x884b96c3  ,
0x56ef  ,
0x11d1  ,
0xbc  ,
0x8c  ,
0x00  ,
0xa0  ,
0xc9  ,
0x14  ,
0x05  ,
0xdd   
)