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.

107 lines
4.2 KiB

  1. /*++ BUILD Version: 0004 // Increment this if a change has global effects
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. imep.h
  5. Abstract:
  6. Private
  7. Procedure declarations, constant definitions and macros for the IME
  8. component.
  9. --*/
  10. #ifndef _IMEP_
  11. #define _IMEP_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif /* __cplusplus */
  15. // IMESTRUCT structure for SendIMEMessage(Ex)
  16. #if !defined(VK_DBE_IME_WORDREGISTER)
  17. #define VK_DBE_IME_WORDREGISTER VK_DBE_ENTERWORDREGISTERMODE
  18. #define VK_DBE_IME_DIALOG VK_DBE_ENTERIMECONFIGMODE
  19. #define VK_DBE_FLUSH VK_DBE_FLUSHSTRING
  20. #endif
  21. #define VK_OEM_SEMICLN 0x0ba // ; ** :
  22. #define VK_OEM_EQUAL 0x0bb // = ** +
  23. #define VK_OEM_SLASH 0x0bf // / ** ?
  24. #define VK_OEM_LBRACKET 0x0db // [ ** {
  25. #define VK_OEM_BSLASH 0x0dc // \ ** |
  26. #define VK_OEM_RBRACKET 0x0dd // ] ** |
  27. #define VK_OEM_QUOTE 0x0de // ' ** "
  28. // switch for wParam of IME_MOVECONVERTWINDOW
  29. #define MCW_CMD 0x16 // command mask
  30. #define MCW_CONSOLE_IME 0x8000
  31. // switch for wParam of IME_SET_MODE(IME_SETCONVERSIONMODE)
  32. // and IME_GET_MODE(IME_GETCONVERSIONMODE)
  33. #define KOREA_IME_MODE_SBCSCHAR 0x0002
  34. #define JAPAN_IME_MODE_SBCSCHAR 0x0008
  35. // ;internal is added by JAPAN, CWIN user should ignore it
  36. // 0x1, 0x2, 0x4, 0x20, 0x40, 0x80, 0x100 is not for CWIN
  37. // 0x8, 0x10, and below IME_MODE_??? will be use by CWIN
  38. #define IME_MODE_LHS 0x00200
  39. #define IME_MODE_NOLHS 0x00400
  40. #define IME_MODE_SK 0x00800
  41. #define IME_MODE_NOSK 0x01000
  42. #define IME_MODE_XSPACE 0x02000
  43. #define IME_MODE_NOXSPACE 0x04000
  44. // Subfunctions for WM_CONVERTREQUEST or WM_CONVERTREQUESTEX
  45. #define IME_QUERY IME_GETIMECAPS
  46. #define IME_ENABLEDOSIME 0x06
  47. #define IME_ENABLE IME_ENABLEDOSIME
  48. #define IME_MOVECONVERTWINDOW IME_SETCONVERSIONWINDOW
  49. #define IME_GET_MODE IME_GETCONVERSIONMODE
  50. #define IME_SETCONVERSIONFONT 0x12
  51. #define IME_SETFONT IME_SETCONVERSIONFONT
  52. #define IME_SENDKEY IME_SENDVKEY
  53. #define IME_DESTROYIME 0x14
  54. #define IME_DESTROY IME_DESTROYIME
  55. #define IME_PRIVATE 0x15
  56. #define IME_WINDOWUPDATE 0x16
  57. #define IME_SELECT 0x17
  58. #define IME_WORDREGISTER IME_ENTERWORDREGISTERMODE
  59. #define IME_DBCSNAME 0x1A
  60. #define IME_MAXKEY 0x1B
  61. #define IME_WINNLS_SK 0x1C
  62. #define IME_CODECONVERT 0x20
  63. #define IME_SETUSRFONT 0x20
  64. #define IME_CONVERTLIST 0x21
  65. #define IME_QUERYUSRFONT 0x21
  66. #define IME_INPUTKEYTOSEQUENCE 0x22
  67. #define IME_SEQUENCETOINTERNAL 0x23
  68. #define IME_QUERYIMEINFO 0x24
  69. #define IME_DIALOG 0x25
  70. #define IME_AUTOMATA 0x30
  71. #define IME_HANJAMODE 0x31
  72. #define IME_GETLEVEL 0x40
  73. #define IME_SETLEVEL 0x41
  74. #define IME_GETMNTABLE 0x42 // reserved for HWIN
  75. //#ifdef PEN
  76. #define IME_SETUNDETERMINESTRING 0x50
  77. #define IME_SETCAPTURE 0x51
  78. //#endif
  79. #define IME_CONSOLE_GET_PROCESSID 0x80 // Win32
  80. #define IME_CONSOLE_CREATE 0x81 // Win32
  81. #define IME_CONSOLE_DESTROY 0x82 // Win32
  82. #define IME_CONSOLE_SETFOCUS 0x83 // Win32
  83. #define IME_CONSOLE_KILLFOCUS 0x84 // Win32
  84. #define IME_CONSOLE_BUFFER_SIZE 0x85 // Win32
  85. #define IME_CONSOLE_WINDOW_SIZE 0x86 // Win32
  86. #define IME_CONSOLE_SET_IME_ON_WINDOW 0x87 // Win32
  87. #define IME_CONSOLE_MODEINFO 0x88
  88. #define IME_PRIVATEFIRST 0x0100
  89. #define IME_PRIVATELAST 0x04FF
  90. #define IME_RS_CAPTURED 0x10 // IME is captured
  91. #define IR_MOREROOM 0x110
  92. #define IR_IMERELEASED 0x150
  93. #define IMEVER_31 0x0a03
  94. #ifdef __cplusplus
  95. }
  96. #endif /* __cplusplus */
  97. #endif /* !_IMEP_ */