Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

218 lines
4.8 KiB

  1. /* GIDEI Codes */
  2. /* reserved 236-242 */
  3. #define NOCODE 0
  4. #define LOWESTGIDEICODE 236
  5. #define DOUBLECODE 243
  6. #define LONGCODE 244
  7. #define INTEGERCODE 245
  8. #define BYTECODE 246
  9. #define BLKTRANSCODE 247
  10. #define DELIMITERCODE 248
  11. #define ENDCODE 249
  12. #define BEGINCODE 250
  13. #define CLEARCODE 251
  14. #define DEFAULTCODE 252
  15. #define UNKNOWNCODE 253
  16. #define EXTENDEDCODE 254
  17. #define TERMCODE 255
  18. /* Command Codes */
  19. #define KBDPRESSCODE 2
  20. #define KBDCOMBINECODE 3
  21. #define KBDHOLDCODE 4
  22. #define KBDLOCKCODE 5
  23. #define KBDRELCODE 6
  24. #define KBDEXPANSIONCODE 10
  25. #define MOULOCKCODE 11
  26. #define MOURELCODE 12
  27. #define MOUCLICKCODE 13
  28. #define MOUDOUBLECLICKCODE 14
  29. #define MOUMOVECODE 15
  30. #define MOUGOTOCODE 16
  31. #define MOURESETCODE 17
  32. #define MOUANCHORCODE 18
  33. #define MOUEXPANSIONCODE 20
  34. #define COMMCODE 150
  35. #define BAUDRATECODE 151
  36. #define GENCODE 160
  37. #define DEBUGCODE 220
  38. /* Model Codes */
  39. #define IBMEXTENDEDCODE 1
  40. #define IBMATCODE 2
  41. #define IBMPCCODE 3
  42. #define KBDINDICATORCODE 6
  43. #define KBDVERSIONCODE 7
  44. #define KBDMODELCODE 8
  45. #define KBDDESCRIPTIONCODE 9
  46. #define KBDUNKNOWNCODE 10
  47. #define NOBUTTON 0
  48. #define DEFAULTBUTTONCODE 1
  49. #define LEFTBUTTONCODE 1
  50. #define RIGHTBUTTONCODE 2
  51. /* BAUDRATE CODES */
  52. #define BAUD300CODE 1
  53. #define BAUD600CODE 2
  54. #define BAUD1200CODE 3
  55. #define BAUD2400CODE 4
  56. #define BAUD4800CODE 5
  57. #define BAUD9600CODE 6
  58. #define BAUD19200CODE 7
  59. #define BAUD14400CODE 9
  60. #define BAUD38400CODE 10
  61. #define BAUD56000CODE 11
  62. #define BAUD57600CODE 12
  63. #define BAUD115200CODE 13
  64. #define BAUD110CODE 8
  65. /****************************************************************************
  66. The Key Code is the GIDEI standard Key Code. The IBM Key Number is the
  67. number used in the IBM techincal reference of the American English
  68. extended 101 key keyboard. It is included only for reference as to
  69. how this implementation mapped the key code to the IBM keys.
  70. Name Key Code IBM Key Number
  71. ****************************************************************************/
  72. /* GIDEI KEY CODES */
  73. /*************************************************************************/
  74. /*************************************************************************/
  75. /* Internal Key number table */
  76. #define NOCODE 0
  77. #define NOKEY 0
  78. #define no_key 0
  79. #define lquote_key 1
  80. #define one_key 2
  81. #define two_key 3
  82. #define three_key 4
  83. #define four_key 5
  84. #define five_key 6
  85. #define six_key 7
  86. #define seven_key 8
  87. #define eight_key 9
  88. #define nine_key 10
  89. #define zero_key 11
  90. #define hyphen_key 12
  91. #define equal_key 13
  92. #define backspace_key 15
  93. #define tab_key 16
  94. #define q_key 17
  95. #define w_key 18
  96. #define e_key 19
  97. #define r_key 20
  98. #define t_key 21
  99. #define y_key 22
  100. #define u_key 23
  101. #define i_key 24
  102. #define o_key 25
  103. #define p_key 26
  104. #define lbracket_key 27
  105. #define rbracket_key 28
  106. #define bslash_key 29
  107. #define caps_key 30
  108. #define a_key 31
  109. #define s_key 32
  110. #define d_key 33
  111. #define f_key 34
  112. #define g_key 35
  113. #define h_key 36
  114. #define j_key 37
  115. #define k_key 38
  116. #define l_key 39
  117. #define semicolon_key 40
  118. #define rquote_key 41
  119. #define return_key 43
  120. #define lshift_key 44
  121. #define z_key 46
  122. #define x_key 47
  123. #define c_key 48
  124. #define v_key 49
  125. #define b_key 50
  126. #define n_key 51
  127. #define m_key 52
  128. #define comma_key 53
  129. #define period_key 54
  130. #define fslash_key 55
  131. #define rshift_key 57
  132. #define lcontrol_key 58
  133. #define lcommand_key 59
  134. #define lalt_key 60
  135. #define space_key 61
  136. #define ralt_key 62
  137. #define rcommand_key 63
  138. #define rcontrol_key 64
  139. #define insert_key 75
  140. #define delete_key 76
  141. #define left_key 79
  142. #define home_key 80
  143. #define end_key 81
  144. #define up_key 83
  145. #define down_key 84
  146. #define pageup_key 85
  147. #define pagedown_key 86
  148. #define right_key 89
  149. #define numlock_key 90
  150. #define kp7_key 91
  151. #define kp4_key 92
  152. #define kp1_key 93
  153. #define kpfslash_key 95
  154. #define kp8_key 96
  155. #define kp5_key 97
  156. #define kp2_key 98
  157. #define kp0_key 99
  158. #define kpstar_key 100
  159. #define kp9_key 101
  160. #define kp6_key 102
  161. #define kp3_key 103
  162. #define kpperiod_key 104
  163. #define kpminus_key 105
  164. #define kpplus_key 106
  165. #define kpequal_key 107
  166. #define kpenter_key 108
  167. #define escape_key 110
  168. #define f1_key 112
  169. #define f2_key 113
  170. #define f3_key 114
  171. #define f4_key 115
  172. #define f5_key 116
  173. #define f6_key 117
  174. #define f7_key 118
  175. #define f8_key 119
  176. #define f9_key 120
  177. #define f10_key 121
  178. #define f11_key 122
  179. #define f12_key 123
  180. #define print_key 124
  181. #define scroll_key 125
  182. #define pause_key 126
  183. #define reset_key 127
  184. #define shift_key lshift_key
  185. #define control_key lcontrol_key
  186. #define alt_key lalt_key
  187. #define shift_Code lshift_key
  188. #define control_Code lcontrol_key
  189.