2 * IMM32 stubs - please implement!
4 * Copyright 1998 Patrik Stridvall
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(imm);
31 /***********************************************************************
32 * ImmAssociateContext (IMM32.@)
34 HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
36 FIXME("(0x%08x, 0x%08x): stub\n",hWnd,hIMC);
37 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
41 /***********************************************************************
42 * ImmConfigureIMEA (IMM32.@)
44 BOOL WINAPI ImmConfigureIMEA(
45 HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
47 FIXME("(0x%08x, 0x%08x, %ld, %p): stub\n",
48 hKL, hWnd, dwMode, lpData
50 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
54 /***********************************************************************
55 * ImmConfigureIMEW (IMM32.@)
57 BOOL WINAPI ImmConfigureIMEW(
58 HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
60 FIXME("(0x%08x, 0x%08x, %ld, %p): stub\n",
61 hKL, hWnd, dwMode, lpData
63 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67 /***********************************************************************
68 * ImmDisableIME (IMM32.@)
70 BOOL WINAPI ImmDisableIME(
73 FIXME("(idThread %lu): stub\n", idThread);
74 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
78 /***********************************************************************
79 * ImmEscapeA (IMM32.@)
81 LRESULT WINAPI ImmEscapeA(
83 UINT uEscape, LPVOID lpData)
85 FIXME("(0x%08x, 0x%08x, %d, %p): stub\n",
86 hKL, hIMC, uEscape, lpData
88 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
92 /***********************************************************************
93 * ImmEscapeW (IMM32.@)
95 LRESULT WINAPI ImmEscapeW(
97 UINT uEscape, LPVOID lpData)
99 FIXME("(0x%08x, 0x%08x, %d, %p): stub\n",
100 hKL, hIMC, uEscape, lpData
102 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
106 /***********************************************************************
107 * ImmGetCandidateListA (IMM32.@)
109 DWORD WINAPI ImmGetCandidateListA(
110 HIMC hIMC, DWORD deIndex,
111 LPCANDIDATELIST lpCandList, DWORD dwBufLen)
113 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
121 /***********************************************************************
122 * ImmGetCandidateListCountA (IMM32.@)
124 DWORD WINAPI ImmGetCandidateListCountA(
125 HIMC hIMC, LPDWORD lpdwListCount)
127 FIXME("(0x%08x, %p): stub\n", hIMC, lpdwListCount);
128 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
132 /***********************************************************************
133 * ImmGetCandidateListCountW (IMM32.@)
135 DWORD WINAPI ImmGetCandidateListCountW(
136 HIMC hIMC, LPDWORD lpdwListCount)
138 FIXME("(0x%08x, %p): stub\n", hIMC, lpdwListCount);
139 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
143 /***********************************************************************
144 * ImmGetCandidateListW (IMM32.@)
146 DWORD WINAPI ImmGetCandidateListW(
147 HIMC hIMC, DWORD deIndex,
148 LPCANDIDATELIST lpCandList, DWORD dwBufLen)
150 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
154 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
158 /***********************************************************************
159 * ImmGetCandidateWindow (IMM32.@)
161 BOOL WINAPI ImmGetCandidateWindow(
162 HIMC hIMC, DWORD dwBufLen, LPCANDIDATEFORM lpCandidate)
164 FIXME("(0x%08x, %ld, %p): stub\n", hIMC, dwBufLen, lpCandidate);
165 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
169 /***********************************************************************
170 * ImmGetCompositionFontA (IMM32.@)
172 BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
174 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
175 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
179 /***********************************************************************
180 * ImmGetCompositionFontW (IMM32.@)
182 BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
184 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
185 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
189 /***********************************************************************
190 * ImmGetCompositionStringA (IMM32.@)
192 LONG WINAPI ImmGetCompositionStringA(
193 HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen)
195 OSVERSIONINFOA version;
196 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
197 hIMC, dwIndex, lpBuf, dwBufLen
199 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
200 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
201 GetVersionExA( &version );
202 switch(version.dwPlatformId)
204 case VER_PLATFORM_WIN32_WINDOWS: return -1;
205 case VER_PLATFORM_WIN32_NT: return 0;
207 FIXME("%ld not supported\n",version.dwPlatformId);
212 /***********************************************************************
213 * ImmGetCompositionStringW (IMM32.@)
215 LONG WINAPI ImmGetCompositionStringW(
216 HIMC hIMC, DWORD dwIndex,
217 LPVOID lpBuf, DWORD dwBufLen)
219 OSVERSIONINFOA version;
220 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
221 hIMC, dwIndex, lpBuf, dwBufLen
223 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
224 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
225 GetVersionExA( &version );
226 switch(version.dwPlatformId)
228 case VER_PLATFORM_WIN32_WINDOWS: return -1;
229 case VER_PLATFORM_WIN32_NT: return 0;
231 FIXME("%ld not supported\n",version.dwPlatformId);
236 /***********************************************************************
237 * ImmGetCompositionWindow (IMM32.@)
239 BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
241 FIXME("(0x%08x, %p): stub\n", hIMC, lpCompForm);
242 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
246 /***********************************************************************
247 * ImmGetContext (IMM32.@)
249 HIMC WINAPI ImmGetContext(HWND hWnd)
251 FIXME("(0x%08x): stub\n", hWnd);
252 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
256 /***********************************************************************
257 * ImmGetConversionListA (IMM32.@)
259 DWORD WINAPI ImmGetConversionListA(
261 LPCSTR pSrc, LPCANDIDATELIST lpDst,
262 DWORD dwBufLen, UINT uFlag)
264 FIXME("(0x%08x, 0x%08x, %s, %p, %ld, %d): stub\n",
265 hKL, hIMC, debugstr_a(pSrc), lpDst, dwBufLen, uFlag
267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
271 /***********************************************************************
272 * ImmGetConversionListW (IMM32.@)
274 DWORD WINAPI ImmGetConversionListW(
276 LPCWSTR pSrc, LPCANDIDATELIST lpDst,
277 DWORD dwBufLen, UINT uFlag)
279 FIXME("(0x%08x, 0x%08x, %s, %p, %ld, %d): stub\n",
280 hKL, hIMC, debugstr_w(pSrc), lpDst, dwBufLen, uFlag
282 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
286 /***********************************************************************
287 * ImmGetConversionStatus (IMM32.@)
289 BOOL WINAPI ImmGetConversionStatus(
290 HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
292 FIXME("(0x%08x, %p, %p): stub\n",
293 hIMC, lpfdwConversion, lpfdwSentence
295 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
299 /***********************************************************************
300 * ImmGetDefaultIMEWnd (IMM32.@)
302 HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
304 FIXME("(0x%08x): stub\n", hWnd);
305 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
309 /***********************************************************************
310 * ImmGetDescriptionA (IMM32.@)
312 UINT WINAPI ImmGetDescriptionA(
313 HKL hKL, LPSTR lpszDescription, UINT uBufLen)
315 FIXME("(0x%08x, %s, %d): stub\n",
316 hKL, debugstr_a(lpszDescription), uBufLen
318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
322 /***********************************************************************
323 * ImmGetDescriptionW (IMM32.@)
325 UINT WINAPI ImmGetDescriptionW(HKL hKL, LPWSTR lpszDescription, UINT uBufLen)
327 FIXME("(0x%08x, %s, %d): stub\n",
328 hKL, debugstr_w(lpszDescription), uBufLen
330 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
334 /***********************************************************************
335 * ImmGetGuideLineA (IMM32.@)
337 DWORD WINAPI ImmGetGuideLineA(
338 HIMC hIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen)
340 FIXME("(0x%08x, %ld, %s, %ld): stub\n",
341 hIMC, dwIndex, debugstr_a(lpBuf), dwBufLen
343 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
347 /***********************************************************************
348 * ImmGetGuideLineW (IMM32.@)
350 DWORD WINAPI ImmGetGuideLineW(HIMC hIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen)
352 FIXME("(0x%08x, %ld, %s, %ld): stub\n",
353 hIMC, dwIndex, debugstr_w(lpBuf), dwBufLen
355 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
359 /***********************************************************************
360 * ImmGetOpenStatus (IMM32.@)
362 BOOL WINAPI ImmGetOpenStatus(HIMC hIMC)
364 FIXME("(0x%08x): stub\n", hIMC);
365 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
369 /***********************************************************************
370 * ImmGetStatusWindowPos (IMM32.@)
372 BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
374 FIXME("(0x%08x, %p): stub\n", hIMC, lpptPos);
375 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
379 /***********************************************************************
380 * ImmGetVirtualKey (IMM32.@)
382 UINT WINAPI ImmGetVirtualKey(HWND hWnd)
384 OSVERSIONINFOA version;
385 FIXME("(0x%08x): stub\n", hWnd);
386 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
387 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
388 GetVersionExA( &version );
389 switch(version.dwPlatformId)
391 case VER_PLATFORM_WIN32_WINDOWS:
392 return VK_PROCESSKEY;
393 case VER_PLATFORM_WIN32_NT:
396 FIXME("%ld not supported\n",version.dwPlatformId);
397 return VK_PROCESSKEY;
401 /***********************************************************************
402 * ImmNotifyIME (IMM32.@)
404 BOOL WINAPI ImmNotifyIME(
405 HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue)
407 FIXME("(0x%08x, %ld, %ld, %ld): stub\n",
408 hIMC, dwAction, dwIndex, dwValue
410 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
414 /***********************************************************************
415 * ImmRegisterWordA (IMM32.@)
417 BOOL WINAPI ImmRegisterWordA(
418 HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister)
420 FIXME("(0x%08x, %s, %ld, %s): stub\n",
421 hKL, debugstr_a(lpszReading), dwStyle, debugstr_a(lpszRegister)
423 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
427 /***********************************************************************
428 * ImmRegisterWordW (IMM32.@)
430 BOOL WINAPI ImmRegisterWordW(
431 HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister)
433 FIXME("(0x%08x, %s, %ld, %s): stub\n",
434 hKL, debugstr_w(lpszReading), dwStyle, debugstr_w(lpszRegister)
436 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
440 /***********************************************************************
441 * ImmReleaseContext (IMM32.@)
443 BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
445 FIXME("(0x%08x, 0x%08x): stub\n", hWnd, hIMC);
446 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
450 /***********************************************************************
451 * ImmSetCandidateWindow (IMM32.@)
453 BOOL WINAPI ImmSetCandidateWindow(
454 HIMC hIMC, LPCANDIDATEFORM lpCandidate)
456 FIXME("(0x%08x, %p): stub\n", hIMC, lpCandidate);
457 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
461 /***********************************************************************
462 * ImmSetCompositionFontA (IMM32.@)
464 BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
466 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
467 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
471 /***********************************************************************
472 * ImmSetCompositionFontW (IMM32.@)
474 BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
476 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
477 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
481 /***********************************************************************
482 * ImmSetCompositionStringA (IMM32.@)
484 BOOL WINAPI ImmSetCompositionStringA(
485 HIMC hIMC, DWORD dwIndex,
486 LPCVOID lpComp, DWORD dwCompLen,
487 LPCVOID lpRead, DWORD dwReadLen)
489 FIXME("(0x%08x, %ld, %p, %ld, %p, %ld): stub\n",
490 hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen
492 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
496 /***********************************************************************
497 * ImmSetCompositionStringW (IMM32.@)
499 BOOL WINAPI ImmSetCompositionStringW(
500 HIMC hIMC, DWORD dwIndex,
501 LPCVOID lpComp, DWORD dwCompLen,
502 LPCVOID lpRead, DWORD dwReadLen)
504 FIXME("(0x%08x, %ld, %p, %ld, %p, %ld): stub\n",
505 hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen
507 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
511 /***********************************************************************
512 * ImmSetCompositionWindow (IMM32.@)
514 BOOL WINAPI ImmSetCompositionWindow(
515 HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
517 FIXME("(0x%08x, %p): stub\n", hIMC, lpCompForm);
518 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
522 /***********************************************************************
523 * ImmSetConversionStatus (IMM32.@)
525 BOOL WINAPI ImmSetConversionStatus(
526 HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence)
528 FIXME("(0x%08x, %ld, %ld): stub\n",
529 hIMC, fdwConversion, fdwSentence
531 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
535 /***********************************************************************
536 * ImmSetOpenStatus (IMM32.@)
538 BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
540 FIXME("(0x%08x, %d): stub\n", hIMC, fOpen);
541 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
545 /***********************************************************************
546 * ImmSetStatusWindowPos (IMM32.@)
548 BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
550 FIXME("(0x%08x, %p): stub\n", hIMC, lpptPos);
551 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
555 /***********************************************************************
556 * ImmSimulateHotKey (IMM32.@)
558 BOOL WINAPI ImmSimulateHotKey(HWND hWnd, DWORD dwHotKeyID)
560 FIXME("(0x%08x, %ld): stub\n", hWnd, dwHotKeyID);
561 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
565 /***********************************************************************
566 * ImmUnregisterWordA (IMM32.@)
568 BOOL WINAPI ImmUnregisterWordA(
569 HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszUnregister)
571 FIXME("(0x%08x, %s, %ld, %s): stub\n",
572 hKL, debugstr_a(lpszReading), dwStyle, debugstr_a(lpszUnregister)
574 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
578 /***********************************************************************
579 * ImmUnregisterWordW (IMM32.@)
581 BOOL WINAPI ImmUnregisterWordW(
582 HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszUnregister)
584 FIXME("(0x%08x, %s, %ld, %s): stub\n",
585 hKL, debugstr_w(lpszReading), dwStyle, debugstr_w(lpszUnregister)
587 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
591 /***********************************************************************
592 * ImmCreateSoftKeyboard (IMM32.@)
594 HWND WINAPI ImmCreateSoftKeyboard(UINT uType, HWND hOwner, int x, int y)
596 FIXME("(0x%08x, 0x%08x, %d, %d): stub\n", uType, (unsigned)hOwner, x, y);
597 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
601 /***********************************************************************
602 * ImmDestroySoftKeyboard (IMM32.@)
604 BOOL WINAPI ImmDestroySoftKeyboard(HWND hwndSoftKeyboard)
606 FIXME("(0x%08x): stub\n", (unsigned)hwndSoftKeyboard);
607 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
611 /***********************************************************************
612 * ImmShowSoftKeyboard (IMM32.@)
614 BOOL WINAPI ImmShowSoftKeyboard(HWND hwndSoftKeyboard, int nCmdShow)
616 FIXME("(0x%08x, %d): stub\n", (unsigned)hwndSoftKeyboard, nCmdShow);
617 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
621 /***********************************************************************
622 * ImmGetHotKey (IMM32.@)
624 BOOL WINAPI ImmGetHotKey(DWORD dwHotKeyID, LPUINT lpuModifiers,
625 LPUINT lpuVKey, LPHKL lphKL)
627 FIXME("(0x%08lx, %p, %p, %p): stub\n",
628 dwHotKeyID, lpuModifiers, lpuVKey, lphKL);
629 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
633 /***********************************************************************
634 * ImmSetHotKey (IMM32.@)
636 BOOL WINAPI ImmSetHotKey(DWORD dwHotKeyID, UINT uModifiers,
639 FIXME("(0x%08lx, 0x%08x, 0x%08x, 0x%08x): stub\n",
640 dwHotKeyID, uModifiers, uVKey, (unsigned)hKL);
641 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
645 /***********************************************************************
646 * ImmGenerateMessage (IMM32.@)
648 BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
650 FIXME("(0x%08x): stub\n", (unsigned)hIMC);
651 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);