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.

120 lines
3.6 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. conime.h
  5. Abstract:
  6. This module contains the internal structures and definitions used
  7. by the console IME.
  8. Author:
  9. v-HirShi Jul.4.1995
  10. Revision History:
  11. --*/
  12. #define CONSOLEIME_EVENT (L"ConsoleIME_StartUp_Event")
  13. typedef struct _CONIME_CANDMESSAGE {
  14. DWORD AttrOff;
  15. WCHAR String[];
  16. } CONIME_CANDMESSAGE, *LPCONIME_CANDMESSAGE;
  17. typedef struct _CONIME_UIMESSAGE {
  18. WCHAR String[];
  19. } CONIME_UIMESSAGE, *LPCONIME_UIMESSAGE;
  20. typedef struct _CONIME_UICOMPMESSAGE {
  21. DWORD dwSize;
  22. DWORD dwCompAttrLen;
  23. DWORD dwCompAttrOffset;
  24. DWORD dwCompStrLen;
  25. DWORD dwCompStrOffset;
  26. DWORD dwResultStrLen;
  27. DWORD dwResultStrOffset;
  28. WORD CompAttrColor[8];
  29. } CONIME_UICOMPMESSAGE, *LPCONIME_UICOMPMESSAGE;
  30. #define VIEW_LEFT 0
  31. #define VIEW_RIGHT 1
  32. #define MAXSTATUSCOL 160
  33. typedef struct _CONIME_UIMODEINFO {
  34. DWORD ModeStringLen;
  35. BOOL Position;
  36. CHAR_INFO ModeString[MAXSTATUSCOL];
  37. } CONIME_UIMODEINFO, *LPCONIME_UIMODEINFO;
  38. //
  39. // This is PCOPYDATASTRUCT->dwData values for WM_COPYDAT message consrv from conime.
  40. //
  41. #define CI_CONIMECOMPOSITION 0x4B425930
  42. #define CI_CONIMEMODEINFO 0x4B425931
  43. #define CI_CONIMESYSINFO 0x4B425932
  44. #define CI_CONIMECANDINFO 0x4B425935
  45. #define CI_CONIMEPROPERTYINFO 0x4B425936
  46. //
  47. // This message values for send/post message conime from consrv
  48. //
  49. #define CONIME_CREATE (WM_USER+0)
  50. #define CONIME_DESTROY (WM_USER+1)
  51. #define CONIME_SETFOCUS (WM_USER+2)
  52. #define CONIME_KILLFOCUS (WM_USER+3)
  53. #define CONIME_HOTKEY (WM_USER+4)
  54. #define CONIME_GET_NLSMODE (WM_USER+5)
  55. #define CONIME_SET_NLSMODE (WM_USER+6)
  56. #define CONIME_NOTIFY_SCREENBUFFERSIZE (WM_USER+7)
  57. #define CONIME_NOTIFY_VK_KANA (WM_USER+8)
  58. #define CONIME_INPUTLANGCHANGE (WM_USER+9)
  59. #define CONIME_NOTIFY_CODEPAGE (WM_USER+10)
  60. #define CONIME_INPUTLANGCHANGEREQUEST (WM_USER+11)
  61. #define CONIME_INPUTLANGCHANGEREQUESTFORWARD (WM_USER+12)
  62. #define CONIME_INPUTLANGCHANGEREQUESTBACKWARD (WM_USER+13)
  63. #define CONIME_KEYDATA (WM_USER+1024)
  64. //
  65. // This message values for set direction of conime langchange
  66. //
  67. #define CONIME_DIRECT 0
  68. #define CONIME_FORWARD 1
  69. #define CONIME_BACKWARD -1
  70. //
  71. // This message value is for send/post message to consrv
  72. //
  73. #define CM_CONIME_KL_ACTIVATE (WM_USER+15)
  74. #define CONIME_SENDMSG_TIMEOUT (3 * 1000) // Wait for 3sec.
  75. //
  76. // Default composition color attributes
  77. //
  78. #define DEFAULT_COMP_ENTERED \
  79. (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
  80. COMMON_LVB_UNDERSCORE)
  81. #define DEFAULT_COMP_ALREADY_CONVERTED \
  82. (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
  83. BACKGROUND_BLUE )
  84. #define DEFAULT_COMP_CONVERSION \
  85. (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
  86. COMMON_LVB_UNDERSCORE)
  87. #define DEFAULT_COMP_YET_CONVERTED \
  88. (FOREGROUND_BLUE | \
  89. BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED | \
  90. COMMON_LVB_UNDERSCORE)
  91. #define DEFAULT_COMP_INPUT_ERROR \
  92. ( FOREGROUND_RED | \
  93. COMMON_LVB_UNDERSCORE)