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.

103 lines
4.5 KiB

  1. /****************************************************************************
  2. DRIVERS.H
  3. This file defines the external calls and structures of the keyboard and
  4. mouse drivers.
  5. ****************************************************************************/
  6. typedef struct tagKBDFILTERKEYSPARM {
  7. BYTE fFilterKeysOn; /* boolean 0 = false, 1 = true */
  8. BYTE fOn_Off_Feedback; /* boolean 0 = false, 1 = true */
  9. BYTE fUser_SetUp_Option1; /* boolean 0 = false, 1 = true */
  10. BYTE fUser_SetUp_Option2; /* boolean 0 = false, 1 = true */
  11. int wait_ticks; /* time till accept key 18.2 ticks/sec */
  12. int delay_ticks; /* delay to repeat 18.2 ticks/sec */
  13. int repeat_ticks; /* repeat rate 18.2 ticks/sec */
  14. int bounce_ticks; /* debounce rate 18.2 ticks/sec */
  15. BYTE fRecovery_On; /* boolean 0 = false, 1 = true */
  16. BYTE fclick_on; /* boolean 0 = false, 1 = true */
  17. } KBDFILTERKEYSPARM;
  18. extern void FAR PASCAL Get_FilterKeys_Param(KBDFILTERKEYSPARM FAR *); /* part of keyboard driver */
  19. extern void FAR PASCAL Set_FilterKeys_Param(KBDFILTERKEYSPARM FAR *); /* part of keyboard driver */
  20. typedef struct tagKBDSTICKEYSPARM {
  21. BYTE fSticKeysOn; /* boolean 0 = false, 1 = true */
  22. BYTE fOn_Off_Feedback; /* boolean 0 = false, 1 = true */
  23. BYTE fAudible_Feedback; /* boolean 0 = false, 1 = true */
  24. BYTE fTriState; /* boolean 0 = false, 1 = true */
  25. BYTE fTwo_Keys_Off; /* boolean 0 = false, 1 = true */
  26. BYTE fDialog_Stickeys_Off; /* boolean 0 = false, 1 = true */
  27. } KBDSTICKEYSPARM;
  28. extern void FAR PASCAL Get_SticKeys_Param(KBDSTICKEYSPARM FAR *); /* part of keyboard driver */
  29. extern void FAR PASCAL Set_SticKeys_Param(KBDSTICKEYSPARM FAR *); /* part of keyboard driver */
  30. typedef struct tagKBDMOUSEKEYSPARM {
  31. BYTE fMouseKeysOn; /* boolean 0 = false, 1 = true */
  32. BYTE fOn_Off_Feedback; /* boolean 0 = false, 1 = true */
  33. int Max_Speed; /* in pixels per second */
  34. int Time_To_Max_Speed; /* in 1/100th of a second */
  35. BYTE Accel_Table_Len;
  36. BYTE Accel_Table[128];
  37. BYTE Constant_Table_Len;
  38. BYTE Constant_Table[128];
  39. } KBDMOUSEKEYSPARM;
  40. extern void FAR PASCAL Get_MouseKeys_Param(KBDMOUSEKEYSPARM FAR *); /* part of keyboard driver */
  41. extern void FAR PASCAL Set_MouseKeys_Param(KBDMOUSEKEYSPARM FAR *); /* part of keyboard driver */
  42. typedef struct tagKBDTOGGLEKEYSPARM {
  43. BYTE fToggleKeysOn; /* boolean 0 = false, 1 = true */
  44. BYTE fOn_Off_Feedback; /* boolean 0 = false, 1 = true */
  45. } KBDTOGGLEKEYSPARM;
  46. extern void FAR PASCAL Get_ToggleKeys_Param(KBDTOGGLEKEYSPARM FAR *); /* part of keyboard driver */
  47. extern void FAR PASCAL Set_ToggleKeys_Param(KBDTOGGLEKEYSPARM FAR *); /* part of keyboard driver */
  48. typedef struct tagKBDTIMEOUTPARM {
  49. BYTE fTimeOutOn; /* boolean 0 = false, 1 = true */
  50. BYTE fOn_Off_Feedback; /* boolean 0 = false, 1 = true */
  51. int to_value; /* time to turn off 18.2 times/sec */
  52. } KBDTIMEOUTPARM;
  53. extern void FAR PASCAL Get_TimeOut_Param(KBDTIMEOUTPARM FAR *); /* part of keyboard driver */
  54. extern void FAR PASCAL Set_TimeOut_Param(KBDTIMEOUTPARM FAR *); /* part of keyboard driver */
  55. typedef struct tagKBDSHOWSOUNDSPARM {
  56. BYTE fshow_sound_screen; /* boolean 0 = false, 1 = true */
  57. BYTE fshow_sound_caption; /* boolean 0 = false, 1 = true */
  58. BYTE fvideo_found;
  59. BYTE fvideo_flash;
  60. } KBDSHOWSOUNDSPARM;
  61. extern void FAR PASCAL Get_ShowSounds_Param(KBDSHOWSOUNDSPARM FAR *); /* part of keyboard driver */
  62. extern void FAR PASCAL Set_ShowSounds_Param(KBDSHOWSOUNDSPARM FAR *); /* part of keyboard driver */
  63. typedef struct tagMouseKeysParam {
  64. int NumButtons; /* holds number of buttons on the mice */
  65. int Delta_Y; /* Relative Y motion sign extended */
  66. int Delta_X; /* Relative X motion sign extended */
  67. int Status; /* status of mouse buttons and motion */
  68. } MOUSEKEYSPARAM;
  69. //extern void FAR PASCAL InjectMouse(MOUSEKEYSPARAM FAR *); /* part of mouse driver */
  70. //extern void FAR PASCAL InjectKeys(int); /* part of keyboard driver */
  71. //extern void FAR PASCAL ErrorCode(int); /* part of keyboard driver */
  72. typedef struct tagKBDINFOPARAM {
  73. int kybdversion; /* holds handicap keyboard version number */
  74. } KBDINFOPARM;
  75. typedef struct tagMOUINFOPARAM {
  76. int mouversion; /* holds handicap mouse version number */
  77. } MOUINFOPARM;
  78. /*;BCK*/
  79. //extern void FAR PASCAL Get_KybdInfo_Param(KBDINFOPARM FAR *); /* part of appcalls in keyboard driver */
  80. //extern void FAR PASCAL Get_MouInfo_Param(MOUINFOPARM FAR *); /* part of appcalls in keyboard driver */
  81. extern void FAR PASCAL Save_SerialKeys_Param(int); /* part of appcalls.asm */
  82.