2 // "$Id: aimm.h 7913 2010-11-29 18:18:27Z greg.ercolano $"
4 // Standard dialog header file for the UTF-8 Fast Light Tool Kit (FLTK-UTF8).
6 // Copyright 2009-2010 by Bill Spitzak and others.
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version
12 // with exceptions that allow sub-classing and static linking in
13 // non-LGPL compliant software. These exceptions are subject to
14 // conditions, see the FLTK License for more details.
16 // This library is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the FLTK
19 // License for more details.
21 // You should have received a copy of the FLTK License along with
22 // this library; if not, write to OksiD Software, Jean-Marc Lienher,
23 // Rue de la Cheminee 1, CH-2065 Savagnier, Switzerland.
25 // Please report all bugs and problems to "oksid@bluewin.ch".
30 //# define HANDLE_PTR HANDLE*
31 //# define DWORD_PTR DWORD*
32 //# define CLSCTX_INPROC_SERVER 0x1
33 const GUID IID_IActiveIMMApp
= { 0x8c0e040, 0x62d1, 0x11d1, {0x93, 0x26, 0x00, 0x60, 0xb0, 0x67, 0xb8, 0x6e}};
34 const GUID CLSID_CActiveIMM
= { 0x4955dd33, 0xb159, 0x11d0, {0x8f, 0xcf, 0x00, 0xaa, 0x00, 0x6b, 0xcc, 0x59}};
40 virtual long __stdcall QueryInterface(
42 void **ppvObject) = 0;
44 virtual ULONG __stdcall AddRef( void) = 0;
46 virtual ULONG __stdcall Release( void) = 0;
49 extern "C" __declspec(dllimport) long __stdcall CoInitialize(void far *pvReserved);
50 extern "C" __declspec(dllimport) long __stdcall CoCreateInstance(const GUID & rclsid, IUnknown * pUnkOuter,
51 DWORD dwClsContext, const GUID & riid, LPVOID FAR* ppv);
55 class IActiveIMMApp
: public IUnknown
58 virtual long __stdcall
AssociateContext(
63 virtual long __stdcall
ConfigureIMEA(
69 virtual long __stdcall
ConfigureIMEW(
75 virtual long __stdcall
CreateContext(
78 virtual long __stdcall
DestroyContext(
81 virtual long __stdcall
EnumRegisterWordA(
89 virtual long __stdcall
EnumRegisterWordW(
97 virtual long __stdcall
EscapeA(
101 /* [out][in] */ LPVOID pData
,
102 LRESULT
*plResult
) = 0;
104 virtual long __stdcall
EscapeW(
108 /* [out][in] */ LPVOID pData
,
109 LRESULT
*plResult
) = 0;
111 virtual long __stdcall
GetCandidateListA(
118 virtual long __stdcall
GetCandidateListW(
125 virtual long __stdcall
GetCandidateListCountA(
128 DWORD
*pdwBufLen
) = 0;
130 virtual long __stdcall
GetCandidateListCountW(
133 DWORD
*pdwBufLen
) = 0;
135 virtual long __stdcall
GetCandidateWindow(
138 void *pCandidate
) = 0;
140 virtual long __stdcall
GetCompositionFontA(
144 virtual long __stdcall
GetCompositionFontW(
148 virtual long __stdcall
GetCompositionStringA(
155 virtual long __stdcall
GetCompositionStringW(
162 virtual long __stdcall
GetCompositionWindow(
164 void *pCompForm
) = 0;
166 virtual long __stdcall
GetContext(
170 virtual long __stdcall
GetConversionListA(
179 virtual long __stdcall
GetConversionListW(
188 virtual long __stdcall
GetConversionStatus(
190 DWORD
*pfdwConversion
,
191 DWORD
*pfdwSentence
) = 0;
193 virtual long __stdcall
GetDefaultIMEWnd(
197 virtual long __stdcall
GetDescriptionA(
203 virtual long __stdcall
GetDescriptionW(
206 LPWSTR szDescription
,
209 virtual long __stdcall
GetGuideLineA(
214 DWORD
*pdwResult
) = 0;
216 virtual long __stdcall
GetGuideLineW(
221 DWORD
*pdwResult
) = 0;
223 virtual long __stdcall
GetIMEFileNameA(
229 virtual long __stdcall
GetIMEFileNameW(
235 virtual long __stdcall
GetOpenStatus(
238 virtual long __stdcall
GetProperty(
241 DWORD
*pdwProperty
) = 0;
243 virtual long __stdcall
GetRegisterWordStyleA(
246 STYLEBUFA
*pStyleBuf
,
249 virtual long __stdcall
GetRegisterWordStyleW(
252 STYLEBUFW
*pStyleBuf
,
255 virtual long __stdcall
GetStatusWindowPos(
259 virtual long __stdcall
GetVirtualKey(
261 UINT
*puVirtualKey
) = 0;
263 virtual long __stdcall
InstallIMEA(
268 virtual long __stdcall
InstallIMEW(
269 LPWSTR szIMEFileName
,
273 virtual long __stdcall
IsIME(
276 virtual long __stdcall
IsUIMessageA(
282 virtual long __stdcall
IsUIMessageW(
288 virtual long __stdcall
NotifyIME(
294 virtual long __stdcall
RegisterWordA(
298 LPSTR szRegister
) = 0;
300 virtual long __stdcall
RegisterWordW(
304 LPWSTR szRegister
) = 0;
306 virtual long __stdcall
ReleaseContext(
310 virtual long __stdcall
SetCandidateWindow(
312 void *pCandidate
) = 0;
314 virtual long __stdcall
SetCompositionFontA(
318 virtual long __stdcall
SetCompositionFontW(
322 virtual long __stdcall
SetCompositionStringA(
328 DWORD dwReadLen
) = 0;
330 virtual long __stdcall
SetCompositionStringW(
336 DWORD dwReadLen
) = 0;
338 virtual long __stdcall
SetCompositionWindow(
340 void *pCompForm
) = 0;
342 virtual long __stdcall
SetConversionStatus(
345 DWORD fdwSentence
) = 0;
347 virtual long __stdcall
SetOpenStatus(
351 virtual long __stdcall
SetStatusWindowPos(
355 virtual long __stdcall
SimulateHotKey(
357 DWORD dwHotKeyID
) = 0;
359 virtual long __stdcall
UnregisterWordA(
363 LPSTR szUnregister
) = 0;
365 virtual long __stdcall
UnregisterWordW(
369 LPWSTR szUnregister
) = 0;
371 virtual long __stdcall
Activate(
372 BOOL fRestoreLayout
) = 0;
374 virtual long __stdcall
Deactivate( void) = 0;
376 virtual long __stdcall
OnDefWindowProc(
381 LRESULT
*plResult
) = 0;
383 virtual long __stdcall
FilterClientWindows(
387 virtual long __stdcall
GetCodePageA(
389 UINT
*uCodePage
) = 0;
391 virtual long __stdcall
GetLangId(
395 virtual long __stdcall
AssociateContextEx(
400 virtual long __stdcall
DisableIME(
403 virtual long __stdcall
GetImeMenuItemsA(
407 void *pImeParentMenu
,
410 DWORD
*pdwResult
) = 0;
412 virtual long __stdcall
GetImeMenuItemsW(
416 void *pImeParentMenu
,
419 DWORD
*pdwResult
) = 0;
421 virtual long __stdcall
EnumInputContext(
430 // End of "$Id: aimm.h 7913 2010-11-29 18:18:27Z greg.ercolano $".