Changeset 174 for Include/api_imm.sbp
- Timestamp:
- Mar 18, 2007, 10:56:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_imm.sbp
r160 r174 1 'imm.sbp 2 3 #ifndef _INC_IMM 4 #define _INC_IMM 1 ' api_imm.sbp 2 3 #ifndef _IMM_ 4 #define _IMM_ 5 6 #ifndef _IMM_SDK_DEFINED_ 7 #define _IMM_SDK_DEFINED_ 5 8 6 9 Type _System_DeclareHandle_HIMC:unused As DWord:End Type 7 10 TypeDef HIMC = *_System_DeclareHandle_HIMC 8 9 Const CFS_DEFAULT = &H0000 10 Const CFS_RECT = &H0001 11 Const CFS_POINT = &H0002 12 Const CFS_FORCE_POSITION = &H0020 13 Const CFS_CANDIDATEPOS = &H0040 14 Const CFS_EXCLUDE = &H0080 11 Type _System_DeclareHandle_HIMCC:unused As DWord:End Type 12 TypeDef HIMCC = *_System_DeclareHandle_HIMCC 13 15 14 Type COMPOSITIONFORM 16 15 dwStyle As DWord … … 18 17 rcArea As RECT 19 18 End Type 20 21 Declare Function ImmDisableIME Lib "imm32" (idThread As DWord) As BOOL 22 #ifdef UNICODE 23 Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringW" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 24 #else 25 Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 26 #endif 19 TypeDef PCOMPOSITIONFORM = *COMPOSITIONFORM 20 TypeDef NPCOMPOSITIONFORM = *COMPOSITIONFORM 21 TypeDef LPCOMPOSITIONFORM = *COMPOSITIONFORM 22 23 Type CANDIDATEFORM 24 dwIndex As DWord 25 dwStyle As DWord 26 ptCurrentPos As POINTAPI 27 rcArea As RECT 28 End Type 29 TypeDef PCANDIDATEFORM = *CANDIDATEFORM 30 TypeDef NPCANDIDATEFORM = *CANDIDATEFORM 31 TypeDef LPCANDIDATEFORM = *CANDIDATEFORM 32 33 Type CANDIDATELIST 34 dwSize As DWord 35 dwStyle As DWord 36 dwCount As DWord 37 dwSelection As DWord 38 dwPageStart As DWord 39 dwPageSize As DWord 40 dwOffset[ELM(1)] As DWord 41 End Type 42 TypeDef PCANDIDATELIST = *CANDIDATELIST 43 TypeDef NPCANDIDATELIST = *CANDIDATELIST 44 TypeDef LPCANDIDATELIST = *CANDIDATELIST 45 46 Type REGISTERWORDA 47 lpReading As LPSTR 48 lpWord As LPSTR 49 End Type 50 TypeDef PREGISTERWORDA = *REGISTERWORDA 51 TypeDef NPREGISTERWORDA = *REGISTERWORDA 52 TypeDef LPREGISTERWORDA = *REGISTERWORDA 53 54 Type REGISTERWORDW 55 lpReading As LPWSTR 56 lpWord As LPWSTR 57 End Type 58 TypeDef PREGISTERWORDW = *REGISTERWORDW 59 TypeDef NPREGISTERWORDW = *REGISTERWORDW 60 TypeDef LPREGISTERWORDW = *REGISTERWORDW 61 62 #ifdef UNICODE 63 TypeDef REGISTERWORD = REGISTERWORDW 64 TypeDef PREGISTERWORD = PREGISTERWORDW 65 TypeDef NPREGISTERWORD = NPREGISTERWORDW 66 TypeDef LPREGISTERWORD = LPREGISTERWORDW 67 #else 68 TypeDef REGISTERWORD = REGISTERWORDA 69 TypeDef PREGISTERWORD = PREGISTERWORDA 70 TypeDef NPREGISTERWORD = NPREGISTERWORDA 71 TypeDef LPREGISTERWORD = LPREGISTERWORDA 72 #endif 73 74 Type RECONVERTSTRING 75 dwSize As DWord 76 dwVersion As DWord 77 dwStrLen As DWord 78 dwStrOffset As DWord 79 dwCompStrLen As DWord 80 dwCompStrOffset As DWord 81 dwTargetStrLen As DWord 82 dwTargetStrOffset As DWord 83 End Type 84 TypeDef PRECONVERTSTRING = *RECONVERTSTRING 85 TypeDef NPRECONVERTSTRING = *RECONVERTSTRING 86 TypeDef LPRECONVERTSTRING = *RECONVERTSTRING 87 88 Const STYLE_DESCRIPTION_SIZE = 32 89 90 Type STYLEBUFA 91 dwStyle As DWord 92 szDescription[ELM(STYLE_DESCRIPTION_SIZE)] As CHAR 93 End Type 94 TypeDef PSTYLEBUFA = *STYLEBUFA 95 TypeDef NPSTYLEBUFA = *STYLEBUFA 96 TypeDef LPSTYLEBUFA = *STYLEBUFA 97 98 Type STYLEBUFW 99 dwStyle As DWord 100 szDescription[ELM(STYLE_DESCRIPTION_SIZE)] As WCHAR 101 End Type 102 TypeDef PSTYLEBUFW = *STYLEBUFW 103 TypeDef NPSTYLEBUFW = *STYLEBUFW 104 TypeDef LPSTYLEBUFW = *STYLEBUFW 105 106 #ifdef UNICODE 107 TypeDef STYLEBUF = STYLEBUFW 108 TypeDef PSTYLEBUF = PSTYLEBUFW 109 TypeDef NPSTYLEBUF = NPSTYLEBUFW 110 TypeDef LPSTYLEBUF = LPSTYLEBUFW 111 #else 112 TypeDef STYLEBUF = STYLEBUFA 113 TypeDef PSTYLEBUF = PSTYLEBUFA 114 TypeDef NPSTYLEBUF = NPSTYLEBUFA 115 TypeDef LPSTYLEBUF = LPSTYLEBUFA 116 #endif 117 118 #if (WINVER >= 0x040A) 119 120 Const IMEMENUITEM_STRING_SIZE = 80 121 122 Type IMEMENUITEMINFOA 123 cbSize As DWord 124 fType As DWord 125 fState As DWord 126 wID As DWord 127 hbmpChecked As HBITMAP 128 hbmpUnchecked As HBITMAP 129 dwItemData As DWord 130 szString[ELM(IMEMENUITEM_STRING_SIZE)] As CHAR 131 hbmpItem As HBITMAP 132 End Type 133 TypeDef PIMEMENUITEMINFOA = *IMEMENUITEMINFOA 134 TypeDef NPIMEMENUITEMINFOA = *IMEMENUITEMINFOA 135 TypeDef LPIMEMENUITEMINFOA = *IMEMENUITEMINFOA 136 137 Type IMEMENUITEMINFOW 138 cbSize As DWord 139 fType As DWord 140 fState As DWord 141 wID As DWord 142 hbmpChecked As HBITMAP 143 hbmpUnchecked As HBITMAP 144 dwItemData As DWord 145 szString[ELM(IMEMENUITEM_STRING_SIZE)] As WCHAR 146 hbmpItem As HBITMAP 147 End Type 148 TypeDef PIMEMENUITEMINFOW = *IMEMENUITEMINFOW 149 TypeDef NPIMEMENUITEMINFOW = *IMEMENUITEMINFOW 150 TypeDef LPIMEMENUITEMINFOW = *IMEMENUITEMINFOW 151 152 #ifdef UNICODE 153 TypeDef IMEMENUITEMINFO = IMEMENUITEMINFOW 154 TypeDef PIMEMENUITEMINFO = PIMEMENUITEMINFOW 155 TypeDef NPIMEMENUITEMINFO = NPIMEMENUITEMINFOW 156 TypeDef LPIMEMENUITEMINFO = LPIMEMENUITEMINFOW 157 #else 158 TypeDef IMEMENUITEMINFO = IMEMENUITEMINFOA 159 TypeDef PIMEMENUITEMINFO = PIMEMENUITEMINFOA 160 TypeDef NPIMEMENUITEMINFO = NPIMEMENUITEMINFOA 161 TypeDef LPIMEMENUITEMINFO = LPIMEMENUITEMINFOA 162 #endif 163 164 Type IMECHARPOSITION 165 dwSize As DWord 166 dwCharPos As DWord 167 pt As POINTAPI 168 cLineHeight As DWord 169 rcDocument As RECT 170 End Type 171 TypeDef PIMECHARPOSITION = *IMECHARPOSITION 172 TypeDef NPIMECHARPOSITION = *IMECHARPOSITION 173 TypeDef LPIMECHARPOSITION = *IMECHARPOSITION 174 175 TypeDef IMCENUMPROC = *Function(himc As HIMC, lp As LPARAM) As BOOL 176 177 'prototype of IMM API 178 179 Declare Function ImmInstallIMEA Lib "imm32" (lpszIMEFileName As LPCSTR, lpszLayoutText As LPCSTR) As HKL 180 Declare Function ImmInstallIMEW Lib "imm32" (lpszIMEFileName As LPCWSTR, lpszLayoutText As LPCWSTR) As HKL 181 #ifdef UNICODE 182 Declare Function ImmInstallIME Lib "imm32" Alias "ImmInstallIMEW" (lpszIMEFileName As LPCWSTR, lpszLayoutText As LPCWSTR) As HKL 183 #else 184 Declare Function ImmInstallIME Lib "imm32" Alias "ImmInstallIMEA" (lpszIMEFileName As LPCSTR, lpszLayoutText As LPCSTR) As HKL 185 #endif 186 187 Declare Function ImmGetDefaultIMEWnd Lib "imm32" (hwnd As HWND) As HWND 188 189 Declare Function ImmGetDescriptionA Lib "imm32" (hkl As HKL, lpszDescription As LPSTR, uBufLen As DWord) As DWord 190 Declare Function ImmGetDescriptionW Lib "imm32" (hkl As HKL, lpszDescription As LPWSTR, uBufLen As DWord) As DWord 191 #ifdef UNICODE 192 Declare Function ImmGetDescription Lib "imm32" Alias "ImmGetDescriptionW" (hkl As HKL, lpszDescription As LPWSTR, uBufLen As DWord) As DWord 193 #else 194 Declare Function ImmGetDescription Lib "imm32" Alias "ImmGetDescriptionA" (hkl As HKL, lpszDescription As LPSTR, uBufLen As DWord) As DWord 195 #endif 196 197 Declare Function ImmGetIMEFileNameA Lib "imm32" (lpszFileName As LPSTR, uBufLen As DWord) As DWord 198 Declare Function ImmGetIMEFileNameW Lib "imm32" (lpszFileName As LPWSTR, uBufLen As DWord) As DWord 199 #ifdef UNICODE 200 Declare Function ImmGetIMEFileName Lib "imm32" Alias "ImmGetIMEFileNameW" (lpszFileName As LPWSTR, uBufLen As DWord) As DWord 201 #else 202 Declare Function ImmGetIMEFileName Lib "imm32" Alias "ImmGetIMEFileNameA" (lpszFileName As LPSTR, uBufLen As DWord) As DWord 203 #endif 204 205 Declare Function ImmGetProperty Lib "imm32" (hkl As HKL, fdwIndex As DWord) As DWord 206 Declare Function ImmIsIME Lib "imm32" (hkl As HKL) As BOOL 207 Declare Function ImmSimulateHotKey Lib "imm32" (hwnd As HWND, dwHotKeyID As DWord) As BOOL 208 Declare Function ImmCreateContext Lib "imm32" () As HIMC 209 Declare Function ImmDestroyContext Lib "imm32" (himc As HIMC) As BOOL 210 Declare Function ImmGetContext Lib "imm32" (hwnd As HWND) As HIMC 211 Declare Function ImmReleaseContext Lib "imm32" (hwnd As HWND, himc As HIMC) As BOOL 212 Declare Function ImmAssociateContext Lib "imm32" (hwnd As HWND, himc As HIMC) As HIMC 213 Declare Function ImmAssociateContextEx Lib "imm32" (hwnd As HWND, himc As HIMC, dwFlags As DWord) As HIMC 214 27 215 Declare Function ImmGetCompositionStringA Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 28 216 Declare Function ImmGetCompositionStringW Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 29 30 #ifdef UNICODE 31 Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL 32 #else 33 Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL 34 #endif 217 #ifdef UNICODE 218 Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringW" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 219 #else 220 Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long 221 #endif 222 223 Declare Function ImmSetCompositionStringA Lib "imm32" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord 224 Declare Function ImmSetCompositionStringW Lib "imm32" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord 225 #ifdef UNICODE 226 Declare Function ImmSetCompositionString Lib "imm32" Alias "ImmSetCompositionStringW" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord 227 #else 228 Declare Function ImmSetCompositionString Lib "imm32" Alias "ImmSetCompositionStringA" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord 229 #endif 230 231 Declare Function ImmGetCandidateListCountA Lib "imm32" (himc As HIMC, ByRef dwListCount As DWord) As DWord 232 Declare Function ImmGetCandidateListCountW Lib "imm32" (himc As HIMC, ByRef dwListCount As DWord) As DWord 233 #ifdef UNICODE 234 Declare Function ImmGetCandidateListCount Lib "imm32" Alias "ImmGetCandidateListCountW" (himc As HIMC, ByRef dwListCount As DWord) As DWord 235 #else 236 Declare Function ImmGetCandidateListCount Lib "imm32" Alias "ImmGetCandidateListCountA" (himc As HIMC, ByRef dwListCount As DWord) As DWord 237 #endif 238 239 Declare Function ImmGetCandidateListA Lib "imm32" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord 240 Declare Function ImmGetCandidateListW Lib "imm32" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord 241 #ifdef UNICODE 242 Declare Function ImmGetCandidateList Lib "imm32" Alias "ImmGetCandidateListW" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord 243 #else 244 Declare Function ImmGetCandidateList Lib "imm32" Alias "ImmGetCandidateListA" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord 245 #endif 246 247 Declare Function ImmGetGuideLineA(himc As HIMC, dwIndex As DWord, lpBuf As LPSTR, dwBufLen As DWord) As DWord 248 Declare Function ImmGetGuideLineW(himc As HIMC, dwIndex As DWord, lpBuf As LPWSTR, dwBufLen As DWord) As DWord 249 #ifdef UNICODE 250 Declare Function ImmGetGuideLine Alias "ImmGetGuideLineW" (himc As HIMC, dwIndex As DWord, lpBuf As LPWSTR, dwBufLen As DWord) As DWord 251 #else 252 Declare Function ImmGetGuideLine Alias "ImmGetGuideLineA" (himc As HIMC, dwIndex As DWord, lpBuf As LPSTR, dwBufLen As DWord) As DWord 253 #endif 254 255 Declare Function ImmGetConversionStatus(himc As HIMC, ByRef fdwConversion As DWord, ByRef fdwSentence As DWord) As BOOL 256 Declare Function ImmSetConversionStatus(himc As HIMC, fdwConversion As DWord, fdwSentence As DWord) As BOOL 257 Declare Function ImmGetOpenStatus(himc As HIMC) As BOOL 258 Declare Function ImmSetOpenStatus(himc As HIMC, fOpen As BOOL) As BOOL 259 260 #ifdef _INC_GDI '_WINGDI_ 261 #ifndef NOGID 262 #ifdef UNICODE 35 263 Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As BOOL 36 264 Declare Function ImmGetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As BOOL 37 Declare Function ImmGetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL 38 39 #ifdef UNICODE 40 Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As Long 41 #else 42 Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As Long 43 #endif 265 #ifdef UNICODE 266 Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL 267 #else 268 Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL 269 #endif 270 44 271 Declare Function ImmSetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As Long 45 272 Declare Function ImmSetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As Long 46 Declare Function ImmSetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL 47 48 Declare Function ImmGetContext Lib "imm32" (hWnd As HWND) As HIMC 49 Declare Function ImmReleaseContext Lib "imm32" (hWnd As HWND, hIMC As HIMC) As BOOL 50 51 Declare Function ImmAssociateContext Lib "imm32" (hWnd As HWND, himc As HIMC) As HIMC 52 53 Const GCS_COMPREADSTR = &h0001 54 Const GCS_COMPREADATTR = &h0002 55 Const GCS_COMPREADCLAUSE = &h0004 56 Const GCS_COMPSTR = &h0008 57 Const GCS_COMPATTR = &h0010 58 Const GCS_COMPCLAUSE = &h0020 59 Const GCS_CURSORPOS = &h0080 60 Const GCS_DELTASTART = &h0100 61 Const GCS_RESULTREADSTR = &h0200 62 Const GCS_RESULTREADCLAUSE = &h0400 63 Const GCS_RESULTSTR = &h0800 64 Const GCS_RESULTCLAUSE = &h1000 65 66 67 #endif '_INC_IMM 273 #ifdef UNICODE 274 Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As Long 275 #else 276 Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As Long 277 #endif 278 #endif 279 280 Declare Function ImmConfigureIMEA Lib "imm32" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL 281 Declare Function ImmConfigureIMEW Lib "imm32" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL 282 #ifdef UNICODE 283 Declare Function ImmConfigureIME Lib "imm32" Alias "ImmConfigureIMEW" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL 284 #else 285 Declare Function ImmConfigureIME Lib "imm32" Alias "ImmConfigureIMEA" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL 286 #endif 287 288 Declare Function ImmEscapeA Lib "imm32" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL 289 Declare Function ImmEscapeW Lib "imm32" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL 290 #ifdef UNICODE 291 Declare Function ImmEscape Lib "imm32" Alias "ImmEscapeW" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL 292 #else 293 Declare Function ImmEscape Lib "imm32" Alias "ImmEscapeA" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL 294 #endif 295 296 Declare Function ImmGetConversionListA Lib "imm32" (hkl As HKL, lpSrc As LPCSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord 297 Declare Function ImmGetConversionListW Lib "imm32" (hkl As HKL, lpSrc As LPCWSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord 298 #ifdef UNICODE 299 Declare Function ImmGetConversionList Lib "imm32" Alias "ImmGetConversionListW" (hkl As HKL, lpSrc As LPCWSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord 300 #else 301 Declare Function ImmGetConversionList Lib "imm32" Alias "ImmGetConversionListA" (hkl As HKL, lpSrc As LPCSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord 302 #endif 303 304 Declare Function ImmNotifyIME Lib "imm32" (himc As HIMC, dwAction As DWord, dwIndex As DWord, dwValue As DWord) As BOOL 305 306 Declare Function ImmGetStatusWindowPos Lib "imm32" (himc As HIMC, ByRef ptPos As POINTAPI) As BOOL 307 Declare Function ImmSetStatusWindowPos Lib "imm32" (himc As HIMC, ByRef ptPos As POINTAPI) As BOOL 308 Declare Function ImmGetCompositionWindow Lib "imm32" (himc As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL 309 Declare Function ImmSetCompositionWindow Lib "imm32" (himc As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL 310 Declare Function ImmGetCandidateWindow Lib "imm32" (himc As HIMC, ByRef Candidate As CANDIDATEFORM) As BOOL 311 Declare Function ImmSetCandidateWindow Lib "imm32" (himc As HIMC, ByRef Candidate As CANDIDATEFORM) As BOOL 312 313 Declare Function ImmIsUIMessageA Lib "imm32" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL 314 Declare Function ImmIsUIMessageW Lib "imm32" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL 315 #ifdef UNICODE 316 Declare Function ImmIsUIMessage Lib "imm32" Alias "ImmIsUIMessageW" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL 317 #else 318 Declare Function ImmIsUIMessage Lib "imm32" Alias "ImmIsUIMessageA" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL 319 #endif 320 321 TypeDef REGISTERWORDENUMPROCA = *Function(lpszReading As LPCSTR, dwStyle As DWord, lpszString As LPCSTR, lpData As VoidPtr) As Long 322 TypeDef REGISTERWORDENUMPROCW = *Function(lpszReading As LPCWSTR, dwStyle As DWord, lpszString As LPCWSTR, lpData As VoidPtr) As Long 323 #ifdef UNICODE 324 TypeDef REGISTERWORDENUMPROC = REGISTERWORDENUMPROCW 325 #else 326 TypeDef REGISTERWORDENUMPROC = REGISTERWORDENUMPROCA 327 #endif 328 329 Declare Function ImmRegisterWordA Lib "imm32" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR) As BOOL 330 Declare Function ImmRegisterWordW Lib "imm32" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR) As BOOL 331 #ifdef UNICODE 332 Declare Function ImmRegisterWord Lib "imm32" Alias "ImmRegisterWordW" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR) As BOOL 333 #else 334 Declare Function ImmRegisterWord Lib "imm32" Alias "ImmRegisterWordA" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR) As BOOL 335 #endif 336 337 Declare Function ImmUnregisterWordA Lib "imm32" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszUnregister As LPCSTR) As BOOL 338 Declare Function ImmUnregisterWordW Lib "imm32" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszUnregister As LPCWSTR) As BOOL 339 #ifdef UNICODE 340 Declare Function ImmUnregisterWord Lib "imm32" Alias "ImmUnregisterWordW" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszUnregister As LPCWSTR) As BOOL 341 #else 342 Declare Function ImmUnregisterWord Lib "imm32" Alias "ImmUnregisterWordA" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszUnregister As LPCSTR) As BOOL 343 #endif 344 345 Declare Function ImmGetRegisterWordStyleA Lib "imm32" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFA) As DWord 346 Declare Function ImmGetRegisterWordStyleW Lib "imm32" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFW) As DWord 347 #ifdef UNICODE 348 Declare Function ImmGetRegisterWordStyle Lib "imm32" Alias "ImmGetRegisterWordStyleW" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFW) As DWord 349 #else 350 Declare Function ImmGetRegisterWordStyle Lib "imm32" Alias "ImmGetRegisterWordStyleA" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFA) As DWord 351 #endif 352 353 Declare Function ImmEnumRegisterWordA Lib "imm32" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCA, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR, lpData As VoidPtr) As DWord 354 Declare Function ImmEnumRegisterWordW Lib "imm32" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCW, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR, lpData As VoidPtr) As DWord 355 #ifdef UNICODE 356 Declare Function ImmEnumRegisterWord Lib "imm32" Alias "ImmEnumRegisterWordW" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCW, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR, lpData As VoidPtr) As DWord 357 #else 358 Declare Function ImmEnumRegisterWord Lib "imm32" Alias "ImmEnumRegisterWordA" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCA, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR, lpData As VoidPtr) As DWord 359 #endif 360 361 Declare Function ImmDisableIME Lib "imm32" (idThread As DWord) As BOOL 362 Declare Function ImmEnumInputContext Lib "imm32" (idThread As DWord, lpfn As IMCENUMPROC, lParam As LPARAM) As BOOL 363 Declare Function ImmGetImeMenuItemsA Lib "imm32" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOA, lpImeMenu As LPIMEMENUITEMINFOA, dwSoze As DWord) As DWord 364 Declare Function ImmGetImeMenuItemsW Lib "imm32" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOW, lpImeMenu As LPIMEMENUITEMINFOW, dwSoze As DWord) As DWord 365 #ifdef UNICODE 366 Declare Function ImmGetImeMenuItemsW Lib "imm32" Alias "ImmGetImeMenuItemsW" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOW, lpImeMenu As LPIMEMENUITEMINFOW, dwSoze As DWord) As DWord 367 #else 368 Declare Function ImmGetImeMenuItemsA Lib "imm32" Alias "ImmGetImeMenuItemsA" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOA, lpImeMenu As LPIMEMENUITEMINFOA, dwSoze As DWord) As DWord 369 #endif 370 Declare Function ImmGetImeMenuItems Lib "imm32" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFO, lpImeMenu As LPIMEMENUITEMINFO, dwSize As DWord) As DWord 371 Declare Function ImmDisableTextFrameService(idThread As DWord) As BOOL 372 373 ' wParam for WM_IME_CONTROL 374 Const IMC_GETCANDIDATEPOS = &h0007 375 Const IMC_SETCANDIDATEPOS = &h0008 376 Const IMC_GETCOMPOSITIONFONT = &h0009 377 Const IMC_SETCOMPOSITIONFONT = &h000A 378 Const IMC_GETCOMPOSITIONWINDOW = &h000B 379 Const IMC_SETCOMPOSITIONWINDOW = &h000C 380 Const IMC_GETSTATUSWINDOWPOS = &h000F 381 Const IMC_SETSTATUSWINDOWPOS = &h0010 382 Const IMC_CLOSESTATUSWINDOW = &h0021 383 Const IMC_OPENSTATUSWINDOW = &h0022 384 385 386 ' dwAction for ImmNotifyIME 387 Const NI_OPENCANDIDATE = &h0010 388 Const NI_CLOSECANDIDATE = &h0011 389 Const NI_SELECTCANDIDATESTR = &h0012 390 Const NI_CHANGECANDIDATELIST = &h0013 391 Const NI_FINALIZECONVERSIONRESULT = &h0014 392 Const NI_COMPOSITIONSTR = &h0015 393 Const NI_SETCANDIDATE_PAGESTART = &h0016 394 Const NI_SETCANDIDATE_PAGESIZE = &h0017 395 Const NI_IMEMENUSELECTED = &h0018 396 397 ' lParam for WM_IME_SETCONTEXT 398 Const ISC_SHOWUICANDIDATEWINDOW = &h00000001 399 Const ISC_SHOWUICOMPOSITIONWINDOW = &h80000000 400 Const ISC_SHOWUIGUIDELINE = &h40000000 401 Const ISC_SHOWUIALLCANDIDATEWINDOW = &h0000000F 402 Const ISC_SHOWUIALL = &hC000000F 403 404 405 ' dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR 406 Const CPS_COMPLETE = &h0001 407 Const CPS_CONVERT = &h0002 408 Const CPS_REVERT = &h0003 409 Const CPS_CANCEL = &h0004 410 411 ' the modifiers of hot key 412 Const MOD_ALT = &h0001 413 Const MOD_CONTROL = &h0002 414 Const MOD_SHIFT = &h0004 415 416 Const MOD_LEFT = &h8000 417 Const MOD_RIGHT = &h4000 418 419 Const MOD_ON_KEYUP = &h0800 420 Const MOD_IGNORE_ALL_MODIFIER = &h0400 421 422 423 ' Windows for Simplified Chinese Edition hot key ID from = &h10 - = &h2F 424 Const IME_CHOTKEY_IME_NONIME_TOGGLE = &h10 425 Const IME_CHOTKEY_SHAPE_TOGGLE = &h11 426 Const IME_CHOTKEY_SYMBOL_TOGGLE = &h12 427 428 ' Windows for Japanese Edition hot key ID from = &h30 - = &h4F 429 Const IME_JHOTKEY_CLOSE_OPEN = &h30 430 431 ' Windows for Korean Edition hot key ID from = &h50 - = &h6F 432 Const IME_KHOTKEY_SHAPE_TOGGLE = &h50 433 Const IME_KHOTKEY_HANJACONVERT = &h51 434 Const IME_KHOTKEY_ENGLISH = &h52 435 436 ' Windows for Traditional Chinese Edition hot key ID from = &h70 - = &h8F 437 Const IME_THOTKEY_IME_NONIME_TOGGLE = &h70 438 Const IME_THOTKEY_SHAPE_TOGGLE = &h71 439 Const IME_THOTKEY_SYMBOL_TOGGLE = &h72 440 441 ' direct switch hot key ID from = &h100 - = &h11F 442 Const IME_HOTKEY_DSWITCH_FIRST = &h100 443 Const IME_HOTKEY_DSWITCH_LAST = &h11F 444 445 ' IME private hot key from = &h200 - = &h21F 446 Const IME_HOTKEY_PRIVATE_FIRST = &h200 447 Const IME_ITHOTKEY_RESEND_RESULTSTR = &h200 448 Const IME_ITHOTKEY_PREVIOUS_COMPOSITION = &h201 449 Const IME_ITHOTKEY_UISTYLE_TOGGLE = &h202 450 Const IME_ITHOTKEY_RECONVERTSTRING = &h203 451 Const IME_HOTKEY_PRIVATE_LAST = &h21F 452 453 454 ' parameter of ImmGetCompositionString 455 Const GCS_COMPREADSTR = &h0001 456 Const GCS_COMPREADATTR = &h0002 457 Const GCS_COMPREADCLAUSE = &h0004 458 Const GCS_COMPSTR = &h0008 459 Const GCS_COMPATTR = &h0010 460 Const GCS_COMPCLAUSE = &h0020 461 Const GCS_CURSORPOS = &h0080 462 Const GCS_DELTASTART = &h0100 463 Const GCS_RESULTREADSTR = &h0200 464 Const GCS_RESULTREADCLAUSE = &h0400 465 Const GCS_RESULTSTR = &h0800 466 Const GCS_RESULTCLAUSE = &h1000 467 468 ' style bit flags for WM_IME_COMPOSITION 469 Const CS_INSERTCHAR = &h2000 470 Const CS_NOMOVECARET = &h4000 471 472 ' IME version constants 473 Const IMEVER_0310 = &h0003000A 474 Const IMEVER_0400 = &h00040000 475 476 477 ' IME property bits 478 Const IME_PROP_AT_CARET = &h00010000 479 Const IME_PROP_SPECIAL_UI = &h00020000 480 Const IME_PROP_CANDLIST_START_FROM_1 = &h00040000 481 Const IME_PROP_UNICODE = &h00080000 482 Const IME_PROP_COMPLETE_ON_UNSELECT = &h00100000 483 484 485 ' IME UICapability bits 486 Const UI_CAP_2700 = &h00000001 487 Const UI_CAP_ROT90 = &h00000002 488 Const UI_CAP_ROTANY = &h00000004 489 490 ' ImmSetCompositionString Capability bits 491 Const SCS_CAP_COMPSTR = &h00000001 492 Const SCS_CAP_MAKEREAD = &h00000002 493 Const SCS_CAP_SETRECONVERTSTRING = &h00000004 494 495 496 ' IME WM_IME_SELECT inheritance Capability bits 497 Const SELECT_CAP_CONVERSION = &h00000001 498 Const SELECT_CAP_SENTENCE = &h00000002 499 500 501 ' ID for deIndex of ImmGetGuideLine 502 Const GGL_LEVEL = &h00000001 503 Const GGL_INDEX = &h00000002 504 Const GGL_STRING = &h00000003 505 Const GGL_PRIVATE = &h00000004 506 507 508 ' ID for dwLevel of GUIDELINE Structure 509 Const GL_LEVEL_NOGUIDELINE = &h00000000 510 Const GL_LEVEL_FATAL = &h00000001 511 Const GL_LEVEL_ERROR = &h00000002 512 Const GL_LEVEL_WARNING = &h00000003 513 Const GL_LEVEL_INFORMATION = &h00000004 514 515 516 ' ID for dwIndex of GUIDELINE Structure 517 Const GL_ID_UNKNOWN = &h00000000 518 Const GL_ID_NOMODULE = &h00000001 519 Const GL_ID_NODICTIONARY = &h00000010 520 Const GL_ID_CANNOTSAVE = &h00000011 521 Const GL_ID_NOCONVERT = &h00000020 522 Const GL_ID_TYPINGERROR = &h00000021 523 Const GL_ID_TOOMANYSTROKE = &h00000022 524 Const GL_ID_READINGCONFLICT = &h00000023 525 Const GL_ID_INPUTREADING = &h00000024 526 Const GL_ID_INPUTRADICAL = &h00000025 527 Const GL_ID_INPUTCODE = &h00000026 528 Const GL_ID_INPUTSYMBOL = &h00000027 529 Const GL_ID_CHOOSECANDIDATE = &h00000028 530 Const GL_ID_REVERSECONVERSION = &h00000029 531 Const GL_ID_PRIVATE_FIRST = &h00008000 532 Const GL_ID_PRIVATE_LAST = &h0000FFFF 533 534 535 ' ID for dwIndex of ImmGetProperty 536 Const IGP_GETIMEVERSION = (-4 As DWord) 537 Const IGP_PROPERTY = &h00000004 538 Const IGP_CONVERSION = &h00000008 539 Const IGP_SENTENCE = &h0000000c 540 Const IGP_UI = &h00000010 541 Const IGP_SETCOMPSTR = &h00000014 542 Const IGP_SELECT = &h00000018 543 544 ' dwIndex for ImmSetCompositionString API 545 Const SCS_SETSTR = (GCS_COMPREADSTR Or GCS_COMPSTR) 546 Const SCS_CHANGEATTR = (GCS_COMPREADATTR Or GCS_COMPATTR) 547 Const SCS_CHANGECLAUSE = (GCS_COMPREADCLAUSE Or GCS_COMPCLAUSE) 548 Const SCS_SETRECONVERTSTRING = &h00010000 549 Const SCS_QUERYRECONVERTSTRING = &h00020000 550 551 ' attribute for COMPOSITIONSTRING Structure 552 Const ATTR_INPUT = &h00 553 Const ATTR_TARGET_CONVERTED = &h01 554 Const ATTR_CONVERTED = &h02 555 Const ATTR_TARGET_NOTCONVERTED = &h03 556 Const ATTR_INPUT_ERROR = &h04 557 Const ATTR_FIXEDCONVERTED = &h05 558 559 ' bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW 560 Const CFS_DEFAULT = &h0000 561 Const CFS_RECT = &h0001 562 Const CFS_POINT = &h0002 563 Const CFS_FORCE_POSITION = &h0020 564 Const CFS_CANDIDATEPOS = &h0040 565 Const CFS_EXCLUDE = &h0080 566 567 ' conversion direction for ImmGetConversionList 568 Const GCL_CONVERSION = &h0001 569 Const GCL_REVERSECONVERSION = &h0002 570 Const GCL_REVERSE_LENGTH = &h0003 571 572 ' bit field for conversion mode 573 Const IME_CMODE_ALPHANUMERIC = &h0000 574 Const IME_CMODE_NATIVE = &h0001 575 Const IME_CMODE_CHINESE = IME_CMODE_NATIVE 576 ' IME_CMODE_HANGEUL is old name of IME_CMODE_HANGUL. It will be gone eventually. 577 Const IME_CMODE_HANGEUL = IME_CMODE_NATIVE 578 Const IME_CMODE_HANGUL = IME_CMODE_NATIVE 579 Const IME_CMODE_JAPANESE = IME_CMODE_NATIVE 580 Const IME_CMODE_KATAKANA = &h0002 'only effect under IME_CMODE_NATIVE 581 Const IME_CMODE_LANGUAGE = &h0003 582 Const IME_CMODE_FULLSHAPE = &h0008 583 Const IME_CMODE_ROMAN = &h0010 584 Const IME_CMODE_CHARCODE = &h0020 585 Const IME_CMODE_HANJACONVERT = &h0040 586 Const IME_CMODE_SOFTKBD = &h0080 587 Const IME_CMODE_NOCONVERSION = &h0100 588 Const IME_CMODE_EUDC = &h0200 589 Const IME_CMODE_SYMBOL = &h0400 590 Const IME_CMODE_FIXED = &h0800 591 Const IME_CMODE_RESERVED = &hF0000000 592 593 ' bit field for sentence mode 594 Const IME_SMODE_NONE = &h0000 595 Const IME_SMODE_PLAURALCLAUSE = &h0001 596 Const IME_SMODE_SINGLECONVERT = &h0002 597 Const IME_SMODE_AUTOMATIC = &h0004 598 Const IME_SMODE_PHRASEPREDICT = &h0008 599 Const IME_SMODE_CONVERSATION = &h0010 600 Const IME_SMODE_RESERVED = &h0000F000 601 602 603 ' style of candidate 604 Const IME_CAND_UNKNOWN = &h0000 605 Const IME_CAND_READ = &h0001 606 Const IME_CAND_CODE = &h0002 607 Const IME_CAND_MEANING = &h0003 608 Const IME_CAND_RADICAL = &h0004 609 Const IME_CAND_STROKE = &h0005 610 611 ' wParam of report message WM_IME_NOTIFY 612 Const IMN_CLOSESTATUSWINDOW = &h0001 613 Const IMN_OPENSTATUSWINDOW = &h0002 614 Const IMN_CHANGECANDIDATE = &h0003 615 Const IMN_CLOSECANDIDATE = &h0004 616 Const IMN_OPENCANDIDATE = &h0005 617 Const IMN_SETCONVERSIONMODE = &h0006 618 Const IMN_SETSENTENCEMODE = &h0007 619 Const IMN_SETOPENSTATUS = &h0008 620 Const IMN_SETCANDIDATEPOS = &h0009 621 Const IMN_SETCOMPOSITIONFONT = &h000A 622 Const IMN_SETCOMPOSITIONWINDOW = &h000B 623 Const IMN_SETSTATUSWINDOWPOS = &h000C 624 Const IMN_GUIDELINE = &h000D 625 Const IMN_PRIVATE = &h000E 626 627 ' wParam of report message WM_IME_REQUEST 628 Const IMR_COMPOSITIONWINDOW = &h0001 629 Const IMR_CANDIDATEWINDOW = &h0002 630 Const IMR_COMPOSITIONFONT = &h0003 631 Const IMR_RECONVERTSTRING = &h0004 632 Const IMR_CONFIRMRECONVERTSTRING = &h0005 633 Const IMR_QUERYCHARPOSITION = &h0006 634 Const IMR_DOCUMENTFEED = &h0007 635 636 ' error code of ImmGetCompositionString 637 Const IMM_ERROR_NODATA = (-1) 638 Const IMM_ERROR_GENERAL = (-2) 639 640 641 ' dialog mode of ImmConfigureIME 642 Const IME_CONFIG_GENERAL = 1 643 Const IME_CONFIG_REGISTERWORD = 2 644 Const IME_CONFIG_SELECTDICTIONARY = 3 645 646 647 ' flags for ImmEscape 648 Const IME_ESC_QUERY_SUPPORT = &h0003 649 Const IME_ESC_RESERVED_FIRST = &h0004 650 Const IME_ESC_RESERVED_LAST = &h07FF 651 Const IME_ESC_PRIVATE_FIRST = &h0800 652 Const IME_ESC_PRIVATE_LAST = &h0FFF 653 654 Const IME_ESC_SEQUENCE_TO_INTERNAL = &h1001 655 Const IME_ESC_GET_EUDC_DICTIONARY = &h1003 656 Const IME_ESC_SET_EUDC_DICTIONARY = &h1004 657 Const IME_ESC_MAX_KEY = &h1005 658 Const IME_ESC_IME_NAME = &h1006 659 Const IME_ESC_SYNC_HOTKEY = &h1007 660 Const IME_ESC_HANJA_MODE = &h1008 661 Const IME_ESC_AUTOMATA = &h1009 662 Const IME_ESC_PRIVATE_HOTKEY = &h100a 663 Const IME_ESC_GETHELPFILENAME = &h100b 664 665 ' style of word registration 666 Const IME_REGWORD_STYLE_EUDC = &h00000001 667 Const IME_REGWORD_STYLE_USER_FIRST = &h80000000 668 Const IME_REGWORD_STYLE_USER_LAST = &hFFFFFFFF 669 670 ' dwFlags for ImmAssociateContextEx 671 Const IACE_CHILDREN = &h0001 672 Const IACE_DEFAULT = &h0010 673 Const IACE_IGNORENOCONTEXT = &h0020 674 675 ' dwFlags for ImmGetImeMenuItems 676 Const IGIMIF_RIGHTMENU = &h0001 677 678 ' dwType for ImmGetImeMenuItems 679 Const IGIMII_CMODE = &h0001 680 Const IGIMII_SMODE = &h0002 681 Const IGIMII_CONFIGURE = &h0004 682 Const IGIMII_TOOLS = &h0008 683 Const IGIMII_HELP = &h0010 684 Const IGIMII_OTHER = &h0020 685 Const IGIMII_INPUTTOOLS = &h0040 686 687 ' fType of IMEMENUITEMINFO structure 688 Const IMFT_RADIOCHECK = &h00001 689 Const IMFT_SEPARATOR = &h00002 690 Const IMFT_SUBMENU = &h00004 691 692 ' fState of IMEMENUITEMINFO structure 693 Const IMFS_GRAYED = MFS_GRAYED 694 Const IMFS_DISABLED = MFS_DISABLED 695 Const IMFS_CHECKED = MFS_CHECKED 696 Const IMFS_HILITE = MFS_HILITE 697 Const IMFS_ENABLED = MFS_ENABLED 698 Const IMFS_UNCHECKED = MFS_UNCHECKED 699 Const IMFS_UNHILITE = MFS_UNHILITE 700 Const IMFS_DEFAULT = MFS_DEFAULT 701 702 ' type of soft keyboard 703 ' for Windows Tranditional Chinese Edition 704 Const SOFTKEYBOARD_TYPE_T1 = &h0001 705 ' for Windows Simplified Chinese Edition 706 Const SOFTKEYBOARD_TYPE_C1 = &h0002 707 708 709 #endif '_IMM_SDK_DEFINED_ 710 711 #endif '_IMM_ 712
Note:
See TracChangeset
for help on using the changeset viewer.