source: Include/api_imm.sbp@ 192

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

Currencyを追加、その他修正

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