source: Include/api_imm.sbp@ 174

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

api_imm.sbpが完成、誤って追加したwinapiフォルダの削除

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