Source code of Windows XP (NT5)
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.

105 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spkbd.h
  5. Abstract:
  6. Public header file for text setup input support.
  7. Author:
  8. Ted Miller (tedm) 29-July-1993
  9. Revision History:
  10. + Added defines for ASCI_D
  11. (Michael Peterson, Seagate Software, 29 April, 1997)
  12. --*/
  13. #ifndef _SPINPUT_DEFN_
  14. #define _SPINPUT_DEFN_
  15. VOID
  16. SpInputInitialize(
  17. VOID
  18. );
  19. VOID
  20. SpInputTerminate(
  21. VOID
  22. );
  23. VOID
  24. SpInputLoadLayoutDll(
  25. IN PVOID SifHandle,
  26. IN PWSTR Directory
  27. );
  28. ULONG
  29. SpInputGetKeypress(
  30. VOID
  31. );
  32. BOOLEAN
  33. SpInputIsKeyWaiting(
  34. VOID
  35. );
  36. VOID
  37. SpInputDrain(
  38. VOID
  39. );
  40. VOID
  41. SpSelectAndLoadLayoutDll(
  42. IN PWSTR Directory,
  43. IN PVOID SifHandle,
  44. IN BOOLEAN ShowStatus
  45. );
  46. #define ASCI_ETX 3 // control-C
  47. #define ASCI_BS 8
  48. #define ASCI_NL 10
  49. #define ASCI_C 67
  50. #define ASCI_LOWER_C 99
  51. #define ASCI_CR 13
  52. #define ASCI_ESC 27
  53. //
  54. // Character codes are passed around as ULONGs within setup.
  55. // The low word is a Unicode character value; the high word
  56. // is used for various other keypresses.
  57. //
  58. #define KEY_PAGEUP 0x00010000
  59. #define KEY_PAGEDOWN 0x00020000
  60. #define KEY_UP 0x00030000
  61. #define KEY_DOWN 0x00040000
  62. #define KEY_LEFT 0x00050000
  63. #define KEY_RIGHT 0x00060000
  64. #define KEY_HOME 0x00070000
  65. #define KEY_END 0x00080000
  66. #define KEY_INSERT 0x00090000
  67. #define KEY_DELETE 0x000a0000
  68. #define KEY_F1 0x00110000
  69. #define KEY_F2 0x00120000
  70. #define KEY_F3 0x00130000
  71. #define KEY_F4 0x00140000
  72. #define KEY_F5 0x00150000
  73. #define KEY_F6 0x00160000
  74. #define KEY_F7 0x00170000
  75. #define KEY_F8 0x00180000
  76. #define KEY_F9 0x00190000
  77. #define KEY_F10 0x001a0000
  78. #define KEY_F11 0x001b0000
  79. #define KEY_F12 0x001c0000
  80. #define KEY_NON_CHARACTER 0xffff0000
  81. #endif // ndef _SPINPUT_DEFN_