Changeset 10605 for trunk/src/imm32/imm32.cpp
- Timestamp:
- May 24, 2004, 10:51:25 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imm32/imm32.cpp
r1710 r10605 1 /* $Id: imm32.cpp,v 1. 4 1999-11-12 11:38:39sandervl Exp $ */1 /* $Id: imm32.cpp,v 1.5 2004-05-24 08:51:00 sandervl Exp $ */ 2 2 /* 3 * 3 * IMM32 library 4 4 * 5 * Copyright 1998Patrik Stridvall6 * Copyright 1999Jens Wiessner5 * Copyright 1998 Patrik Stridvall 6 * Copyright 1999 Jens Wiessner 7 7 */ 8 8 … … 12 12 #include <winversion.h> 13 13 #include "imm32.h" 14 #include "im32.h" 14 15 15 16 ODINDEBUGCHANNEL(imm) … … 20 21 HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC) 21 22 { 23 #ifdef __WIN32OS2__ 24 return IM32AssociateContext( hWnd, hIMC ); 25 #else 22 26 #ifdef DEBUG 23 27 dprintf(("IMM32: ImmAssociateContext not implemented\n")); … … 25 29 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 26 30 return (HIMC)NULL; 31 #endif 27 32 } 28 33 … … 33 38 BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dword) 34 39 { 40 #ifdef __WIN32OS2__ 41 return IM32AssociateContextEx( hWnd, hIMC, dword ); 42 #else 35 43 #ifdef DEBUG 36 44 dprintf(("IMM32: ImmAssociateContextEx not implemented\n")); … … 38 46 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 39 47 return (HIMC)NULL; 48 #endif 40 49 } 41 50 … … 46 55 BOOL WINAPI ImmConfigureIMEA(HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData) 47 56 { 57 #ifdef __WIN32OS2__ 58 return IM32ConfigureIME( hKL, hWnd, dwMode, lpData, FALSE ); 59 #else 48 60 #ifdef DEBUG 49 61 dprintf(("IMM32: ImmConfigureIMEA not implemented\n")); … … 51 63 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 52 64 return FALSE; 65 #endif 53 66 } 54 67 … … 58 71 BOOL WINAPI ImmConfigureIMEW(HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData) 59 72 { 73 #ifdef __WIN32OS2__ 74 return IM32ConfigureIME( hKL, hWnd, dwMode, lpData, TRUE ); 75 #else 60 76 #ifdef DEBUG 61 77 dprintf(("IMM32: ImmConfigureIMEW not implemented\n")); … … 63 79 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 64 80 return FALSE; 81 #endif 65 82 } 66 83 … … 70 87 HIMC WINAPI ImmCreateContext() 71 88 { 89 #ifdef __WIN32OS2__ 90 return IM32CreateContext(); 91 #else 72 92 #ifdef DEBUG 73 93 dprintf(("IMM32: ImmCreateContext not implemented\n")); … … 75 95 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 76 96 return (HIMC)NULL; 97 #endif 77 98 } 78 99 … … 83 104 HIMCC WINAPI ImmCreateIMCC(DWORD dword) 84 105 { 106 #ifdef __WIN32OS2__ 107 return IM32CreateIMCC( dword ); 108 #else 85 109 #ifdef DEBUG 86 110 dprintf(("IMM32: ImmCreateIMCC not implemented\n")); … … 88 112 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 89 113 return (HIMC)NULL; 114 #endif 90 115 } 91 116 … … 96 121 HWND WINAPI ImmCreateSoftKeyboard(UINT uint, HWND hwnd, int in1, int in2) 97 122 { 123 #ifdef __WIN32OS2__ 124 return IM32CreateSoftKeyboard( uint, hwnd, in1, in2 ); 125 #else 98 126 #ifdef DEBUG 99 127 dprintf(("IMM32: ImmCreateSoftKeyboard not implemented\n")); … … 101 129 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 102 130 return (HIMC)NULL; 131 #endif 103 132 } 104 133 … … 109 138 BOOL WINAPI ImmDestroyContext(HIMC hIMC) 110 139 { 140 #ifdef __WIN32OS2__ 141 return IM32DestroyContext( hIMC ); 142 #else 111 143 #ifdef DEBUG 112 144 dprintf(("IMM32: ImmDestroyContext not implemented\n")); … … 114 146 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 115 147 return FALSE; 148 #endif 116 149 } 117 150 … … 122 155 HIMCC WINAPI ImmDestroyIMCC(HIMCC himcc) 123 156 { 157 #ifdef __WIN32OS2__ 158 return IM32DestroyIMCC( himcc ); 159 #else 124 160 #ifdef DEBUG 125 161 dprintf(("IMM32: ImmDestroyIMCC not implemented\n")); … … 127 163 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 128 164 return FALSE; 165 #endif 129 166 } 130 167 … … 135 172 BOOL WINAPI ImmDestroySoftKeyboard(HWND hwnd) 136 173 { 174 #ifdef __WIN32OS2__ 175 return IM32DestroySoftKeyboard( hwnd ); 176 #else 137 177 #ifdef DEBUG 138 178 dprintf(("IMM32: ImmDestroySoftKeyboard not implemented\n")); … … 140 180 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 141 181 return FALSE; 182 #endif 142 183 } 143 184 … … 148 189 BOOL WINAPI ImmDisableIME(DWORD dword) 149 190 { 191 #ifdef __WIN32OS2__ 192 return IM32DisableIME( dword ); 193 #else 150 194 #ifdef DEBUG 151 195 dprintf(("IMM32: ImmDisableIME not implemented\n")); … … 153 197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 154 198 return FALSE; 199 #endif 155 200 } 156 201 … … 162 207 LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister, LPVOID lpData) 163 208 { 209 #ifdef __WIN32OS2__ 210 return IM32EnumRegisterWord( hKL, ( LPVOID )lpfnEnumProc, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, lpData, FALSE ); 211 #else 164 212 #ifdef DEBUG 165 213 dprintf(("IMM32: ImmEnumRegisterWordA not implemented\n")); … … 167 215 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 168 216 return 0; 217 #endif 169 218 } 170 219 … … 176 225 LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister, LPVOID lpData) 177 226 { 227 #ifdef __WIN32OS2__ 228 return IM32EnumRegisterWord( hKL, ( LPVOID )lpfnEnumProc, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, lpData, TRUE ); 229 #else 178 230 #ifdef DEBUG 179 231 dprintf(("IMM32: ImmEnumRegisterWordW not implemented\n")); … … 181 233 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 182 234 return 0; 235 #endif 183 236 } 184 237 … … 189 242 LRESULT WINAPI ImmEscapeA( HKL hKL, HIMC hIMC, UINT uEscape, LPVOID lpData) 190 243 { 244 #ifdef __WIN32OS2__ 245 return IM32Escape( hKL, hIMC, uEscape, lpData, FALSE ); 246 #else 191 247 #ifdef DEBUG 192 248 dprintf(("IMM32: ImmEscapeA not implemented\n")); … … 194 250 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 195 251 return 0; 252 #endif 196 253 } 197 254 … … 202 259 LRESULT WINAPI ImmEscapeW( HKL hKL, HIMC hIMC, UINT uEscape, LPVOID lpData) 203 260 { 261 #ifdef __WIN32OS2__ 262 return IM32Escape( hKL, hIMC, uEscape, lpData, TRUE ); 263 #else 204 264 #ifdef DEBUG 205 265 dprintf(("IMM32: ImmEscapeW not implemented\n")); … … 207 267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 208 268 return 0; 269 #endif 209 270 } 210 271 … … 215 276 BOOL WINAPI ImmGenerateMessage(HIMC himc) 216 277 { 278 #ifdef __WIN32OS2__ 279 return IM32GenerateMessage( himc ); 280 #else 217 281 #ifdef DEBUG 218 282 dprintf(("IMM32: ImmGenerateMessage not implemented\n")); … … 220 284 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 221 285 return 0; 286 #endif 222 287 } 223 288 … … 226 291 * ImmGetCandidateListA (IMM32.17) 227 292 */ 228 DWORD WINAPI ImmGetCandidateListA( HIMC hIMC, DWORD deIndex, 229 LPCANDIDATELIST lpCandList, DWORD dwBufLen) 230 { 293 DWORD WINAPI ImmGetCandidateListA( HIMC hIMC, DWORD deIndex, 294 LPCANDIDATELIST lpCandList, DWORD dwBufLen) 295 { 296 #ifdef __WIN32OS2__ 297 return IM32GetCandidateList( hIMC, deIndex, lpCandList, dwBufLen, FALSE ); 298 #else 231 299 #ifdef DEBUG 232 300 dprintf(("IMM32: ImmGetCandidateListA not implemented\n")); … … 234 302 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 235 303 return 0; 304 #endif 236 305 } 237 306 … … 241 310 DWORD WINAPI ImmGetCandidateListCountA( HIMC hIMC, LPDWORD lpdwListCount) 242 311 { 312 #ifdef __WIN32OS2__ 313 return IM32GetCandidateListCount( hIMC, lpdwListCount, FALSE ); 314 #else 243 315 #ifdef DEBUG 244 316 dprintf(("IMM32: ImmGetCandidateListCountA not implemented\n")); … … 246 318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 247 319 return 0; 320 #endif 248 321 } 249 322 … … 253 326 DWORD WINAPI ImmGetCandidateListCountW( HIMC hIMC, LPDWORD lpdwListCount) 254 327 { 328 #ifdef __WIN32OS2__ 329 return IM32GetCandidateListCount( hIMC, lpdwListCount, TRUE ); 330 #else 255 331 #ifdef DEBUG 256 332 dprintf(("IMM32: ImmGetCandidateListCountW not implemented\n")); … … 258 334 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 259 335 return 0; 336 #endif 260 337 } 261 338 … … 263 340 * ImmGetCandidateListW (IMM32.20) 264 341 */ 265 DWORD WINAPI ImmGetCandidateListW( HIMC hIMC, DWORD deIndex, 342 DWORD WINAPI ImmGetCandidateListW( HIMC hIMC, DWORD deIndex, 266 343 LPCANDIDATELIST lpCandList, DWORD dwBufLen) 267 344 { 345 #ifdef __WIN32OS2__ 346 return IM32GetCandidateList( hIMC, deIndex, lpCandList, dwBufLen, TRUE ); 347 #else 268 348 #ifdef DEBUG 269 349 dprintf(("IMM32: ImmGetCandidateListW not implemented\n")); … … 271 351 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 272 352 return 0; 353 #endif 273 354 } 274 355 … … 278 359 BOOL WINAPI ImmGetCandidateWindow(HIMC hIMC, DWORD dwBufLen, LPCANDIDATEFORM lpCandidate) 279 360 { 361 #ifdef __WIN32OS2__ 362 return IM32GetCandidateWindow( hIMC, dwBufLen, lpCandidate ); 363 #else 280 364 #ifdef DEBUG 281 365 dprintf(("IMM32: ImmGetCandidateWindow not implemented\n")); … … 283 367 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 284 368 return FALSE; 369 #endif 285 370 } 286 371 … … 290 375 BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf) 291 376 { 377 #ifdef __WIN32OS2__ 378 return IM32GetCompositionFont( hIMC, ( LPVOID )lplf, FALSE ); 379 #else 292 380 #ifdef DEBUG 293 381 dprintf(("IMM32: ImmGetCompositionFontA not implemented\n")); … … 295 383 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 296 384 return FALSE; 385 #endif 297 386 } 298 387 … … 302 391 BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf) 303 392 { 393 #ifdef __WIN32OS2__ 394 return IM32GetCompositionFont( hIMC, ( LPVOID )lplf, TRUE ); 395 #else 304 396 #ifdef DEBUG 305 397 dprintf(("IMM32: ImmGetCompositionFontW not implemented\n")); … … 307 399 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 308 400 return FALSE; 401 #endif 309 402 } 310 403 … … 314 407 LONG WINAPI ImmGetCompositionStringA(HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen) 315 408 { 409 #ifdef __WIN32OS2__ 410 return IM32GetCompositionString( hIMC, dwIndex, lpBuf, dwBufLen, FALSE ); 411 #else 316 412 #ifdef DEBUG 317 413 dprintf(("IMM32: ImmGetCompositionStringA not implemented\n")); … … 327 423 return 0; 328 424 } 425 #endif 329 426 } 330 427 … … 334 431 LONG WINAPI ImmGetCompositionStringW( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen) 335 432 { 433 #ifdef __WIN32OS2__ 434 return IM32GetCompositionString( hIMC, dwIndex, lpBuf, dwBufLen, TRUE ); 435 #else 336 436 #ifdef DEBUG 337 437 dprintf(("IMM32: ImmGetCompositionStringW not implemented\n")); … … 347 447 return 0; 348 448 } 449 #endif 349 450 } 350 451 … … 354 455 BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm) 355 456 { 457 #ifdef __WIN32OS2__ 458 return IM32GetCompositionWindow( hIMC, lpCompForm ); 459 #else 356 460 #ifdef DEBUG 357 461 dprintf(("IMM32: ImmGetCompositionWindow not implemented\n")); … … 359 463 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 360 464 return 0; 465 #endif 361 466 } 362 467 … … 366 471 HIMC WINAPI ImmGetContext(HWND hWnd) 367 472 { 473 #ifdef __WIN32OS2__ 474 return IM32GetContext( hWnd ); 475 #else 368 476 #ifdef DEBUG 369 477 dprintf(("IMM32: ImmGetContext not implemented\n")); … … 371 479 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 372 480 return (HIMC)NULL; 481 #endif 373 482 } 374 483 … … 379 488 LPCSTR pSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag) 380 489 { 490 #ifdef __WIN32OS2__ 491 return IM32GetConversionList( hKL, hIMC, ( LPVOID )pSrc, lpDst, dwBufLen, uFlag, FALSE ); 492 #else 381 493 #ifdef DEBUG 382 494 dprintf(("IMM32: ImmGetConversionListA not implemented\n")); … … 384 496 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 385 497 return 0; 498 #endif 386 499 } 387 500 … … 392 505 LPCWSTR pSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag) 393 506 { 507 #ifdef __WIN32OS2__ 508 return IM32GetConversionList( hKL, hIMC, ( LPVOID )pSrc, lpDst, dwBufLen, uFlag, TRUE ); 509 #else 394 510 #ifdef DEBUG 395 511 dprintf(("IMM32: ImmGetConversionListW not implemented\n")); … … 397 513 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 398 514 return 0; 515 #endif 399 516 } 400 517 … … 404 521 BOOL WINAPI ImmGetConversionStatus(HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence) 405 522 { 523 #ifdef __WIN32OS2__ 524 return IM32GetConversionStatus( hIMC, lpfdwConversion, lpfdwSentence ); 525 #else 406 526 #ifdef DEBUG 407 527 dprintf(("IMM32: ImmGetConversionStatus not implemented\n")); … … 409 529 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 410 530 return FALSE; 531 #endif 411 532 } 412 533 … … 416 537 HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd) 417 538 { 539 #ifdef __WIN32OS2__ 540 return IM32GetDefaultIMEWnd( hWnd ); 541 #else 418 542 #ifdef DEBUG 419 543 dprintf(("IMM32: ImmGetDefaultIMEWnd not implemented\n")); … … 421 545 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 422 546 return (HWND)NULL; 547 #endif 423 548 } 424 549 … … 428 553 UINT WINAPI ImmGetDescriptionA(HKL hKL, LPSTR lpszDescription, UINT uBufLen) 429 554 { 555 #ifdef __WIN32OS2__ 556 return IM32GetDescription( hKL, lpszDescription, uBufLen, FALSE ); 557 #else 430 558 #ifdef DEBUG 431 559 dprintf(("IMM32: ImmGetDescriptionA not implemented\n")); … … 433 561 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 434 562 return 0; 563 #endif 435 564 } 436 565 … … 440 569 UINT WINAPI ImmGetDescriptionW(HKL hKL, LPWSTR lpszDescription, UINT uBufLen) 441 570 { 571 #ifdef __WIN32OS2__ 572 return IM32GetDescription( hKL, lpszDescription, uBufLen, TRUE ); 573 #else 442 574 #ifdef DEBUG 443 575 dprintf(("IMM32: ImmGetDescriptionW not implemented\n")); … … 445 577 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 446 578 return 0; 579 #endif 447 580 } 448 581 … … 453 586 HIMC hIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen) 454 587 { 588 #ifdef __WIN32OS2__ 589 return IM32GetGuideLine( hIMC, dwIndex, lpBuf, dwBufLen, FALSE ); 590 #else 455 591 #ifdef DEBUG 456 592 dprintf(("IMM32: ImmGetGuideLineA not implemented\n")); … … 458 594 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 459 595 return 0; 596 #endif 460 597 } 461 598 … … 465 602 DWORD WINAPI ImmGetGuideLineW(HIMC hIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen) 466 603 { 604 #ifdef __WIN32OS2__ 605 return IM32GetGuideLine( hIMC, dwIndex, lpBuf, dwBufLen, TRUE ); 606 #else 467 607 #ifdef DEBUG 468 608 dprintf(("IMM32: ImmGetGuideLineW not implemented\n")); … … 470 610 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 471 611 return 0; 612 #endif 472 613 } 473 614 … … 478 619 BOOL WINAPI ImmGetHotKey(DWORD dword, LPUINT lpuModifiers, LPUINT lpuVKey, LPHKL lphkl) 479 620 { 621 #ifdef __WIN32OS2__ 622 return IM32GetHotKey( dword, lpuModifiers, lpuVKey, lphkl ); 623 #else 480 624 #ifdef DEBUG 481 625 dprintf(("IMM32: ImmGetHotKey not implemented\n")); … … 483 627 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 484 628 return 0; 629 #endif 485 630 } 486 631 … … 491 636 DWORD WINAPI ImmGetIMCCLockCount(HIMCC himcc) 492 637 { 638 #ifdef __WIN32OS2__ 639 return IM32GetIMCCLockCount( himcc ); 640 #else 493 641 #ifdef DEBUG 494 642 dprintf(("IMM32: ImmGetIMCCLockCount not implemented\n")); … … 496 644 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 497 645 return 0; 646 #endif 498 647 } 499 648 … … 504 653 DWORD WINAPI ImmGetIMCCSize(HIMCC himcc) 505 654 { 655 #ifdef __WIN32OS2__ 656 return IM32GetIMCCSize( himcc ); 657 #else 506 658 #ifdef DEBUG 507 659 dprintf(("IMM32: ImmGetIMCCSize not implemented\n")); … … 509 661 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 510 662 return 0; 663 #endif 511 664 } 512 665 … … 517 670 DWORD WINAPI ImmGetIMCLockCount(HIMC himc) 518 671 { 672 #ifdef __WIN32OS2__ 673 return IM32GetIMCLockCount( himc ); 674 #else 519 675 #ifdef DEBUG 520 676 dprintf(("IMM32: ImmGetIMCLockCount not implemented\n")); … … 522 678 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 523 679 return 0; 680 #endif 524 681 } 525 682 … … 530 687 UINT WINAPI ImmGetIMEFileNameA( HKL hKL, LPSTR lpszFileName, UINT uBufLen) 531 688 { 689 #ifdef __WIN32OS2__ 690 return IM32GetIMEFileName( hKL, lpszFileName, uBufLen, FALSE ); 691 #else 532 692 #ifdef DEBUG 533 693 dprintf(("IMM32: ImmGetIMEFileNameA not implemented\n")); … … 535 695 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 536 696 return 0; 697 #endif 537 698 } 538 699 … … 542 703 UINT WINAPI ImmGetIMEFileNameW( HKL hKL, LPWSTR lpszFileName, UINT uBufLen) 543 704 { 705 #ifdef __WIN32OS2__ 706 return IM32GetIMEFileName( hKL, lpszFileName, uBufLen, TRUE ); 707 #else 544 708 #ifdef DEBUG 545 709 dprintf(("IMM32: ImmGetIMEFileNameW not implemented\n")); … … 547 711 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 548 712 return 0; 713 #endif 549 714 } 550 715 … … 555 720 DWORD WINAPI ImmGetImeMenuItemsA(HIMC himc, DWORD dword, DWORD dword2, LPIMEMENUITEMINFOA lpimena, LPIMEMENUITEMINFOA lpimena2, DWORD dword3) 556 721 { 722 #ifdef __WIN32OS2__ 723 return IM32GetImeMenuItems( himc, dword, dword2, lpimena, lpimena2, dword3, FALSE ); 724 #else 557 725 #ifdef DEBUG 558 726 dprintf(("IMM32: ImmGetImeMenuItemsA not implemented\n")); … … 560 728 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 561 729 return FALSE; 730 #endif 562 731 } 563 732 … … 568 737 DWORD WINAPI ImmGetImeMenuItemsW(HIMC himc, DWORD dword, DWORD dword2, LPIMEMENUITEMINFOW lpimenw, LPIMEMENUITEMINFOW lpimenw2, DWORD dword3) 569 738 { 739 #ifdef __WIN32OS2__ 740 return IM32GetImeMenuItems( himc, dword, dword2, ( LPVOID )lpimenw, ( LPVOID )lpimenw2, dword3, TRUE ); 741 #else 570 742 #ifdef DEBUG 571 743 dprintf(("IMM32: ImmGetImeMenuItemsW not implemented\n")); … … 573 745 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 574 746 return FALSE; 747 #endif 575 748 } 576 749 … … 581 754 BOOL WINAPI ImmGetOpenStatus(HIMC hIMC) 582 755 { 756 #ifdef __WIN32OS2__ 757 return IM32GetOpenStatus( hIMC ); 758 #else 583 759 #ifdef DEBUG 584 760 dprintf(("IMM32: ImmGetOpenStatus not implemented\n")); … … 586 762 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 587 763 return FALSE; 764 #endif 588 765 } 589 766 … … 593 770 DWORD WINAPI ImmGetProperty(HKL hKL, DWORD fdwIndex) 594 771 { 772 #ifdef __WIN32OS2__ 773 return IM32GetProperty( hKL, fdwIndex ); 774 #else 595 775 #ifdef DEBUG 596 776 dprintf(("IMM32: ImmGetProperty not implemented\n")); … … 598 778 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 599 779 return 0; 780 #endif 600 781 } 601 782 … … 605 786 UINT WINAPI ImmGetRegisterWordStyleA(HKL hKL, UINT nItem, LPSTYLEBUFA lpStyleBuf) 606 787 { 788 #ifdef __WIN32OS2__ 789 return IM32GetRegisterWordStyle( hKL, nItem, lpStyleBuf, FALSE ); 790 #else 607 791 #ifdef DEBUG 608 792 dprintf(("IMM32: ImmGetRegisterWordStyleA not implemented\n")); … … 610 794 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 611 795 return 0; 796 #endif 612 797 } 613 798 … … 617 802 UINT WINAPI ImmGetRegisterWordStyleW(HKL hKL, UINT nItem, LPSTYLEBUFW lpStyleBuf) 618 803 { 804 #ifdef __WIN32OS2__ 805 return IM32GetRegisterWordStyle( hKL, nItem, lpStyleBuf, TRUE ); 806 #else 619 807 #ifdef DEBUG 620 808 dprintf(("IMM32: ImmGetRegisterWordStyleW not implemented\n")); … … 622 810 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 623 811 return 0; 812 #endif 624 813 } 625 814 … … 629 818 BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos) 630 819 { 820 #ifdef __WIN32OS2__ 821 return IM32GetStatusWindowPos( hIMC, lpptPos ); 822 #else 631 823 #ifdef DEBUG 632 824 dprintf(("IMM32: ImmGetStatusWindowPos not implemented\n")); … … 634 826 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 635 827 return FALSE; 828 #endif 636 829 } 637 830 … … 641 834 UINT WINAPI ImmGetVirtualKey(HWND hWnd) 642 835 { 836 #ifdef __WIN32OS2__ 837 return IM32GetVirtualKey( hWnd ); 838 #else 643 839 #ifdef DEBUG 644 840 dprintf(("IMM32: ImmGetVirtualKey not implemented\n")); … … 654 850 return 0; 655 851 } 852 #endif 656 853 } 657 854 … … 661 858 HKL WINAPI ImmInstallIMEA(LPCSTR lpszIMEFileName, LPCSTR lpszLayoutText) 662 859 { 860 #ifdef __WIN32OS2__ 861 return IM32InstallIME(( LPVOID )lpszIMEFileName, ( LPVOID )lpszLayoutText, FALSE ); 862 #else 663 863 #ifdef DEBUG 664 864 dprintf(("IMM32: ImmInstallIMEA not implemented\n")); … … 666 866 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 667 867 return (HKL)NULL; 868 #endif 668 869 } 669 870 … … 673 874 HKL WINAPI ImmInstallIMEW(LPCWSTR lpszIMEFileName, LPCWSTR lpszLayoutText) 674 875 { 876 #ifdef __WIN32OS2__ 877 return IM32InstallIME( ( LPVOID )lpszIMEFileName, ( LPVOID )lpszLayoutText, TRUE ); 878 #else 675 879 #ifdef DEBUG 676 880 dprintf(("IMM32: ImmInstallIMEW not implemented\n")); … … 678 882 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 679 883 return (HKL)NULL; 884 #endif 680 885 } 681 886 … … 685 890 BOOL WINAPI ImmIsIME(HKL hKL) 686 891 { 892 #ifdef __WIN32OS2__ 893 return IM32IsIME( hKL ); 894 #else 687 895 #ifdef DEBUG 688 896 dprintf(("IMM32: ImmIsIME not implemented\n")); … … 690 898 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 691 899 return FALSE; 900 #endif 692 901 } 693 902 … … 697 906 BOOL WINAPI ImmIsUIMessageA(HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam) 698 907 { 908 #ifdef __WIN32OS2__ 909 return IM32IsUIMessage( hWndIME, msg, wParam, lParam, FALSE ); 910 #else 699 911 #ifdef DEBUG 700 912 dprintf(("IMM32: ImmIsUIMessageA not implemented\n")); … … 702 914 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 703 915 return FALSE; 916 #endif 704 917 } 705 918 … … 709 922 BOOL WINAPI ImmIsUIMessageW(HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam) 710 923 { 924 #ifdef __WIN32OS2__ 925 return IM32IsUIMessage( hWndIME, msg, wParam, lParam, TRUE ); 926 #else 711 927 #ifdef DEBUG 712 928 dprintf(("IMM32: ImmIsUIMessageW not implemented\n")); … … 714 930 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 715 931 return FALSE; 716 } 717 718 719 /*********************************************************************** 720 * ImmLockIMC (IMM32.55) 932 #endif 933 } 934 935 936 /*********************************************************************** 937 * ImmLockIMC (IMM32.55) 721 938 */ 722 939 LPINPUTCONTEXT WINAPI ImmLockIMC(HIMC himc) 723 940 { 941 #ifdef __WIN32OS2__ 942 return IM32LockIMC( himc ); 943 #else 724 944 #ifdef DEBUG 725 945 dprintf(("IMM32: ImmLockIMC not implemented\n")); … … 727 947 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 728 948 return FALSE; 729 } 730 731 732 /*********************************************************************** 733 * ImmLockIMCC (IMM32.56) 949 #endif 950 } 951 952 953 /*********************************************************************** 954 * ImmLockIMCC (IMM32.56) 734 955 */ 735 956 LPVOID WINAPI ImmLockIMCC(HIMCC himcc) 736 957 { 958 #ifdef __WIN32OS2__ 959 return IM32LockIMCC( himcc ); 960 #else 737 961 #ifdef DEBUG 738 962 dprintf(("IMM32: ImmLockIMCC not implemented\n")); … … 740 964 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 741 965 return FALSE; 966 #endif 742 967 } 743 968 … … 748 973 BOOL WINAPI ImmNotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue) 749 974 { 975 #ifdef __WIN32OS2__ 976 return IM32NotifyIME( hIMC, dwAction, dwIndex, dwValue ); 977 #else 750 978 #ifdef DEBUG 751 979 dprintf(("IMM32: ImmNotifyIME not implemented\n")); … … 753 981 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 754 982 return FALSE; 983 #endif 755 984 } 756 985 … … 761 990 HIMCC WINAPI ImmReSizeIMCC(HIMCC himcc, DWORD dword) 762 991 { 992 #ifdef __WIN32OS2__ 993 return IM32ReSizeIMCC( himcc, dword ); 994 #else 763 995 #ifdef DEBUG 764 996 dprintf(("IMM32: ImmReSizeIMCC not implemented\n")); … … 766 998 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 767 999 return FALSE; 1000 #endif 768 1001 } 769 1002 … … 773 1006 BOOL WINAPI ImmRegisterWordA( HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister) 774 1007 { 1008 #ifdef __WIN32OS2__ 1009 return IM32RegisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, FALSE ); 1010 #else 775 1011 #ifdef DEBUG 776 1012 dprintf(("IMM32: ImmRegisterWordA not implemented\n")); … … 778 1014 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 779 1015 return FALSE; 1016 #endif 780 1017 } 781 1018 … … 785 1022 BOOL WINAPI ImmRegisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister) 786 1023 { 1024 #ifdef __WIN32OS2__ 1025 return IM32RegisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, TRUE ); 1026 #else 787 1027 #ifdef DEBUG 788 1028 dprintf(("IMM32: ImmRegisterWordW not implemented\n")); … … 790 1030 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 791 1031 return FALSE; 1032 #endif 792 1033 } 793 1034 … … 797 1038 BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC) 798 1039 { 1040 #ifdef __WIN32OS2__ 1041 return IM32ReleaseContext( hWnd, hIMC ); 1042 #else 799 1043 #ifdef DEBUG 800 1044 dprintf(("IMM32: ImmReleaseContext not implemented\n")); … … 802 1046 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 803 1047 return FALSE; 1048 #endif 804 1049 } 805 1050 … … 810 1055 LRESULT WINAPI ImmRequestMessageA(HIMC himc, WPARAM wparam, LPARAM lparam) 811 1056 { 1057 #ifdef __WIN32OS2__ 1058 return IM32RequestMessage( himc, wparam, lparam, FALSE ); 1059 #else 812 1060 #ifdef DEBUG 813 1061 dprintf(("IMM32: ImmRequestMessageA not implemented\n")); … … 815 1063 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 816 1064 return FALSE; 1065 #endif 817 1066 } 818 1067 … … 823 1072 LRESULT WINAPI ImmRequestMessageW(HIMC himc, WPARAM wparam, LPARAM lparam) 824 1073 { 1074 #ifdef __WIN32OS2__ 1075 return IM32RequestMessage( himc, wparam, lparam, TRUE ); 1076 #else 825 1077 #ifdef DEBUG 826 1078 dprintf(("IMM32: ImmRequestMessageW not implemented\n")); … … 828 1080 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 829 1081 return FALSE; 1082 #endif 830 1083 } 831 1084 … … 836 1089 BOOL WINAPI ImmSetCandidateWindow(HIMC hIMC, LPCANDIDATEFORM lpCandidate) 837 1090 { 1091 #ifdef __WIN32OS2__ 1092 return IM32SetCandidateWindow( hIMC, lpCandidate ); 1093 #else 838 1094 #ifdef DEBUG 839 1095 dprintf(("IMM32: ImmSetCandidateWindow not implemented\n")); … … 841 1097 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 842 1098 return FALSE; 1099 #endif 843 1100 } 844 1101 … … 848 1105 BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf) 849 1106 { 1107 #ifdef __WIN32OS2__ 1108 return IM32SetCompositionFont( hIMC, lplf, FALSE ); 1109 #else 850 1110 #ifdef DEBUG 851 1111 dprintf(("IMM32: ImmSetCompositionFontA not implemented\n")); … … 853 1113 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 854 1114 return FALSE; 1115 #endif 855 1116 } 856 1117 … … 860 1121 BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf) 861 1122 { 1123 #ifdef __WIN32OS2__ 1124 return IM32SetCompositionFont( hIMC, lplf, TRUE ); 1125 #else 862 1126 #ifdef DEBUG 863 1127 dprintf(("IMM32: ImmSetCompositionFontW not implemented\n")); … … 865 1129 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 866 1130 return FALSE; 1131 #endif 867 1132 } 868 1133 … … 870 1135 * ImmSetCompositionStringA (IMM32.67) 871 1136 */ 872 BOOL WINAPI ImmSetCompositionStringA( HIMC hIMC, DWORD dwIndex, 1137 BOOL WINAPI ImmSetCompositionStringA( HIMC hIMC, DWORD dwIndex, 873 1138 LPCVOID lpComp, DWORD dwCompLen, LPCVOID lpRead, DWORD dwReadLen) 874 1139 { 1140 #ifdef __WIN32OS2__ 1141 return IM32SetCompositionString( hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen, FALSE ); 1142 #else 875 1143 #ifdef DEBUG 876 1144 dprintf(("IMM32: ImmSetCompositionStringA not implemented\n")); … … 878 1146 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 879 1147 return FALSE; 1148 #endif 880 1149 } 881 1150 … … 884 1153 */ 885 1154 BOOL WINAPI ImmSetCompositionStringW(HIMC hIMC, DWORD dwIndex, 886 LPCVOID lpComp, DWORD dwCompLen,LPCVOID lpRead, DWORD dwReadLen) 887 { 1155 LPCVOID lpComp, DWORD dwCompLen,LPCVOID lpRead, DWORD dwReadLen) 1156 { 1157 #ifdef __WIN32OS2__ 1158 return IM32SetCompositionString( hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen, TRUE ); 1159 #else 888 1160 #ifdef DEBUG 889 1161 dprintf(("IMM32: ImmSetCompositionStringW not implemented\n")); … … 891 1163 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 892 1164 return FALSE; 1165 #endif 893 1166 } 894 1167 … … 898 1171 BOOL WINAPI ImmSetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm) 899 1172 { 1173 #ifdef __WIN32OS2__ 1174 return IM32SetCompositionWindow( hIMC, lpCompForm ); 1175 #else 900 1176 #ifdef DEBUG 901 1177 dprintf(("IMM32: ImmSetCompositionWindow not implemented\n")); … … 903 1179 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 904 1180 return FALSE; 1181 #endif 905 1182 } 906 1183 … … 910 1187 BOOL WINAPI ImmSetConversionStatus(HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence) 911 1188 { 1189 #ifdef __WIN32OS2__ 1190 return IM32SetConversionStatus( hIMC, fdwConversion, fdwSentence ); 1191 #else 912 1192 #ifdef DEBUG 913 1193 dprintf(("IMM32: ImmSetConversionStatus not implemented\n")); … … 915 1195 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 916 1196 return FALSE; 1197 #endif 917 1198 } 918 1199 … … 923 1204 BOOL WINAPI ImmSetHotKey(DWORD dword, UINT uint, UINT uint2, HKL hkl) 924 1205 { 1206 #ifdef __WIN32OS2__ 1207 return IM32SetHotKey( dword, uint, uint2, hkl ); 1208 #else 925 1209 #ifdef DEBUG 926 1210 dprintf(("IMM32: ImmSetHotKey not implemented\n")); … … 928 1212 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 929 1213 return FALSE; 1214 #endif 930 1215 } 931 1216 … … 936 1221 BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen) 937 1222 { 1223 #ifdef __WIN32OS2__ 1224 return IM32SetOpenStatus( hIMC, fOpen ); 1225 #else 938 1226 #ifdef DEBUG 939 1227 dprintf(("IMM32: ImmSetOpenStatus not implemented\n")); … … 941 1229 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 942 1230 return FALSE; 1231 #endif 943 1232 } 944 1233 … … 948 1237 BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos) 949 1238 { 1239 #ifdef __WIN32OS2__ 1240 return IM32SetStatusWindowPos( hIMC, lpptPos ); 1241 #else 950 1242 #ifdef DEBUG 951 1243 dprintf(("IMM32: ImmSetStatusWindowPos not implemented\n")); … … 953 1245 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 954 1246 return FALSE; 1247 #endif 955 1248 } 956 1249 … … 961 1254 BOOL WINAPI ImmShowSoftKeyboard(HWND hwnd, int in1) 962 1255 { 1256 #ifdef __WIN32OS2__ 1257 return IM32ShowSoftKeyboard( hwnd, in1 ); 1258 #else 963 1259 #ifdef DEBUG 964 1260 dprintf(("IMM32: ImmShowSoftKeyboard not implemented\n")); … … 966 1262 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 967 1263 return FALSE; 1264 #endif 968 1265 } 969 1266 … … 974 1271 BOOL WINAPI ImmSimulateHotKey(HWND hWnd, DWORD dwHotKeyID) 975 1272 { 1273 #ifdef __WIN32OS2__ 1274 return IM32SimulateHotKey( hWnd, dwHotKeyID ); 1275 #else 976 1276 #ifdef DEBUG 977 1277 dprintf(("IMM32: ImmSimulateHotKey not implemented\n")); … … 979 1279 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 980 1280 return FALSE; 1281 #endif 981 1282 } 982 1283 … … 987 1288 BOOL WINAPI ImmUnlockIMC(HIMC himc) 988 1289 { 1290 #ifdef __WIN32OS2__ 1291 return IM32UnlockIMC( himc ); 1292 #else 989 1293 #ifdef DEBUG 990 1294 dprintf(("IMM32: ImmUnlockIMC not implemented\n")); … … 992 1296 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 993 1297 return FALSE; 1298 #endif 994 1299 } 995 1300 … … 1000 1305 BOOL WINAPI ImmUnlockIMCC(HIMCC himcc) 1001 1306 { 1307 #ifdef __WIN32OS2__ 1308 return IM32UnlockIMCC( himcc ); 1309 #else 1002 1310 #ifdef DEBUG 1003 1311 dprintf(("IMM32: ImmUnlockIMCC not implemented\n")); … … 1005 1313 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1006 1314 return FALSE; 1315 #endif 1007 1316 } 1008 1317 … … 1013 1322 BOOL WINAPI ImmUnregisterWordA(HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszUnregister) 1014 1323 { 1324 #ifdef __WIN32OS2__ 1325 return IM32UnregisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszUnregister, FALSE ); 1326 #else 1015 1327 #ifdef DEBUG 1016 1328 dprintf(("IMM32: ImmUnregisterWordA not implemented\n")); … … 1018 1330 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1019 1331 return FALSE; 1332 #endif 1020 1333 } 1021 1334 … … 1025 1338 BOOL WINAPI ImmUnregisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszUnregister) 1026 1339 { 1340 #ifdef __WIN32OS2__ 1341 return IM32UnregisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszUnregister, TRUE ); 1342 #else 1027 1343 #ifdef DEBUG 1028 1344 dprintf(("IMM32: ImmUnregisterWordW not implemented\n")); … … 1030 1346 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1031 1347 return FALSE; 1032 } 1348 #endif 1349 }
Note:
See TracChangeset
for help on using the changeset viewer.