| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
#ifndef _IMM_ |
| 7 |
#define _IMM_ |
| 8 |
|
| 9 |
#include <_mingw_unicode.h> |
| 10 |
|
| 11 |
#ifdef __cplusplus |
| 12 |
extern "C" { |
| 13 |
#endif |
| 14 |
|
| 15 |
#ifndef _IMM_SDK_DEFINED_ |
| 16 |
#define _IMM_SDK_DEFINED_ |
| 17 |
|
| 18 |
DECLARE_HANDLE(HIMC); |
| 19 |
DECLARE_HANDLE(HIMCC); |
| 20 |
|
| 21 |
typedef HKL *LPHKL; |
| 22 |
#ifndef DEFINED_LPUINT |
| 23 |
#define DEFINED_LPUINT |
| 24 |
typedef UINT *LPUINT; |
| 25 |
#endif |
| 26 |
|
| 27 |
typedef struct tagCOMPOSITIONFORM { |
| 28 |
DWORD dwStyle; |
| 29 |
POINT ptCurrentPos; |
| 30 |
RECT rcArea; |
| 31 |
} COMPOSITIONFORM,*PCOMPOSITIONFORM,*NPCOMPOSITIONFORM,*LPCOMPOSITIONFORM; |
| 32 |
|
| 33 |
typedef struct tagCANDIDATEFORM { |
| 34 |
DWORD dwIndex; |
| 35 |
DWORD dwStyle; |
| 36 |
POINT ptCurrentPos; |
| 37 |
RECT rcArea; |
| 38 |
} CANDIDATEFORM,*PCANDIDATEFORM,*NPCANDIDATEFORM,*LPCANDIDATEFORM; |
| 39 |
|
| 40 |
typedef struct tagCANDIDATELIST { |
| 41 |
DWORD dwSize; |
| 42 |
DWORD dwStyle; |
| 43 |
DWORD dwCount; |
| 44 |
DWORD dwSelection; |
| 45 |
DWORD dwPageStart; |
| 46 |
DWORD dwPageSize; |
| 47 |
DWORD dwOffset[1]; |
| 48 |
} CANDIDATELIST,*PCANDIDATELIST,*NPCANDIDATELIST,*LPCANDIDATELIST; |
| 49 |
|
| 50 |
typedef struct tagREGISTERWORDA { |
| 51 |
LPSTR lpReading; |
| 52 |
LPSTR lpWord; |
| 53 |
} REGISTERWORDA,*PREGISTERWORDA,*NPREGISTERWORDA,*LPREGISTERWORDA; |
| 54 |
|
| 55 |
typedef struct tagREGISTERWORDW { |
| 56 |
LPWSTR lpReading; |
| 57 |
LPWSTR lpWord; |
| 58 |
} REGISTERWORDW,*PREGISTERWORDW,*NPREGISTERWORDW,*LPREGISTERWORDW; |
| 59 |
|
| 60 |
__MINGW_TYPEDEF_AW(REGISTERWORD) |
| 61 |
__MINGW_TYPEDEF_AW(PREGISTERWORD) |
| 62 |
__MINGW_TYPEDEF_AW(NPREGISTERWORD) |
| 63 |
__MINGW_TYPEDEF_AW(LPREGISTERWORD) |
| 64 |
|
| 65 |
typedef struct tagRECONVERTSTRING { |
| 66 |
DWORD dwSize; |
| 67 |
DWORD dwVersion; |
| 68 |
DWORD dwStrLen; |
| 69 |
DWORD dwStrOffset; |
| 70 |
DWORD dwCompStrLen; |
| 71 |
DWORD dwCompStrOffset; |
| 72 |
DWORD dwTargetStrLen; |
| 73 |
DWORD dwTargetStrOffset; |
| 74 |
} RECONVERTSTRING,*PRECONVERTSTRING,*NPRECONVERTSTRING,*LPRECONVERTSTRING; |
| 75 |
|
| 76 |
#define STYLE_DESCRIPTION_SIZE 32 |
| 77 |
|
| 78 |
typedef struct tagSTYLEBUFA { |
| 79 |
DWORD dwStyle; |
| 80 |
CHAR szDescription[STYLE_DESCRIPTION_SIZE]; |
| 81 |
} STYLEBUFA,*PSTYLEBUFA,*NPSTYLEBUFA,*LPSTYLEBUFA; |
| 82 |
|
| 83 |
typedef struct tagSTYLEBUFW { |
| 84 |
DWORD dwStyle; |
| 85 |
WCHAR szDescription[STYLE_DESCRIPTION_SIZE]; |
| 86 |
} STYLEBUFW,*PSTYLEBUFW,*NPSTYLEBUFW,*LPSTYLEBUFW; |
| 87 |
|
| 88 |
__MINGW_TYPEDEF_AW(STYLEBUF) |
| 89 |
__MINGW_TYPEDEF_AW(PSTYLEBUF) |
| 90 |
__MINGW_TYPEDEF_AW(NPSTYLEBUF) |
| 91 |
__MINGW_TYPEDEF_AW(LPSTYLEBUF) |
| 92 |
|
| 93 |
#define IMEMENUITEM_STRING_SIZE 80 |
| 94 |
|
| 95 |
typedef struct tagIMEMENUITEMINFOA { |
| 96 |
UINT cbSize; |
| 97 |
UINT fType; |
| 98 |
UINT fState; |
| 99 |
UINT wID; |
| 100 |
HBITMAP hbmpChecked; |
| 101 |
HBITMAP hbmpUnchecked; |
| 102 |
DWORD dwItemData; |
| 103 |
CHAR szString[IMEMENUITEM_STRING_SIZE]; |
| 104 |
HBITMAP hbmpItem; |
| 105 |
} IMEMENUITEMINFOA,*PIMEMENUITEMINFOA,*NPIMEMENUITEMINFOA,*LPIMEMENUITEMINFOA; |
| 106 |
|
| 107 |
typedef struct tagIMEMENUITEMINFOW { |
| 108 |
UINT cbSize; |
| 109 |
UINT fType; |
| 110 |
UINT fState; |
| 111 |
UINT wID; |
| 112 |
HBITMAP hbmpChecked; |
| 113 |
HBITMAP hbmpUnchecked; |
| 114 |
DWORD dwItemData; |
| 115 |
WCHAR szString[IMEMENUITEM_STRING_SIZE]; |
| 116 |
HBITMAP hbmpItem; |
| 117 |
} IMEMENUITEMINFOW,*PIMEMENUITEMINFOW,*NPIMEMENUITEMINFOW,*LPIMEMENUITEMINFOW; |
| 118 |
|
| 119 |
__MINGW_TYPEDEF_AW(IMEMENUITEMINFO) |
| 120 |
__MINGW_TYPEDEF_AW(PIMEMENUITEMINFO) |
| 121 |
__MINGW_TYPEDEF_AW(NPIMEMENUITEMINFO) |
| 122 |
__MINGW_TYPEDEF_AW(LPIMEMENUITEMINFO) |
| 123 |
|
| 124 |
typedef struct tagIMECHARPOSITION { |
| 125 |
DWORD dwSize; |
| 126 |
DWORD dwCharPos; |
| 127 |
POINT pt; |
| 128 |
UINT cLineHeight; |
| 129 |
RECT rcDocument; |
| 130 |
} IMECHARPOSITION,*PIMECHARPOSITION,*NPIMECHARPOSITION,*LPIMECHARPOSITION; |
| 131 |
|
| 132 |
typedef WINBOOL (CALLBACK *IMCENUMPROC)(HIMC,LPARAM); |
| 133 |
|
| 134 |
#define ImmInstallIME __MINGW_NAME_AW(ImmInstallIME) |
| 135 |
#define ImmGetDescription __MINGW_NAME_AW(ImmGetDescription) |
| 136 |
#define ImmGetIMEFileName __MINGW_NAME_AW(ImmGetIMEFileName) |
| 137 |
#define ImmGetCompositionString __MINGW_NAME_AW(ImmGetCompositionString) |
| 138 |
#define ImmSetCompositionString __MINGW_NAME_AW(ImmSetCompositionString) |
| 139 |
#define ImmGetCandidateListCount __MINGW_NAME_AW(ImmGetCandidateListCount) |
| 140 |
#define ImmGetCandidateList __MINGW_NAME_AW(ImmGetCandidateList) |
| 141 |
#define ImmGetGuideLine __MINGW_NAME_AW(ImmGetGuideLine) |
| 142 |
|
| 143 |
HKL WINAPI ImmInstallIMEA(LPCSTR lpszIMEFileName,LPCSTR lpszLayoutText); |
| 144 |
HKL WINAPI ImmInstallIMEW(LPCWSTR lpszIMEFileName,LPCWSTR lpszLayoutText); |
| 145 |
HWND WINAPI ImmGetDefaultIMEWnd(HWND); |
| 146 |
UINT WINAPI ImmGetDescriptionA(HKL,LPSTR,UINT uBufLen); |
| 147 |
UINT WINAPI ImmGetDescriptionW(HKL,LPWSTR,UINT uBufLen); |
| 148 |
UINT WINAPI ImmGetIMEFileNameA(HKL,LPSTR,UINT uBufLen); |
| 149 |
UINT WINAPI ImmGetIMEFileNameW(HKL,LPWSTR,UINT uBufLen); |
| 150 |
DWORD WINAPI ImmGetProperty(HKL,DWORD); |
| 151 |
WINBOOL WINAPI ImmIsIME(HKL); |
| 152 |
WINBOOL WINAPI ImmSimulateHotKey(HWND,DWORD); |
| 153 |
HIMC WINAPI ImmCreateContext(void); |
| 154 |
WINBOOL WINAPI ImmDestroyContext(HIMC); |
| 155 |
HIMC WINAPI ImmGetContext(HWND); |
| 156 |
WINBOOL WINAPI ImmReleaseContext(HWND,HIMC); |
| 157 |
HIMC WINAPI ImmAssociateContext(HWND,HIMC); |
| 158 |
WINBOOL WINAPI ImmAssociateContextEx(HWND,HIMC,DWORD); |
| 159 |
LONG WINAPI ImmGetCompositionStringA(HIMC,DWORD,LPVOID,DWORD); |
| 160 |
LONG WINAPI ImmGetCompositionStringW(HIMC,DWORD,LPVOID,DWORD); |
| 161 |
WINBOOL WINAPI ImmSetCompositionStringA(HIMC,DWORD dwIndex,LPVOID lpComp,DWORD,LPVOID lpRead,DWORD); |
| 162 |
WINBOOL WINAPI ImmSetCompositionStringW(HIMC,DWORD dwIndex,LPVOID lpComp,DWORD,LPVOID lpRead,DWORD); |
| 163 |
DWORD WINAPI ImmGetCandidateListCountA(HIMC,LPDWORD lpdwListCount); |
| 164 |
DWORD WINAPI ImmGetCandidateListCountW(HIMC,LPDWORD lpdwListCount); |
| 165 |
DWORD WINAPI ImmGetCandidateListA(HIMC,DWORD deIndex,LPCANDIDATELIST,DWORD dwBufLen); |
| 166 |
DWORD WINAPI ImmGetCandidateListW(HIMC,DWORD deIndex,LPCANDIDATELIST,DWORD dwBufLen); |
| 167 |
DWORD WINAPI ImmGetGuideLineA(HIMC,DWORD dwIndex,LPSTR,DWORD dwBufLen); |
| 168 |
DWORD WINAPI ImmGetGuideLineW(HIMC,DWORD dwIndex,LPWSTR,DWORD dwBufLen); |
| 169 |
WINBOOL WINAPI ImmGetConversionStatus(HIMC,LPDWORD,LPDWORD); |
| 170 |
WINBOOL WINAPI ImmSetConversionStatus(HIMC,DWORD,DWORD); |
| 171 |
WINBOOL WINAPI ImmGetOpenStatus(HIMC); |
| 172 |
WINBOOL WINAPI ImmSetOpenStatus(HIMC,WINBOOL); |
| 173 |
|
| 174 |
#if defined(_WINGDI_) && !defined(NOGDI) |
| 175 |
|
| 176 |
#define ImmGetCompositionFont __MINGW_NAME_AW(ImmGetCompositionFont) |
| 177 |
#define ImmSetCompositionFont __MINGW_NAME_AW(ImmSetCompositionFont) |
| 178 |
|
| 179 |
WINBOOL WINAPI ImmGetCompositionFontA(HIMC,LPLOGFONTA); |
| 180 |
WINBOOL WINAPI ImmGetCompositionFontW(HIMC,LPLOGFONTW); |
| 181 |
WINBOOL WINAPI ImmSetCompositionFontA(HIMC,LPLOGFONTA); |
| 182 |
WINBOOL WINAPI ImmSetCompositionFontW(HIMC,LPLOGFONTW); |
| 183 |
#endif |
| 184 |
|
| 185 |
typedef int (CALLBACK *REGISTERWORDENUMPROCA)(LPCSTR,DWORD,LPCSTR,LPVOID); |
| 186 |
typedef int (CALLBACK *REGISTERWORDENUMPROCW)(LPCWSTR,DWORD,LPCWSTR,LPVOID); |
| 187 |
|
| 188 |
#define REGISTERWORDENUMPROC __MINGW_NAME_AW(REGISTERWORDENUMPROC) |
| 189 |
#define ImmConfigureIME __MINGW_NAME_AW(ImmConfigureIME) |
| 190 |
#define ImmEscape __MINGW_NAME_AW(ImmEscape) |
| 191 |
#define ImmGetConversionList __MINGW_NAME_AW(ImmGetConversionList) |
| 192 |
#define ImmIsUIMessage __MINGW_NAME_AW(ImmIsUIMessage) |
| 193 |
#define ImmRegisterWord __MINGW_NAME_AW(ImmRegisterWord) |
| 194 |
#define ImmUnregisterWord __MINGW_NAME_AW(ImmUnregisterWord) |
| 195 |
#define ImmGetRegisterWordStyle __MINGW_NAME_AW(ImmGetRegisterWordStyle) |
| 196 |
#define ImmEnumRegisterWord __MINGW_NAME_AW(ImmEnumRegisterWord) |
| 197 |
#define ImmGetImeMenuItems __MINGW_NAME_AW(ImmGetImeMenuItems) |
| 198 |
|
| 199 |
WINBOOL WINAPI ImmConfigureIMEA(HKL,HWND,DWORD,LPVOID); |
| 200 |
WINBOOL WINAPI ImmConfigureIMEW(HKL,HWND,DWORD,LPVOID); |
| 201 |
LRESULT WINAPI ImmEscapeA(HKL,HIMC,UINT,LPVOID); |
| 202 |
LRESULT WINAPI ImmEscapeW(HKL,HIMC,UINT,LPVOID); |
| 203 |
DWORD WINAPI ImmGetConversionListA(HKL,HIMC,LPCSTR,LPCANDIDATELIST,DWORD dwBufLen,UINT uFlag); |
| 204 |
DWORD WINAPI ImmGetConversionListW(HKL,HIMC,LPCWSTR,LPCANDIDATELIST,DWORD dwBufLen,UINT uFlag); |
| 205 |
WINBOOL WINAPI ImmNotifyIME(HIMC,DWORD dwAction,DWORD dwIndex,DWORD dwValue); |
| 206 |
WINBOOL WINAPI ImmGetStatusWindowPos(HIMC,LPPOINT); |
| 207 |
WINBOOL WINAPI ImmSetStatusWindowPos(HIMC,LPPOINT); |
| 208 |
WINBOOL WINAPI ImmGetCompositionWindow(HIMC,LPCOMPOSITIONFORM); |
| 209 |
WINBOOL WINAPI ImmSetCompositionWindow(HIMC,LPCOMPOSITIONFORM); |
| 210 |
WINBOOL WINAPI ImmGetCandidateWindow(HIMC,DWORD,LPCANDIDATEFORM); |
| 211 |
WINBOOL WINAPI ImmSetCandidateWindow(HIMC,LPCANDIDATEFORM); |
| 212 |
WINBOOL WINAPI ImmIsUIMessageA(HWND,UINT,WPARAM,LPARAM); |
| 213 |
WINBOOL WINAPI ImmIsUIMessageW(HWND,UINT,WPARAM,LPARAM); |
| 214 |
UINT WINAPI ImmGetVirtualKey(HWND); |
| 215 |
WINBOOL WINAPI ImmRegisterWordA(HKL,LPCSTR lpszReading,DWORD,LPCSTR lpszRegister); |
| 216 |
WINBOOL WINAPI ImmRegisterWordW(HKL,LPCWSTR lpszReading,DWORD,LPCWSTR lpszRegister); |
| 217 |
WINBOOL WINAPI ImmUnregisterWordA(HKL,LPCSTR lpszReading,DWORD,LPCSTR lpszUnregister); |
| 218 |
WINBOOL WINAPI ImmUnregisterWordW(HKL,LPCWSTR lpszReading,DWORD,LPCWSTR lpszUnregister); |
| 219 |
UINT WINAPI ImmGetRegisterWordStyleA(HKL,UINT nItem,LPSTYLEBUFA); |
| 220 |
UINT WINAPI ImmGetRegisterWordStyleW(HKL,UINT nItem,LPSTYLEBUFW); |
| 221 |
UINT WINAPI ImmEnumRegisterWordA(HKL,REGISTERWORDENUMPROCA,LPCSTR lpszReading,DWORD,LPCSTR lpszRegister,LPVOID); |
| 222 |
UINT WINAPI ImmEnumRegisterWordW(HKL,REGISTERWORDENUMPROCW,LPCWSTR lpszReading,DWORD,LPCWSTR lpszRegister,LPVOID); |
| 223 |
WINBOOL WINAPI ImmDisableIME(DWORD); |
| 224 |
WINBOOL WINAPI ImmEnumInputContext(DWORD idThread,IMCENUMPROC lpfn,LPARAM lParam); |
| 225 |
DWORD WINAPI ImmGetImeMenuItemsA(HIMC,DWORD,DWORD,LPIMEMENUITEMINFOA,LPIMEMENUITEMINFOA,DWORD); |
| 226 |
DWORD WINAPI ImmGetImeMenuItemsW(HIMC,DWORD,DWORD,LPIMEMENUITEMINFOW,LPIMEMENUITEMINFOW,DWORD); |
| 227 |
WINBOOL WINAPI ImmDisableTextFrameService(DWORD idThread); |
| 228 |
|
| 229 |
#define IMC_GETCANDIDATEPOS 0x0007 |
| 230 |
#define IMC_SETCANDIDATEPOS 0x0008 |
| 231 |
#define IMC_GETCOMPOSITIONFONT 0x0009 |
| 232 |
#define IMC_SETCOMPOSITIONFONT 0x000A |
| 233 |
#define IMC_GETCOMPOSITIONWINDOW 0x000B |
| 234 |
#define IMC_SETCOMPOSITIONWINDOW 0x000C |
| 235 |
#define IMC_GETSTATUSWINDOWPOS 0x000F |
| 236 |
#define IMC_SETSTATUSWINDOWPOS 0x0010 |
| 237 |
#define IMC_CLOSESTATUSWINDOW 0x0021 |
| 238 |
#define IMC_OPENSTATUSWINDOW 0x0022 |
| 239 |
|
| 240 |
#define NI_OPENCANDIDATE 0x0010 |
| 241 |
#define NI_CLOSECANDIDATE 0x0011 |
| 242 |
#define NI_SELECTCANDIDATESTR 0x0012 |
| 243 |
#define NI_CHANGECANDIDATELIST 0x0013 |
| 244 |
#define NI_FINALIZECONVERSIONRESULT 0x0014 |
| 245 |
#define NI_COMPOSITIONSTR 0x0015 |
| 246 |
#define NI_SETCANDIDATE_PAGESTART 0x0016 |
| 247 |
#define NI_SETCANDIDATE_PAGESIZE 0x0017 |
| 248 |
#define NI_IMEMENUSELECTED 0x0018 |
| 249 |
|
| 250 |
#define ISC_SHOWUICANDIDATEWINDOW 0x00000001 |
| 251 |
#define ISC_SHOWUICOMPOSITIONWINDOW 0x80000000 |
| 252 |
#define ISC_SHOWUIGUIDELINE 0x40000000 |
| 253 |
#define ISC_SHOWUIALLCANDIDATEWINDOW 0x0000000F |
| 254 |
#define ISC_SHOWUIALL 0xC000000F |
| 255 |
|
| 256 |
#define CPS_COMPLETE 0x0001 |
| 257 |
#define CPS_CONVERT 0x0002 |
| 258 |
#define CPS_REVERT 0x0003 |
| 259 |
#define CPS_CANCEL 0x0004 |
| 260 |
|
| 261 |
#define MOD_ALT 0x0001 |
| 262 |
#define MOD_CONTROL 0x0002 |
| 263 |
#define MOD_SHIFT 0x0004 |
| 264 |
|
| 265 |
#define MOD_LEFT 0x8000 |
| 266 |
#define MOD_RIGHT 0x4000 |
| 267 |
|
| 268 |
#define MOD_ON_KEYUP 0x0800 |
| 269 |
#define MOD_IGNORE_ALL_MODIFIER 0x0400 |
| 270 |
|
| 271 |
#define IME_CHOTKEY_IME_NONIME_TOGGLE 0x10 |
| 272 |
#define IME_CHOTKEY_SHAPE_TOGGLE 0x11 |
| 273 |
#define IME_CHOTKEY_SYMBOL_TOGGLE 0x12 |
| 274 |
|
| 275 |
#define IME_JHOTKEY_CLOSE_OPEN 0x30 |
| 276 |
|
| 277 |
#define IME_KHOTKEY_SHAPE_TOGGLE 0x50 |
| 278 |
#define IME_KHOTKEY_HANJACONVERT 0x51 |
| 279 |
#define IME_KHOTKEY_ENGLISH 0x52 |
| 280 |
|
| 281 |
#define IME_THOTKEY_IME_NONIME_TOGGLE 0x70 |
| 282 |
#define IME_THOTKEY_SHAPE_TOGGLE 0x71 |
| 283 |
#define IME_THOTKEY_SYMBOL_TOGGLE 0x72 |
| 284 |
|
| 285 |
#define IME_HOTKEY_DSWITCH_FIRST 0x100 |
| 286 |
#define IME_HOTKEY_DSWITCH_LAST 0x11F |
| 287 |
|
| 288 |
#define IME_HOTKEY_PRIVATE_FIRST 0x200 |
| 289 |
#define IME_ITHOTKEY_RESEND_RESULTSTR 0x200 |
| 290 |
#define IME_ITHOTKEY_PREVIOUS_COMPOSITION 0x201 |
| 291 |
#define IME_ITHOTKEY_UISTYLE_TOGGLE 0x202 |
| 292 |
#define IME_ITHOTKEY_RECONVERTSTRING 0x203 |
| 293 |
#define IME_HOTKEY_PRIVATE_LAST 0x21F |
| 294 |
|
| 295 |
#define GCS_COMPREADSTR 0x0001 |
| 296 |
#define GCS_COMPREADATTR 0x0002 |
| 297 |
#define GCS_COMPREADCLAUSE 0x0004 |
| 298 |
#define GCS_COMPSTR 0x0008 |
| 299 |
#define GCS_COMPATTR 0x0010 |
| 300 |
#define GCS_COMPCLAUSE 0x0020 |
| 301 |
#define GCS_CURSORPOS 0x0080 |
| 302 |
#define GCS_DELTASTART 0x0100 |
| 303 |
#define GCS_RESULTREADSTR 0x0200 |
| 304 |
#define GCS_RESULTREADCLAUSE 0x0400 |
| 305 |
#define GCS_RESULTSTR 0x0800 |
| 306 |
#define GCS_RESULTCLAUSE 0x1000 |
| 307 |
|
| 308 |
#define CS_INSERTCHAR 0x2000 |
| 309 |
#define CS_NOMOVECARET 0x4000 |
| 310 |
|
| 311 |
#define IMEVER_0310 0x0003000A |
| 312 |
#define IMEVER_0400 0x00040000 |
| 313 |
|
| 314 |
#define IME_PROP_AT_CARET 0x00010000 |
| 315 |
#define IME_PROP_SPECIAL_UI 0x00020000 |
| 316 |
#define IME_PROP_CANDLIST_START_FROM_1 0x00040000 |
| 317 |
#define IME_PROP_UNICODE 0x00080000 |
| 318 |
#define IME_PROP_COMPLETE_ON_UNSELECT 0x00100000 |
| 319 |
|
| 320 |
#define UI_CAP_2700 0x00000001 |
| 321 |
#define UI_CAP_ROT90 0x00000002 |
| 322 |
#define UI_CAP_ROTANY 0x00000004 |
| 323 |
|
| 324 |
#define SCS_CAP_COMPSTR 0x00000001 |
| 325 |
#define SCS_CAP_MAKEREAD 0x00000002 |
| 326 |
#define SCS_CAP_SETRECONVERTSTRING 0x00000004 |
| 327 |
|
| 328 |
#define SELECT_CAP_CONVERSION 0x00000001 |
| 329 |
#define SELECT_CAP_SENTENCE 0x00000002 |
| 330 |
|
| 331 |
#define GGL_LEVEL 0x00000001 |
| 332 |
#define GGL_INDEX 0x00000002 |
| 333 |
#define GGL_STRING 0x00000003 |
| 334 |
#define GGL_PRIVATE 0x00000004 |
| 335 |
|
| 336 |
#define GL_LEVEL_NOGUIDELINE 0x00000000 |
| 337 |
#define GL_LEVEL_FATAL 0x00000001 |
| 338 |
#define GL_LEVEL_ERROR 0x00000002 |
| 339 |
#define GL_LEVEL_WARNING 0x00000003 |
| 340 |
#define GL_LEVEL_INFORMATION 0x00000004 |
| 341 |
|
| 342 |
#define GL_ID_UNKNOWN 0x00000000 |
| 343 |
#define GL_ID_NOMODULE 0x00000001 |
| 344 |
#define GL_ID_NODICTIONARY 0x00000010 |
| 345 |
#define GL_ID_CANNOTSAVE 0x00000011 |
| 346 |
#define GL_ID_NOCONVERT 0x00000020 |
| 347 |
#define GL_ID_TYPINGERROR 0x00000021 |
| 348 |
#define GL_ID_TOOMANYSTROKE 0x00000022 |
| 349 |
#define GL_ID_READINGCONFLICT 0x00000023 |
| 350 |
#define GL_ID_INPUTREADING 0x00000024 |
| 351 |
#define GL_ID_INPUTRADICAL 0x00000025 |
| 352 |
#define GL_ID_INPUTCODE 0x00000026 |
| 353 |
#define GL_ID_INPUTSYMBOL 0x00000027 |
| 354 |
#define GL_ID_CHOOSECANDIDATE 0x00000028 |
| 355 |
#define GL_ID_REVERSECONVERSION 0x00000029 |
| 356 |
#define GL_ID_PRIVATE_FIRST 0x00008000 |
| 357 |
#define GL_ID_PRIVATE_LAST 0x0000FFFF |
| 358 |
|
| 359 |
#define IGP_GETIMEVERSION (DWORD)(-4) |
| 360 |
#define IGP_PROPERTY 0x00000004 |
| 361 |
#define IGP_CONVERSION 0x00000008 |
| 362 |
#define IGP_SENTENCE 0x0000000c |
| 363 |
#define IGP_UI 0x00000010 |
| 364 |
#define IGP_SETCOMPSTR 0x00000014 |
| 365 |
#define IGP_SELECT 0x00000018 |
| 366 |
|
| 367 |
#define SCS_SETSTR (GCS_COMPREADSTR|GCS_COMPSTR) |
| 368 |
#define SCS_CHANGEATTR (GCS_COMPREADATTR|GCS_COMPATTR) |
| 369 |
#define SCS_CHANGECLAUSE (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE) |
| 370 |
#define SCS_SETRECONVERTSTRING 0x00010000 |
| 371 |
#define SCS_QUERYRECONVERTSTRING 0x00020000 |
| 372 |
|
| 373 |
#define ATTR_INPUT 0x00 |
| 374 |
#define ATTR_TARGET_CONVERTED 0x01 |
| 375 |
#define ATTR_CONVERTED 0x02 |
| 376 |
#define ATTR_TARGET_NOTCONVERTED 0x03 |
| 377 |
#define ATTR_INPUT_ERROR 0x04 |
| 378 |
#define ATTR_FIXEDCONVERTED 0x05 |
| 379 |
|
| 380 |
#define CFS_DEFAULT 0x0000 |
| 381 |
#define CFS_RECT 0x0001 |
| 382 |
#define CFS_POINT 0x0002 |
| 383 |
#define CFS_FORCE_POSITION 0x0020 |
| 384 |
#define CFS_CANDIDATEPOS 0x0040 |
| 385 |
#define CFS_EXCLUDE 0x0080 |
| 386 |
|
| 387 |
#define GCL_CONVERSION 0x0001 |
| 388 |
#define GCL_REVERSECONVERSION 0x0002 |
| 389 |
#define GCL_REVERSE_LENGTH 0x0003 |
| 390 |
|
| 391 |
#define IME_CMODE_ALPHANUMERIC 0x0000 |
| 392 |
#define IME_CMODE_NATIVE 0x0001 |
| 393 |
#define IME_CMODE_CHINESE IME_CMODE_NATIVE |
| 394 |
|
| 395 |
#define IME_CMODE_HANGEUL IME_CMODE_NATIVE |
| 396 |
#define IME_CMODE_HANGUL IME_CMODE_NATIVE |
| 397 |
#define IME_CMODE_JAPANESE IME_CMODE_NATIVE |
| 398 |
#define IME_CMODE_KATAKANA 0x0002 |
| 399 |
#define IME_CMODE_LANGUAGE 0x0003 |
| 400 |
#define IME_CMODE_FULLSHAPE 0x0008 |
| 401 |
#define IME_CMODE_ROMAN 0x0010 |
| 402 |
#define IME_CMODE_CHARCODE 0x0020 |
| 403 |
#define IME_CMODE_HANJACONVERT 0x0040 |
| 404 |
#define IME_CMODE_SOFTKBD 0x0080 |
| 405 |
#define IME_CMODE_NOCONVERSION 0x0100 |
| 406 |
#define IME_CMODE_EUDC 0x0200 |
| 407 |
#define IME_CMODE_SYMBOL 0x0400 |
| 408 |
#define IME_CMODE_FIXED 0x0800 |
| 409 |
#define IME_CMODE_RESERVED 0xF0000000 |
| 410 |
|
| 411 |
#define IME_SMODE_NONE 0x0000 |
| 412 |
#define IME_SMODE_PLAURALCLAUSE 0x0001 |
| 413 |
#define IME_SMODE_SINGLECONVERT 0x0002 |
| 414 |
#define IME_SMODE_AUTOMATIC 0x0004 |
| 415 |
#define IME_SMODE_PHRASEPREDICT 0x0008 |
| 416 |
#define IME_SMODE_CONVERSATION 0x0010 |
| 417 |
#define IME_SMODE_RESERVED 0x0000F000 |
| 418 |
|
| 419 |
#define IME_CAND_UNKNOWN 0x0000 |
| 420 |
#define IME_CAND_READ 0x0001 |
| 421 |
#define IME_CAND_CODE 0x0002 |
| 422 |
#define IME_CAND_MEANING 0x0003 |
| 423 |
#define IME_CAND_RADICAL 0x0004 |
| 424 |
#define IME_CAND_STROKE 0x0005 |
| 425 |
|
| 426 |
#define IMN_CLOSESTATUSWINDOW 0x0001 |
| 427 |
#define IMN_OPENSTATUSWINDOW 0x0002 |
| 428 |
#define IMN_CHANGECANDIDATE 0x0003 |
| 429 |
#define IMN_CLOSECANDIDATE 0x0004 |
| 430 |
#define IMN_OPENCANDIDATE 0x0005 |
| 431 |
#define IMN_SETCONVERSIONMODE 0x0006 |
| 432 |
#define IMN_SETSENTENCEMODE 0x0007 |
| 433 |
#define IMN_SETOPENSTATUS 0x0008 |
| 434 |
#define IMN_SETCANDIDATEPOS 0x0009 |
| 435 |
#define IMN_SETCOMPOSITIONFONT 0x000A |
| 436 |
#define IMN_SETCOMPOSITIONWINDOW 0x000B |
| 437 |
#define IMN_SETSTATUSWINDOWPOS 0x000C |
| 438 |
#define IMN_GUIDELINE 0x000D |
| 439 |
#define IMN_PRIVATE 0x000E |
| 440 |
|
| 441 |
#define IMR_COMPOSITIONWINDOW 0x0001 |
| 442 |
#define IMR_CANDIDATEWINDOW 0x0002 |
| 443 |
#define IMR_COMPOSITIONFONT 0x0003 |
| 444 |
#define IMR_RECONVERTSTRING 0x0004 |
| 445 |
#define IMR_CONFIRMRECONVERTSTRING 0x0005 |
| 446 |
#define IMR_QUERYCHARPOSITION 0x0006 |
| 447 |
#define IMR_DOCUMENTFEED 0x0007 |
| 448 |
|
| 449 |
#define IMM_ERROR_NODATA (-1) |
| 450 |
#define IMM_ERROR_GENERAL (-2) |
| 451 |
|
| 452 |
#define IME_CONFIG_GENERAL 1 |
| 453 |
#define IME_CONFIG_REGISTERWORD 2 |
| 454 |
#define IME_CONFIG_SELECTDICTIONARY 3 |
| 455 |
|
| 456 |
#define IME_ESC_QUERY_SUPPORT 0x0003 |
| 457 |
#define IME_ESC_RESERVED_FIRST 0x0004 |
| 458 |
#define IME_ESC_RESERVED_LAST 0x07FF |
| 459 |
#define IME_ESC_PRIVATE_FIRST 0x0800 |
| 460 |
#define IME_ESC_PRIVATE_LAST 0x0FFF |
| 461 |
|
| 462 |
#define IME_ESC_SEQUENCE_TO_INTERNAL 0x1001 |
| 463 |
#define IME_ESC_GET_EUDC_DICTIONARY 0x1003 |
| 464 |
#define IME_ESC_SET_EUDC_DICTIONARY 0x1004 |
| 465 |
#define IME_ESC_MAX_KEY 0x1005 |
| 466 |
#define IME_ESC_IME_NAME 0x1006 |
| 467 |
#define IME_ESC_SYNC_HOTKEY 0x1007 |
| 468 |
#define IME_ESC_HANJA_MODE 0x1008 |
| 469 |
#define IME_ESC_AUTOMATA 0x1009 |
| 470 |
#define IME_ESC_PRIVATE_HOTKEY 0x100a |
| 471 |
#define IME_ESC_GETHELPFILENAME 0x100b |
| 472 |
|
| 473 |
#define IME_REGWORD_STYLE_EUDC 0x00000001 |
| 474 |
#define IME_REGWORD_STYLE_USER_FIRST 0x80000000 |
| 475 |
#define IME_REGWORD_STYLE_USER_LAST 0xFFFFFFFF |
| 476 |
|
| 477 |
#define IACE_CHILDREN 0x0001 |
| 478 |
#define IACE_DEFAULT 0x0010 |
| 479 |
#define IACE_IGNORENOCONTEXT 0x0020 |
| 480 |
|
| 481 |
#define IGIMIF_RIGHTMENU 0x0001 |
| 482 |
|
| 483 |
#define IGIMII_CMODE 0x0001 |
| 484 |
#define IGIMII_SMODE 0x0002 |
| 485 |
#define IGIMII_CONFIGURE 0x0004 |
| 486 |
#define IGIMII_TOOLS 0x0008 |
| 487 |
#define IGIMII_HELP 0x0010 |
| 488 |
#define IGIMII_OTHER 0x0020 |
| 489 |
#define IGIMII_INPUTTOOLS 0x0040 |
| 490 |
|
| 491 |
#define IMFT_RADIOCHECK 0x00001 |
| 492 |
#define IMFT_SEPARATOR 0x00002 |
| 493 |
#define IMFT_SUBMENU 0x00004 |
| 494 |
|
| 495 |
#define IMFS_GRAYED MFS_GRAYED |
| 496 |
#define IMFS_DISABLED MFS_DISABLED |
| 497 |
#define IMFS_CHECKED MFS_CHECKED |
| 498 |
#define IMFS_HILITE MFS_HILITE |
| 499 |
#define IMFS_ENABLED MFS_ENABLED |
| 500 |
#define IMFS_UNCHECKED MFS_UNCHECKED |
| 501 |
#define IMFS_UNHILITE MFS_UNHILITE |
| 502 |
#define IMFS_DEFAULT MFS_DEFAULT |
| 503 |
|
| 504 |
#define SOFTKEYBOARD_TYPE_T1 0x0001 |
| 505 |
#define SOFTKEYBOARD_TYPE_C1 0x0002 |
| 506 |
#endif |
| 507 |
|
| 508 |
#ifdef __cplusplus |
| 509 |
} |
| 510 |
#endif |
| 511 |
#endif |