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.

118 lines
3.1 KiB

  1. LIBRARY KEYBOARD
  2. ; ============================================================
  3. ; ANY CHANGES TO KBD.DEF SHOULD ALSO BE MADE IN THE FOLLOWING:
  4. ; KBDNOKIA.DEF KBDHP.DEF KBDOLI.DEF
  5. ; (except for SetSpeed)
  6. ; ============================================================
  7. ; Copyright (C) 1989 by Microsoft Corporation
  8. DESCRIPTION 'KEYBOARD (Enhanced keyboard):'
  9. EXETYPE WINDOWS
  10. ; (use LINK4 default stub, not WINSTUB)
  11. CODE PRELOAD FIXED
  12. DATA PRELOAD FIXED SINGLE
  13. ; ============================================================
  14. ; ANY CHANGES TO KBD.DEF SHOULD ALSO BE MADE IN THE FOLLOWING:
  15. ; KBDNOKIA.DEF KBDHP.DEF KBDOLI.DEF
  16. ; ============================================================
  17. SEGMENTS
  18. ; Initialization once-only code
  19. _INIT PRELOAD FIXED DISCARDABLE
  20. ; Translation tables
  21. _TABS LOADONCALL FIXED DISCARDABLE
  22. ; NewTable()'s and GetCSAlias()'s segment
  23. _NEWTAB PRELOAD FIXED DISCARDABLE
  24. ; OemKeyScan's segment
  25. _OEMSC LOADONCALL DISCARDABLE
  26. ; VkKeyScan's segment
  27. _VKKSC LOADONCALL DISCARDABLE
  28. ; SetSpeed's segment
  29. _SETSP PRELOAD FIXED DISCARDABLE
  30. ; GetKeyboardType's segment
  31. _GETTYPE LOADONCALL DISCARDABLE
  32. ; MapVirtualKey's segment
  33. _MAPVK LOADONCALL DISCARDABLE
  34. ; GetKeyNameText's segment
  35. _GETNAME LOADONCALL DISCARDABLE
  36. ; ============================================================
  37. ; ANY CHANGES TO KBD.DEF SHOULD ALSO BE MADE IN THE FOLLOWING:
  38. ; KBDNOKIA.DEF KBDHP.DEF KBDOLI.DEF
  39. ; (except for SetSpeed)
  40. ; ============================================================
  41. EXPORTS
  42. Inquire @1 ;Internal
  43. Enable @2 ;Internal
  44. Disable @3 ;Internal
  45. ToAscii @4
  46. AnsiToOem @5
  47. OemToAnsi @6
  48. ; Special call for setting keyboard repeat speed on AT-type keyboards
  49. ; (omit in Olivetti M24 and NOKIA drivers, since they're not for AT keyboards)
  50. SetSpeed @7 ;Internal
  51. ; Special call for OS/2 Compatibility box
  52. ; (omit in Olivetti M24 drivers)
  53. ScreenSwitchEnable @100 ;Internal
  54. ; Routines for initializing keyboard tables
  55. GetTableSeg @126 ;Internal
  56. NewTable @127 ;Internal
  57. ; Special call for WIN386 WINOLDAP
  58. ; (omit in Olivetti M24 drivers, since they're 8086 only)
  59. OEMKeyScan @128
  60. ; Special ASCII to virtual keycode routine
  61. VkKeyScan @129
  62. ; Return keyboard type number, etc.
  63. GetKeyboardType @130
  64. ; Return translations VK-> scancode, scancode-> VK, VK-> ASCII.
  65. MapVirtualKey @131
  66. ; Return code page of current Oem/Ansi translation tables.
  67. GetKBCodePage @132
  68. ; Get name string for key
  69. GetKeyNameText @133
  70. ; Translate routines
  71. AnsiToOemBuff @134
  72. OemToAnsiBuff @135
  73. ; Enable SysReq trap
  74. EnableKBSysReq @136 ;Internal
  75. ; codeview support
  76. GetBIOSKeyProc @137
  77. WEP ;Internal
  78. ; ============================================================
  79. ; ANY CHANGES TO KBD.DEF SHOULD ALSO BE MADE IN THE FOLLOWING:
  80. ; KBDNOKIA.DEF KBDHP.DEF KBDOLI.DEF
  81. ; ============================================================
  82. IMPORTS
  83. CVWBREAK = KERNEL.205