source: trunk/Include/api_imm.sbp@ 503

Last change on this file since 503 was 497, checked in by イグトランス (egtra), 17 years ago

インクルードガードとその他不要な前処理定義などの削除

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