2 * IMM32 stubs - please implement!
4 * Copyright 1998 Patrik Stridvall
14 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(imm);
17 /***********************************************************************
18 * ImmAssociateContext (IMM32.@)
20 HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
22 FIXME("(0x%08x, 0x%08x): stub\n",hWnd,hIMC);
23 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
27 /***********************************************************************
28 * ImmConfigureIMEA (IMM32.@)
30 BOOL WINAPI ImmConfigureIMEA(
31 HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
33 FIXME("(0x%08x, 0x%08x, %ld, %p): stub\n",
34 hKL, hWnd, dwMode, lpData
36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
40 /***********************************************************************
41 * ImmConfigureIMEW (IMM32.@)
43 BOOL WINAPI ImmConfigureIMEW(
44 HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
46 FIXME("(0x%08x, 0x%08x, %ld, %p): stub\n",
47 hKL, hWnd, dwMode, lpData
49 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
53 /***********************************************************************
54 * ImmDisableIME (IMM32.@)
56 BOOL WINAPI ImmDisableIME(
59 FIXME("(idThread %lu): stub\n", idThread);
60 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
64 /***********************************************************************
65 * ImmEscapeA (IMM32.@)
67 LRESULT WINAPI ImmEscapeA(
69 UINT uEscape, LPVOID lpData)
71 FIXME("(0x%08x, 0x%08x, %d, %p): stub\n",
72 hKL, hIMC, uEscape, lpData
74 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
78 /***********************************************************************
79 * ImmEscapeW (IMM32.@)
81 LRESULT WINAPI ImmEscapeW(
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 * ImmGetCandidateListA (IMM32.@)
95 DWORD WINAPI ImmGetCandidateListA(
96 HIMC hIMC, DWORD deIndex,
97 LPCANDIDATELIST lpCandList, DWORD dwBufLen)
99 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
103 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
107 /***********************************************************************
108 * ImmGetCandidateListCountA (IMM32.@)
110 DWORD WINAPI ImmGetCandidateListCountA(
111 HIMC hIMC, LPDWORD lpdwListCount)
113 FIXME("(0x%08x, %p): stub\n", hIMC, lpdwListCount);
114 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 /***********************************************************************
119 * ImmGetCandidateListCountW (IMM32.@)
121 DWORD WINAPI ImmGetCandidateListCountW(
122 HIMC hIMC, LPDWORD lpdwListCount)
124 FIXME("(0x%08x, %p): stub\n", hIMC, lpdwListCount);
125 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
129 /***********************************************************************
130 * ImmGetCandidateListW (IMM32.@)
132 DWORD WINAPI ImmGetCandidateListW(
133 HIMC hIMC, DWORD deIndex,
134 LPCANDIDATELIST lpCandList, DWORD dwBufLen)
136 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
140 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
144 /***********************************************************************
145 * ImmGetCandidateWindow (IMM32.@)
147 BOOL WINAPI ImmGetCandidateWindow(
148 HIMC hIMC, DWORD dwBufLen, LPCANDIDATEFORM lpCandidate)
150 FIXME("(0x%08x, %ld, %p): stub\n", hIMC, dwBufLen, lpCandidate);
151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
155 /***********************************************************************
156 * ImmGetCompositionFontA (IMM32.@)
158 BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
160 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
161 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
165 /***********************************************************************
166 * ImmGetCompositionFontW (IMM32.@)
168 BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
170 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
171 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
175 /***********************************************************************
176 * ImmGetCompositionStringA (IMM32.@)
178 LONG WINAPI ImmGetCompositionStringA(
179 HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen)
181 OSVERSIONINFOA version;
182 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
183 hIMC, dwIndex, lpBuf, dwBufLen
185 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
186 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
187 GetVersionExA( &version );
188 switch(version.dwPlatformId)
190 case VER_PLATFORM_WIN32_WINDOWS: return -1;
191 case VER_PLATFORM_WIN32_NT: return 0;
193 FIXME("%ld not supported\n",version.dwPlatformId);
198 /***********************************************************************
199 * ImmGetCompositionStringW (IMM32.@)
201 LONG WINAPI ImmGetCompositionStringW(
202 HIMC hIMC, DWORD dwIndex,
203 LPVOID lpBuf, DWORD dwBufLen)
205 OSVERSIONINFOA version;
206 FIXME("(0x%08x, %ld, %p, %ld): stub\n",
207 hIMC, dwIndex, lpBuf, dwBufLen
209 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
210 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
211 GetVersionExA( &version );
212 switch(version.dwPlatformId)
214 case VER_PLATFORM_WIN32_WINDOWS: return -1;
215 case VER_PLATFORM_WIN32_NT: return 0;
217 FIXME("%ld not supported\n",version.dwPlatformId);
222 /***********************************************************************
223 * ImmGetCompositionWindow (IMM32.@)
225 BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
227 FIXME("(0x%08x, %p): stub\n", hIMC, lpCompForm);
228 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
232 /***********************************************************************
233 * ImmGetContext (IMM32.@)
235 HIMC WINAPI ImmGetContext(HWND hWnd)
237 FIXME("(0x%08x): stub\n", hWnd);
238 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
242 /***********************************************************************
243 * ImmGetConversionListA (IMM32.@)
245 DWORD WINAPI ImmGetConversionListA(
247 LPCSTR pSrc, LPCANDIDATELIST lpDst,
248 DWORD dwBufLen, UINT uFlag)
250 FIXME("(0x%08x, 0x%08x, %s, %p, %ld, %d): stub\n",
251 hKL, hIMC, debugstr_a(pSrc), lpDst, dwBufLen, uFlag
253 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
257 /***********************************************************************
258 * ImmGetConversionListW (IMM32.@)
260 DWORD WINAPI ImmGetConversionListW(
262 LPCWSTR pSrc, LPCANDIDATELIST lpDst,
263 DWORD dwBufLen, UINT uFlag)
265 FIXME("(0x%08x, 0x%08x, %s, %p, %ld, %d): stub\n",
266 hKL, hIMC, debugstr_w(pSrc), lpDst, dwBufLen, uFlag
268 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
272 /***********************************************************************
273 * ImmGetConversionStatus (IMM32.@)
275 BOOL WINAPI ImmGetConversionStatus(
276 HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
278 FIXME("(0x%08x, %p, %p): stub\n",
279 hIMC, lpfdwConversion, lpfdwSentence
281 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
285 /***********************************************************************
286 * ImmGetDefaultIMEWnd (IMM32.@)
288 HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
290 FIXME("(0x%08x): stub\n", hWnd);
291 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
295 /***********************************************************************
296 * ImmGetDescriptionA (IMM32.@)
298 UINT WINAPI ImmGetDescriptionA(
299 HKL hKL, LPSTR lpszDescription, UINT uBufLen)
301 FIXME("(0x%08x, %s, %d): stub\n",
302 hKL, debugstr_a(lpszDescription), uBufLen
304 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
308 /***********************************************************************
309 * ImmGetDescriptionW (IMM32.@)
311 UINT WINAPI ImmGetDescriptionW(HKL hKL, LPWSTR lpszDescription, UINT uBufLen)
313 FIXME("(0x%08x, %s, %d): stub\n",
314 hKL, debugstr_w(lpszDescription), uBufLen
316 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
320 /***********************************************************************
321 * ImmGetGuideLineA (IMM32.@)
323 DWORD WINAPI ImmGetGuideLineA(
324 HIMC hIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen)
326 FIXME("(0x%08x, %ld, %s, %ld): stub\n",
327 hIMC, dwIndex, debugstr_a(lpBuf), dwBufLen
329 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
333 /***********************************************************************
334 * ImmGetGuideLineW (IMM32.@)
336 DWORD WINAPI ImmGetGuideLineW(HIMC hIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen)
338 FIXME("(0x%08x, %ld, %s, %ld): stub\n",
339 hIMC, dwIndex, debugstr_w(lpBuf), dwBufLen
341 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
345 /***********************************************************************
346 * ImmGetOpenStatus (IMM32.@)
348 BOOL WINAPI ImmGetOpenStatus(HIMC hIMC)
350 FIXME("(0x%08x): stub\n", hIMC);
351 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
355 /***********************************************************************
356 * ImmGetStatusWindowPos (IMM32.@)
358 BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
360 FIXME("(0x%08x, %p): stub\n", hIMC, lpptPos);
361 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
365 /***********************************************************************
366 * ImmGetVirtualKey (IMM32.@)
368 UINT WINAPI ImmGetVirtualKey(HWND hWnd)
370 OSVERSIONINFOA version;
371 FIXME("(0x%08x): stub\n", hWnd);
372 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
373 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
374 GetVersionExA( &version );
375 switch(version.dwPlatformId)
377 case VER_PLATFORM_WIN32_WINDOWS:
378 return VK_PROCESSKEY;
379 case VER_PLATFORM_WIN32_NT:
382 FIXME("%ld not supported\n",version.dwPlatformId);
383 return VK_PROCESSKEY;
387 /***********************************************************************
388 * ImmNotifyIME (IMM32.@)
390 BOOL WINAPI ImmNotifyIME(
391 HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue)
393 FIXME("(0x%08x, %ld, %ld, %ld): stub\n",
394 hIMC, dwAction, dwIndex, dwValue
396 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
400 /***********************************************************************
401 * ImmRegisterWordA (IMM32.@)
403 BOOL WINAPI ImmRegisterWordA(
404 HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister)
406 FIXME("(0x%08x, %s, %ld, %s): stub\n",
407 hKL, debugstr_a(lpszReading), dwStyle, debugstr_a(lpszRegister)
409 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
413 /***********************************************************************
414 * ImmRegisterWordW (IMM32.@)
416 BOOL WINAPI ImmRegisterWordW(
417 HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister)
419 FIXME("(0x%08x, %s, %ld, %s): stub\n",
420 hKL, debugstr_w(lpszReading), dwStyle, debugstr_w(lpszRegister)
422 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
426 /***********************************************************************
427 * ImmReleaseContext (IMM32.@)
429 BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
431 FIXME("(0x%08x, 0x%08x): stub\n", hWnd, hIMC);
432 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
436 /***********************************************************************
437 * ImmSetCandidateWindow (IMM32.@)
439 BOOL WINAPI ImmSetCandidateWindow(
440 HIMC hIMC, LPCANDIDATEFORM lpCandidate)
442 FIXME("(0x%08x, %p): stub\n", hIMC, lpCandidate);
443 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
447 /***********************************************************************
448 * ImmSetCompositionFontA (IMM32.@)
450 BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
452 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
453 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
457 /***********************************************************************
458 * ImmSetCompositionFontW (IMM32.@)
460 BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
462 FIXME("(0x%08x, %p): stub\n", hIMC, lplf);
463 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
467 /***********************************************************************
468 * ImmSetCompositionStringA (IMM32.@)
470 BOOL WINAPI ImmSetCompositionStringA(
471 HIMC hIMC, DWORD dwIndex,
472 LPCVOID lpComp, DWORD dwCompLen,
473 LPCVOID lpRead, DWORD dwReadLen)
475 FIXME("(0x%08x, %ld, %p, %ld, %p, %ld): stub\n",
476 hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen
478 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
482 /***********************************************************************
483 * ImmSetCompositionStringW (IMM32.@)
485 BOOL WINAPI ImmSetCompositionStringW(
486 HIMC hIMC, DWORD dwIndex,
487 LPCVOID lpComp, DWORD dwCompLen,
488 LPCVOID lpRead, DWORD dwReadLen)
490 FIXME("(0x%08x, %ld, %p, %ld, %p, %ld): stub\n",
491 hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen
493 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
497 /***********************************************************************
498 * ImmSetCompositionWindow (IMM32.@)
500 BOOL WINAPI ImmSetCompositionWindow(
501 HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
503 FIXME("(0x%08x, %p): stub\n", hIMC, lpCompForm);
504 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
508 /***********************************************************************
509 * ImmSetConversionStatus (IMM32.@)
511 BOOL WINAPI ImmSetConversionStatus(
512 HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence)
514 FIXME("(0x%08x, %ld, %ld): stub\n",
515 hIMC, fdwConversion, fdwSentence
517 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
521 /***********************************************************************
522 * ImmSetOpenStatus (IMM32.@)
524 BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
526 FIXME("(0x%08x, %d): stub\n", hIMC, fOpen);
527 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
531 /***********************************************************************
532 * ImmSetStatusWindowPos (IMM32.@)
534 BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
536 FIXME("(0x%08x, %p): stub\n", hIMC, lpptPos);
537 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
541 /***********************************************************************
542 * ImmSimulateHotKey (IMM32.@)
544 BOOL WINAPI ImmSimulateHotKey(HWND hWnd, DWORD dwHotKeyID)
546 FIXME("(0x%08x, %ld): stub\n", hWnd, dwHotKeyID);
547 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
551 /***********************************************************************
552 * ImmUnregisterWordA (IMM32.@)
554 BOOL WINAPI ImmUnregisterWordA(
555 HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszUnregister)
557 FIXME("(0x%08x, %s, %ld, %s): stub\n",
558 hKL, debugstr_a(lpszReading), dwStyle, debugstr_a(lpszUnregister)
560 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
564 /***********************************************************************
565 * ImmUnregisterWordW (IMM32.@)
567 BOOL WINAPI ImmUnregisterWordW(
568 HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszUnregister)
570 FIXME("(0x%08x, %s, %ld, %s): stub\n",
571 hKL, debugstr_w(lpszReading), dwStyle, debugstr_w(lpszUnregister)
573 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
577 /***********************************************************************
578 * ImmCreateSoftKeyboard (IMM32.@)
580 HWND WINAPI ImmCreateSoftKeyboard(UINT uType, HWND hOwner, int x, int y)
582 FIXME("(0x%08x, 0x%08x, %d, %d): stub\n", uType, (unsigned)hOwner, x, y);
583 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
587 /***********************************************************************
588 * ImmDestroySoftKeyboard (IMM32.@)
590 BOOL WINAPI ImmDestroySoftKeyboard(HWND hwndSoftKeyboard)
592 FIXME("(0x%08x): stub\n", (unsigned)hwndSoftKeyboard);
593 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
597 /***********************************************************************
598 * ImmShowSoftKeyboard (IMM32.@)
600 BOOL WINAPI ImmShowSoftKeyboard(HWND hwndSoftKeyboard, int nCmdShow)
602 FIXME("(0x%08x, %d): stub\n", (unsigned)hwndSoftKeyboard, nCmdShow);
603 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
607 /***********************************************************************
608 * ImmGetHotKey (IMM32.@)
610 BOOL WINAPI ImmGetHotKey(DWORD dwHotKeyID, LPUINT lpuModifiers,
611 LPUINT lpuVKey, LPHKL lphKL)
613 FIXME("(0x%08lx, %p, %p, %p): stub\n",
614 dwHotKeyID, lpuModifiers, lpuVKey, lphKL);
615 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
619 /***********************************************************************
620 * ImmSetHotKey (IMM32.@)
622 BOOL WINAPI ImmSetHotKey(DWORD dwHotKeyID, UINT uModifiers,
625 FIXME("(0x%08lx, 0x%08x, 0x%08x, 0x%08x): stub\n",
626 dwHotKeyID, uModifiers, uVKey, (unsigned)hKL);
627 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
631 /***********************************************************************
632 * ImmGenerateMessage (IMM32.@)
634 BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
636 FIXME("(0x%08x): stub\n", (unsigned)hIMC);
637 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);