Ignore:
Timestamp:
May 24, 2004, 10:51:25 AM (21 years ago)
Author:
sandervl
Message:

KOM: update

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:39 sandervl Exp $ */
     1/* $Id: imm32.cpp,v 1.5 2004-05-24 08:51:00 sandervl Exp $ */
    22/*
    3  *      IMM32 library
     3 *  IMM32 library
    44 *
    5  *      Copyright 1998  Patrik Stridvall
    6  *      Copyright 1999  Jens Wiessner
     5 *  Copyright 1998  Patrik Stridvall
     6 *  Copyright 1999  Jens Wiessner
    77 */
    88
     
    1212#include <winversion.h>
    1313#include "imm32.h"
     14#include "im32.h"
    1415
    1516ODINDEBUGCHANNEL(imm)
     
    2021HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
    2122{
     23#ifdef __WIN32OS2__
     24    return IM32AssociateContext( hWnd, hIMC );
     25#else
    2226#ifdef DEBUG
    2327  dprintf(("IMM32: ImmAssociateContext not implemented\n"));
     
    2529  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    2630  return (HIMC)NULL;
     31#endif
    2732}
    2833
     
    3338BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dword)
    3439{
     40#ifdef __WIN32OS2__
     41    return IM32AssociateContextEx( hWnd, hIMC, dword );
     42#else
    3543#ifdef DEBUG
    3644  dprintf(("IMM32: ImmAssociateContextEx not implemented\n"));
     
    3846  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    3947  return (HIMC)NULL;
     48#endif
    4049}
    4150
     
    4655BOOL WINAPI ImmConfigureIMEA(HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
    4756{
     57#ifdef __WIN32OS2__
     58    return IM32ConfigureIME( hKL, hWnd, dwMode, lpData, FALSE );
     59#else
    4860#ifdef DEBUG
    4961  dprintf(("IMM32: ImmConfigureIMEA not implemented\n"));
     
    5163  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    5264  return FALSE;
     65#endif
    5366}
    5467
     
    5871BOOL WINAPI ImmConfigureIMEW(HKL hKL, HWND hWnd, DWORD dwMode, LPVOID lpData)
    5972{
     73#ifdef __WIN32OS2__
     74    return IM32ConfigureIME( hKL, hWnd, dwMode, lpData, TRUE );
     75#else
    6076#ifdef DEBUG
    6177  dprintf(("IMM32: ImmConfigureIMEW not implemented\n"));
     
    6379  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    6480  return FALSE;
     81#endif
    6582}
    6683
     
    7087HIMC WINAPI ImmCreateContext()
    7188{
     89#ifdef __WIN32OS2__
     90    return IM32CreateContext();
     91#else
    7292#ifdef DEBUG
    7393  dprintf(("IMM32: ImmCreateContext not implemented\n"));
     
    7595  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    7696  return (HIMC)NULL;
     97#endif
    7798}
    7899
     
    83104HIMCC  WINAPI ImmCreateIMCC(DWORD dword)
    84105{
     106#ifdef __WIN32OS2__
     107    return IM32CreateIMCC( dword );
     108#else
    85109#ifdef DEBUG
    86110  dprintf(("IMM32: ImmCreateIMCC not implemented\n"));
     
    88112  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    89113  return (HIMC)NULL;
     114#endif
    90115}
    91116
     
    96121HWND WINAPI ImmCreateSoftKeyboard(UINT uint, HWND hwnd, int in1, int in2)
    97122{
     123#ifdef __WIN32OS2__
     124    return IM32CreateSoftKeyboard( uint, hwnd, in1, in2 );
     125#else
    98126#ifdef DEBUG
    99127  dprintf(("IMM32: ImmCreateSoftKeyboard not implemented\n"));
     
    101129  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    102130  return (HIMC)NULL;
     131#endif
    103132}
    104133
     
    109138BOOL WINAPI ImmDestroyContext(HIMC hIMC)
    110139{
     140#ifdef __WIN32OS2__
     141    return IM32DestroyContext( hIMC );
     142#else
    111143#ifdef DEBUG
    112144  dprintf(("IMM32: ImmDestroyContext not implemented\n"));
     
    114146  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    115147  return FALSE;
     148#endif
    116149}
    117150
     
    122155HIMCC  WINAPI ImmDestroyIMCC(HIMCC himcc)
    123156{
     157#ifdef __WIN32OS2__
     158    return IM32DestroyIMCC( himcc );
     159#else
    124160#ifdef DEBUG
    125161  dprintf(("IMM32: ImmDestroyIMCC not implemented\n"));
     
    127163  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    128164  return FALSE;
     165#endif
    129166}
    130167
     
    135172BOOL WINAPI ImmDestroySoftKeyboard(HWND hwnd)
    136173{
     174#ifdef __WIN32OS2__
     175    return IM32DestroySoftKeyboard( hwnd );
     176#else
    137177#ifdef DEBUG
    138178  dprintf(("IMM32: ImmDestroySoftKeyboard not implemented\n"));
     
    140180  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    141181  return FALSE;
     182#endif
    142183}
    143184
     
    148189BOOL WINAPI ImmDisableIME(DWORD dword)
    149190{
     191#ifdef __WIN32OS2__
     192    return IM32DisableIME( dword );
     193#else
    150194#ifdef DEBUG
    151195  dprintf(("IMM32: ImmDisableIME not implemented\n"));
     
    153197  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    154198  return FALSE;
     199#endif
    155200}
    156201
     
    162207  LPCSTR lpszReading, DWORD dwStyle,  LPCSTR lpszRegister, LPVOID lpData)
    163208{
     209#ifdef __WIN32OS2__
     210    return IM32EnumRegisterWord( hKL, ( LPVOID )lpfnEnumProc, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, lpData, FALSE );
     211#else
    164212#ifdef DEBUG
    165213  dprintf(("IMM32: ImmEnumRegisterWordA not implemented\n"));
     
    167215  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    168216  return 0;
     217#endif
    169218}
    170219
     
    176225  LPCWSTR lpszReading, DWORD dwStyle,  LPCWSTR lpszRegister, LPVOID lpData)
    177226{
     227#ifdef __WIN32OS2__
     228    return IM32EnumRegisterWord( hKL, ( LPVOID )lpfnEnumProc, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, lpData, TRUE );
     229#else
    178230#ifdef DEBUG
    179231  dprintf(("IMM32: ImmEnumRegisterWordW not implemented\n"));
     
    181233  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    182234  return 0;
     235#endif
    183236}
    184237
     
    189242LRESULT WINAPI ImmEscapeA(  HKL hKL, HIMC hIMC,   UINT uEscape, LPVOID lpData)
    190243{
     244#ifdef __WIN32OS2__
     245    return IM32Escape( hKL, hIMC, uEscape, lpData, FALSE );
     246#else
    191247#ifdef DEBUG
    192248  dprintf(("IMM32: ImmEscapeA not implemented\n"));
     
    194250  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    195251  return 0;
     252#endif
    196253}
    197254
     
    202259LRESULT WINAPI ImmEscapeW(  HKL hKL, HIMC hIMC,  UINT uEscape, LPVOID lpData)
    203260{
     261#ifdef __WIN32OS2__
     262    return IM32Escape( hKL, hIMC, uEscape, lpData, TRUE );
     263#else
    204264#ifdef DEBUG
    205265  dprintf(("IMM32: ImmEscapeW not implemented\n"));
     
    207267  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    208268  return 0;
     269#endif
    209270}
    210271
     
    215276BOOL WINAPI ImmGenerateMessage(HIMC himc)
    216277{
     278#ifdef __WIN32OS2__
     279    return IM32GenerateMessage( himc );
     280#else
    217281#ifdef DEBUG
    218282  dprintf(("IMM32: ImmGenerateMessage not implemented\n"));
     
    220284  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    221285  return 0;
     286#endif
    222287}
    223288
     
    226291 *           ImmGetCandidateListA (IMM32.17)
    227292 */
    228 DWORD WINAPI ImmGetCandidateListA(  HIMC hIMC, DWORD deIndex,   
    229                 LPCANDIDATELIST lpCandList, DWORD dwBufLen)
    230 {
     293DWORD 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
    231299#ifdef DEBUG
    232300  dprintf(("IMM32: ImmGetCandidateListA not implemented\n"));
     
    234302  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    235303  return 0;
     304#endif
    236305}
    237306
     
    241310DWORD WINAPI ImmGetCandidateListCountA( HIMC hIMC, LPDWORD lpdwListCount)
    242311{
     312#ifdef __WIN32OS2__
     313    return IM32GetCandidateListCount( hIMC, lpdwListCount, FALSE );
     314#else
    243315#ifdef DEBUG
    244316  dprintf(("IMM32: ImmGetCandidateListCountA not implemented\n"));
     
    246318  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    247319  return 0;
     320#endif
    248321}
    249322
     
    253326DWORD WINAPI ImmGetCandidateListCountW( HIMC hIMC, LPDWORD lpdwListCount)
    254327{
     328#ifdef __WIN32OS2__
     329    return IM32GetCandidateListCount( hIMC, lpdwListCount, TRUE );
     330#else
    255331#ifdef DEBUG
    256332  dprintf(("IMM32: ImmGetCandidateListCountW not implemented\n"));
     
    258334  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    259335  return 0;
     336#endif
    260337}
    261338
     
    263340 *           ImmGetCandidateListW (IMM32.20)
    264341 */
    265 DWORD WINAPI ImmGetCandidateListW(  HIMC hIMC, DWORD deIndex, 
     342DWORD WINAPI ImmGetCandidateListW(  HIMC hIMC, DWORD deIndex,
    266343  LPCANDIDATELIST lpCandList, DWORD dwBufLen)
    267344{
     345#ifdef __WIN32OS2__
     346    return IM32GetCandidateList( hIMC, deIndex, lpCandList, dwBufLen, TRUE );
     347#else
    268348#ifdef DEBUG
    269349  dprintf(("IMM32: ImmGetCandidateListW not implemented\n"));
     
    271351  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    272352  return 0;
     353#endif
    273354}
    274355
     
    278359BOOL WINAPI ImmGetCandidateWindow(HIMC hIMC, DWORD dwBufLen, LPCANDIDATEFORM lpCandidate)
    279360{
     361#ifdef __WIN32OS2__
     362    return IM32GetCandidateWindow( hIMC, dwBufLen, lpCandidate );
     363#else
    280364#ifdef DEBUG
    281365  dprintf(("IMM32: ImmGetCandidateWindow not implemented\n"));
     
    283367  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    284368  return FALSE;
     369#endif
    285370}
    286371
     
    290375BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
    291376{
     377#ifdef __WIN32OS2__
     378    return IM32GetCompositionFont( hIMC, ( LPVOID )lplf, FALSE );
     379#else
    292380#ifdef DEBUG
    293381  dprintf(("IMM32: ImmGetCompositionFontA not implemented\n"));
     
    295383  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    296384  return FALSE;
     385#endif
    297386}
    298387
     
    302391BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
    303392{
     393#ifdef __WIN32OS2__
     394    return IM32GetCompositionFont( hIMC, ( LPVOID )lplf, TRUE );
     395#else
    304396#ifdef DEBUG
    305397  dprintf(("IMM32: ImmGetCompositionFontW not implemented\n"));
     
    307399  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    308400  return FALSE;
     401#endif
    309402}
    310403
     
    314407LONG WINAPI ImmGetCompositionStringA(HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen)
    315408{
     409#ifdef __WIN32OS2__
     410    return IM32GetCompositionString( hIMC, dwIndex, lpBuf, dwBufLen, FALSE );
     411#else
    316412#ifdef DEBUG
    317413  dprintf(("IMM32: ImmGetCompositionStringA not implemented\n"));
     
    327423      return 0;
    328424    }
     425#endif
    329426}
    330427
     
    334431LONG WINAPI ImmGetCompositionStringW( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen)
    335432{
     433#ifdef __WIN32OS2__
     434    return IM32GetCompositionString( hIMC, dwIndex, lpBuf, dwBufLen, TRUE );
     435#else
    336436#ifdef DEBUG
    337437  dprintf(("IMM32: ImmGetCompositionStringW not implemented\n"));
     
    347447      return 0;
    348448    }
     449#endif
    349450}
    350451
     
    354455BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
    355456{
     457#ifdef __WIN32OS2__
     458    return IM32GetCompositionWindow( hIMC, lpCompForm );
     459#else
    356460#ifdef DEBUG
    357461  dprintf(("IMM32: ImmGetCompositionWindow not implemented\n"));
     
    359463  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    360464  return 0;
     465#endif
    361466}
    362467
     
    366471HIMC WINAPI ImmGetContext(HWND hWnd)
    367472{
     473#ifdef __WIN32OS2__
     474    return IM32GetContext( hWnd );
     475#else
    368476#ifdef DEBUG
    369477  dprintf(("IMM32: ImmGetContext not implemented\n"));
     
    371479  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    372480  return (HIMC)NULL;
     481#endif
    373482}
    374483
     
    379488  LPCSTR pSrc, LPCANDIDATELIST lpDst,  DWORD dwBufLen, UINT uFlag)
    380489{
     490#ifdef __WIN32OS2__
     491    return IM32GetConversionList( hKL, hIMC, ( LPVOID )pSrc, lpDst, dwBufLen, uFlag, FALSE );
     492#else
    381493#ifdef DEBUG
    382494  dprintf(("IMM32: ImmGetConversionListA not implemented\n"));
     
    384496  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    385497  return 0;
     498#endif
    386499}
    387500
     
    392505  LPCWSTR pSrc, LPCANDIDATELIST lpDst,  DWORD dwBufLen, UINT uFlag)
    393506{
     507#ifdef __WIN32OS2__
     508    return IM32GetConversionList( hKL, hIMC, ( LPVOID )pSrc, lpDst, dwBufLen, uFlag, TRUE );
     509#else
    394510#ifdef DEBUG
    395511  dprintf(("IMM32: ImmGetConversionListW not implemented\n"));
     
    397513  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    398514  return 0;
     515#endif
    399516}
    400517
     
    404521BOOL WINAPI ImmGetConversionStatus(HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
    405522{
     523#ifdef __WIN32OS2__
     524    return IM32GetConversionStatus( hIMC, lpfdwConversion, lpfdwSentence );
     525#else
    406526#ifdef DEBUG
    407527  dprintf(("IMM32: ImmGetConversionStatus not implemented\n"));
     
    409529  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    410530  return FALSE;
     531#endif
    411532}
    412533
     
    416537HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
    417538{
     539#ifdef __WIN32OS2__
     540    return IM32GetDefaultIMEWnd( hWnd );
     541#else
    418542#ifdef DEBUG
    419543  dprintf(("IMM32: ImmGetDefaultIMEWnd not implemented\n"));
     
    421545  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    422546  return (HWND)NULL;
     547#endif
    423548}
    424549
     
    428553UINT WINAPI ImmGetDescriptionA(HKL hKL, LPSTR lpszDescription, UINT uBufLen)
    429554{
     555#ifdef __WIN32OS2__
     556    return IM32GetDescription( hKL, lpszDescription, uBufLen, FALSE );
     557#else
    430558#ifdef DEBUG
    431559  dprintf(("IMM32: ImmGetDescriptionA not implemented\n"));
     
    433561  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    434562  return 0;
     563#endif
    435564}
    436565
     
    440569UINT WINAPI ImmGetDescriptionW(HKL hKL, LPWSTR lpszDescription, UINT uBufLen)
    441570{
     571#ifdef __WIN32OS2__
     572    return IM32GetDescription( hKL, lpszDescription, uBufLen, TRUE );
     573#else
    442574#ifdef DEBUG
    443575  dprintf(("IMM32: ImmGetDescriptionW not implemented\n"));
     
    445577  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    446578  return 0;
     579#endif
    447580}
    448581
     
    453586  HIMC hIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen)
    454587{
     588#ifdef __WIN32OS2__
     589    return IM32GetGuideLine( hIMC, dwIndex, lpBuf, dwBufLen, FALSE );
     590#else
    455591#ifdef DEBUG
    456592  dprintf(("IMM32: ImmGetGuideLineA not implemented\n"));
     
    458594  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    459595  return 0;
     596#endif
    460597}
    461598
     
    465602DWORD WINAPI ImmGetGuideLineW(HIMC hIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen)
    466603{
     604#ifdef __WIN32OS2__
     605    return IM32GetGuideLine( hIMC, dwIndex, lpBuf, dwBufLen, TRUE );
     606#else
    467607#ifdef DEBUG
    468608  dprintf(("IMM32: ImmGetGuideLineW not implemented\n"));
     
    470610  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    471611  return 0;
     612#endif
    472613}
    473614
     
    478619BOOL WINAPI ImmGetHotKey(DWORD dword, LPUINT lpuModifiers, LPUINT lpuVKey, LPHKL lphkl)
    479620{
     621#ifdef __WIN32OS2__
     622    return IM32GetHotKey( dword, lpuModifiers, lpuVKey, lphkl );
     623#else
    480624#ifdef DEBUG
    481625  dprintf(("IMM32: ImmGetHotKey not implemented\n"));
     
    483627  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    484628  return 0;
     629#endif
    485630}
    486631
     
    491636DWORD  WINAPI ImmGetIMCCLockCount(HIMCC himcc)
    492637{
     638#ifdef __WIN32OS2__
     639    return IM32GetIMCCLockCount( himcc );
     640#else
    493641#ifdef DEBUG
    494642  dprintf(("IMM32: ImmGetIMCCLockCount not implemented\n"));
     
    496644  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    497645  return 0;
     646#endif
    498647}
    499648
     
    504653DWORD  WINAPI ImmGetIMCCSize(HIMCC himcc)
    505654{
     655#ifdef __WIN32OS2__
     656    return IM32GetIMCCSize( himcc );
     657#else
    506658#ifdef DEBUG
    507659  dprintf(("IMM32: ImmGetIMCCSize not implemented\n"));
     
    509661  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    510662  return 0;
     663#endif
    511664}
    512665
     
    517670DWORD WINAPI ImmGetIMCLockCount(HIMC himc)
    518671{
     672#ifdef __WIN32OS2__
     673    return IM32GetIMCLockCount( himc );
     674#else
    519675#ifdef DEBUG
    520676  dprintf(("IMM32: ImmGetIMCLockCount not implemented\n"));
     
    522678  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    523679  return 0;
     680#endif
    524681}
    525682
     
    530687UINT WINAPI ImmGetIMEFileNameA( HKL hKL, LPSTR lpszFileName, UINT uBufLen)
    531688{
     689#ifdef __WIN32OS2__
     690    return IM32GetIMEFileName( hKL, lpszFileName, uBufLen, FALSE );
     691#else
    532692#ifdef DEBUG
    533693  dprintf(("IMM32: ImmGetIMEFileNameA not implemented\n"));
     
    535695  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    536696  return 0;
     697#endif
    537698}
    538699
     
    542703UINT WINAPI ImmGetIMEFileNameW( HKL hKL, LPWSTR lpszFileName, UINT uBufLen)
    543704{
     705#ifdef __WIN32OS2__
     706    return IM32GetIMEFileName( hKL, lpszFileName, uBufLen, TRUE );
     707#else
    544708#ifdef DEBUG
    545709  dprintf(("IMM32: ImmGetIMEFileNameW not implemented\n"));
     
    547711  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    548712  return 0;
     713#endif
    549714}
    550715
     
    555720DWORD WINAPI ImmGetImeMenuItemsA(HIMC himc, DWORD dword, DWORD dword2, LPIMEMENUITEMINFOA lpimena, LPIMEMENUITEMINFOA lpimena2, DWORD dword3)
    556721{
     722#ifdef __WIN32OS2__
     723    return IM32GetImeMenuItems( himc, dword, dword2, lpimena, lpimena2, dword3, FALSE );
     724#else
    557725#ifdef DEBUG
    558726  dprintf(("IMM32: ImmGetImeMenuItemsA not implemented\n"));
     
    560728  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    561729  return FALSE;
     730#endif
    562731}
    563732
     
    568737DWORD WINAPI ImmGetImeMenuItemsW(HIMC himc, DWORD dword, DWORD dword2, LPIMEMENUITEMINFOW lpimenw, LPIMEMENUITEMINFOW lpimenw2, DWORD dword3)
    569738{
     739#ifdef __WIN32OS2__
     740    return IM32GetImeMenuItems( himc, dword, dword2, ( LPVOID )lpimenw, ( LPVOID )lpimenw2, dword3, TRUE );
     741#else
    570742#ifdef DEBUG
    571743  dprintf(("IMM32: ImmGetImeMenuItemsW not implemented\n"));
     
    573745  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    574746  return FALSE;
     747#endif
    575748}
    576749
     
    581754BOOL WINAPI ImmGetOpenStatus(HIMC hIMC)
    582755{
     756#ifdef __WIN32OS2__
     757    return IM32GetOpenStatus( hIMC );
     758#else
    583759#ifdef DEBUG
    584760  dprintf(("IMM32: ImmGetOpenStatus not implemented\n"));
     
    586762  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    587763  return FALSE;
     764#endif
    588765}
    589766
     
    593770DWORD WINAPI ImmGetProperty(HKL hKL, DWORD fdwIndex)
    594771{
     772#ifdef __WIN32OS2__
     773    return IM32GetProperty( hKL, fdwIndex );
     774#else
    595775#ifdef DEBUG
    596776  dprintf(("IMM32: ImmGetProperty not implemented\n"));
     
    598778  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    599779  return 0;
     780#endif
    600781}
    601782
     
    605786UINT WINAPI ImmGetRegisterWordStyleA(HKL hKL, UINT nItem, LPSTYLEBUFA lpStyleBuf)
    606787{
     788#ifdef __WIN32OS2__
     789    return IM32GetRegisterWordStyle( hKL, nItem, lpStyleBuf, FALSE );
     790#else
    607791#ifdef DEBUG
    608792  dprintf(("IMM32: ImmGetRegisterWordStyleA not implemented\n"));
     
    610794  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    611795  return 0;
     796#endif
    612797}
    613798
     
    617802UINT WINAPI ImmGetRegisterWordStyleW(HKL hKL, UINT nItem, LPSTYLEBUFW lpStyleBuf)
    618803{
     804#ifdef __WIN32OS2__
     805    return IM32GetRegisterWordStyle( hKL, nItem, lpStyleBuf, TRUE );
     806#else
    619807#ifdef DEBUG
    620808  dprintf(("IMM32: ImmGetRegisterWordStyleW not implemented\n"));
     
    622810  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    623811  return 0;
     812#endif
    624813}
    625814
     
    629818BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
    630819{
     820#ifdef __WIN32OS2__
     821    return IM32GetStatusWindowPos( hIMC, lpptPos );
     822#else
    631823#ifdef DEBUG
    632824  dprintf(("IMM32: ImmGetStatusWindowPos not implemented\n"));
     
    634826  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    635827  return FALSE;
     828#endif
    636829}
    637830
     
    641834UINT WINAPI ImmGetVirtualKey(HWND hWnd)
    642835{
     836#ifdef __WIN32OS2__
     837    return IM32GetVirtualKey( hWnd );
     838#else
    643839#ifdef DEBUG
    644840  dprintf(("IMM32: ImmGetVirtualKey not implemented\n"));
     
    654850      return 0;
    655851    }
     852#endif
    656853}
    657854
     
    661858HKL WINAPI ImmInstallIMEA(LPCSTR lpszIMEFileName, LPCSTR lpszLayoutText)
    662859{
     860#ifdef __WIN32OS2__
     861    return IM32InstallIME(( LPVOID )lpszIMEFileName, ( LPVOID )lpszLayoutText, FALSE );
     862#else
    663863#ifdef DEBUG
    664864  dprintf(("IMM32: ImmInstallIMEA not implemented\n"));
     
    666866  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    667867  return (HKL)NULL;
     868#endif
    668869}
    669870
     
    673874HKL WINAPI ImmInstallIMEW(LPCWSTR lpszIMEFileName, LPCWSTR lpszLayoutText)
    674875{
     876#ifdef __WIN32OS2__
     877    return IM32InstallIME( ( LPVOID )lpszIMEFileName, ( LPVOID )lpszLayoutText, TRUE );
     878#else
    675879#ifdef DEBUG
    676880  dprintf(("IMM32: ImmInstallIMEW not implemented\n"));
     
    678882  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    679883  return (HKL)NULL;
     884#endif
    680885}
    681886
     
    685890BOOL WINAPI ImmIsIME(HKL hKL)
    686891{
     892#ifdef __WIN32OS2__
     893    return IM32IsIME( hKL );
     894#else
    687895#ifdef DEBUG
    688896  dprintf(("IMM32: ImmIsIME not implemented\n"));
     
    690898  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    691899  return FALSE;
     900#endif
    692901}
    693902
     
    697906BOOL WINAPI ImmIsUIMessageA(HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam)
    698907{
     908#ifdef __WIN32OS2__
     909    return IM32IsUIMessage( hWndIME, msg, wParam, lParam, FALSE );
     910#else
    699911#ifdef DEBUG
    700912  dprintf(("IMM32: ImmIsUIMessageA not implemented\n"));
     
    702914  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    703915  return FALSE;
     916#endif
    704917}
    705918
     
    709922BOOL WINAPI ImmIsUIMessageW(HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam)
    710923{
     924#ifdef __WIN32OS2__
     925    return IM32IsUIMessage( hWndIME, msg, wParam, lParam, TRUE );
     926#else
    711927#ifdef DEBUG
    712928  dprintf(("IMM32: ImmIsUIMessageW not implemented\n"));
     
    714930  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    715931  return FALSE;
    716 }
    717 
    718 
    719 /***********************************************************************
    720  *           ImmLockIMC          (IMM32.55)
     932#endif
     933}
     934
     935
     936/***********************************************************************
     937 *           ImmLockIMC      (IMM32.55)
    721938 */
    722939LPINPUTCONTEXT WINAPI ImmLockIMC(HIMC himc)
    723940{
     941#ifdef __WIN32OS2__
     942    return IM32LockIMC( himc );
     943#else
    724944#ifdef DEBUG
    725945  dprintf(("IMM32: ImmLockIMC not implemented\n"));
     
    727947  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    728948  return FALSE;
    729 }
    730 
    731 
    732 /***********************************************************************
    733  *           ImmLockIMCC         (IMM32.56)
     949#endif
     950}
     951
     952
     953/***********************************************************************
     954 *           ImmLockIMCC     (IMM32.56)
    734955 */
    735956LPVOID WINAPI ImmLockIMCC(HIMCC himcc)
    736957{
     958#ifdef __WIN32OS2__
     959    return IM32LockIMCC( himcc );
     960#else
    737961#ifdef DEBUG
    738962  dprintf(("IMM32: ImmLockIMCC not implemented\n"));
     
    740964  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    741965  return FALSE;
     966#endif
    742967}
    743968
     
    748973BOOL WINAPI ImmNotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue)
    749974{
     975#ifdef __WIN32OS2__
     976    return IM32NotifyIME( hIMC, dwAction, dwIndex, dwValue );
     977#else
    750978#ifdef DEBUG
    751979  dprintf(("IMM32: ImmNotifyIME not implemented\n"));
     
    753981  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    754982  return FALSE;
     983#endif
    755984}
    756985
     
    761990HIMCC  WINAPI ImmReSizeIMCC(HIMCC himcc, DWORD dword)
    762991{
     992#ifdef __WIN32OS2__
     993    return IM32ReSizeIMCC( himcc, dword );
     994#else
    763995#ifdef DEBUG
    764996  dprintf(("IMM32: ImmReSizeIMCC not implemented\n"));
     
    766998  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    767999  return FALSE;
     1000#endif
    7681001}
    7691002
     
    7731006BOOL WINAPI ImmRegisterWordA( HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister)
    7741007{
     1008#ifdef __WIN32OS2__
     1009    return IM32RegisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, FALSE );
     1010#else
    7751011#ifdef DEBUG
    7761012  dprintf(("IMM32: ImmRegisterWordA not implemented\n"));
     
    7781014  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    7791015  return FALSE;
     1016#endif
    7801017}
    7811018
     
    7851022BOOL WINAPI ImmRegisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister)
    7861023{
     1024#ifdef __WIN32OS2__
     1025    return IM32RegisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszRegister, TRUE );
     1026#else
    7871027#ifdef DEBUG
    7881028  dprintf(("IMM32: ImmRegisterWordW not implemented\n"));
     
    7901030  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    7911031  return FALSE;
     1032#endif
    7921033}
    7931034
     
    7971038BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
    7981039{
     1040#ifdef __WIN32OS2__
     1041    return IM32ReleaseContext( hWnd, hIMC );
     1042#else
    7991043#ifdef DEBUG
    8001044  dprintf(("IMM32: ImmReleaseContext not implemented\n"));
     
    8021046  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8031047  return FALSE;
     1048#endif
    8041049}
    8051050
     
    8101055LRESULT WINAPI ImmRequestMessageA(HIMC himc, WPARAM wparam, LPARAM lparam)
    8111056{
     1057#ifdef __WIN32OS2__
     1058    return IM32RequestMessage( himc, wparam, lparam, FALSE );
     1059#else
    8121060#ifdef DEBUG
    8131061  dprintf(("IMM32: ImmRequestMessageA not implemented\n"));
     
    8151063  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8161064  return FALSE;
     1065#endif
    8171066}
    8181067
     
    8231072LRESULT WINAPI ImmRequestMessageW(HIMC himc, WPARAM wparam, LPARAM lparam)
    8241073{
     1074#ifdef __WIN32OS2__
     1075    return IM32RequestMessage( himc, wparam, lparam, TRUE );
     1076#else
    8251077#ifdef DEBUG
    8261078  dprintf(("IMM32: ImmRequestMessageW not implemented\n"));
     
    8281080  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8291081  return FALSE;
     1082#endif
    8301083}
    8311084
     
    8361089BOOL WINAPI ImmSetCandidateWindow(HIMC hIMC, LPCANDIDATEFORM lpCandidate)
    8371090{
     1091#ifdef __WIN32OS2__
     1092    return IM32SetCandidateWindow( hIMC, lpCandidate );
     1093#else
    8381094#ifdef DEBUG
    8391095  dprintf(("IMM32: ImmSetCandidateWindow not implemented\n"));
     
    8411097  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8421098  return FALSE;
     1099#endif
    8431100}
    8441101
     
    8481105BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
    8491106{
     1107#ifdef __WIN32OS2__
     1108    return IM32SetCompositionFont( hIMC, lplf, FALSE );
     1109#else
    8501110#ifdef DEBUG
    8511111  dprintf(("IMM32: ImmSetCompositionFontA not implemented\n"));
     
    8531113  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8541114  return FALSE;
     1115#endif
    8551116}
    8561117
     
    8601121BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
    8611122{
     1123#ifdef __WIN32OS2__
     1124    return IM32SetCompositionFont( hIMC, lplf, TRUE );
     1125#else
    8621126#ifdef DEBUG
    8631127  dprintf(("IMM32: ImmSetCompositionFontW not implemented\n"));
     
    8651129  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8661130  return FALSE;
     1131#endif
    8671132}
    8681133
     
    8701135 *           ImmSetCompositionStringA (IMM32.67)
    8711136 */
    872 BOOL WINAPI ImmSetCompositionStringA(  HIMC hIMC, DWORD dwIndex, 
     1137BOOL WINAPI ImmSetCompositionStringA(  HIMC hIMC, DWORD dwIndex,
    8731138  LPCVOID lpComp, DWORD dwCompLen, LPCVOID lpRead, DWORD dwReadLen)
    8741139{
     1140#ifdef __WIN32OS2__
     1141    return IM32SetCompositionString( hIMC, dwIndex, lpComp, dwCompLen, lpRead, dwReadLen, FALSE );
     1142#else
    8751143#ifdef DEBUG
    8761144  dprintf(("IMM32: ImmSetCompositionStringA not implemented\n"));
     
    8781146  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8791147  return FALSE;
     1148#endif
    8801149}
    8811150
     
    8841153 */
    8851154BOOL 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
    8881160#ifdef DEBUG
    8891161  dprintf(("IMM32: ImmSetCompositionStringW not implemented\n"));
     
    8911163  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8921164  return FALSE;
     1165#endif
    8931166}
    8941167
     
    8981171BOOL WINAPI ImmSetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
    8991172{
     1173#ifdef __WIN32OS2__
     1174    return IM32SetCompositionWindow( hIMC, lpCompForm );
     1175#else
    9001176#ifdef DEBUG
    9011177  dprintf(("IMM32: ImmSetCompositionWindow not implemented\n"));
     
    9031179  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9041180  return FALSE;
     1181#endif
    9051182}
    9061183
     
    9101187BOOL WINAPI ImmSetConversionStatus(HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence)
    9111188{
     1189#ifdef __WIN32OS2__
     1190    return IM32SetConversionStatus( hIMC, fdwConversion, fdwSentence );
     1191#else
    9121192#ifdef DEBUG
    9131193  dprintf(("IMM32: ImmSetConversionStatus not implemented\n"));
     
    9151195  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9161196  return FALSE;
     1197#endif
    9171198}
    9181199
     
    9231204BOOL WINAPI ImmSetHotKey(DWORD dword, UINT uint, UINT uint2, HKL hkl)
    9241205{
     1206#ifdef __WIN32OS2__
     1207    return IM32SetHotKey( dword, uint, uint2, hkl );
     1208#else
    9251209#ifdef DEBUG
    9261210  dprintf(("IMM32: ImmSetHotKey not implemented\n"));
     
    9281212  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9291213  return FALSE;
     1214#endif
    9301215}
    9311216
     
    9361221BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
    9371222{
     1223#ifdef __WIN32OS2__
     1224    return IM32SetOpenStatus( hIMC, fOpen );
     1225#else
    9381226#ifdef DEBUG
    9391227  dprintf(("IMM32: ImmSetOpenStatus not implemented\n"));
     
    9411229  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9421230  return FALSE;
     1231#endif
    9431232}
    9441233
     
    9481237BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
    9491238{
     1239#ifdef __WIN32OS2__
     1240    return IM32SetStatusWindowPos( hIMC, lpptPos );
     1241#else
    9501242#ifdef DEBUG
    9511243  dprintf(("IMM32: ImmSetStatusWindowPos not implemented\n"));
     
    9531245  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9541246  return FALSE;
     1247#endif
    9551248}
    9561249
     
    9611254BOOL WINAPI ImmShowSoftKeyboard(HWND hwnd, int in1)
    9621255{
     1256#ifdef __WIN32OS2__
     1257    return IM32ShowSoftKeyboard( hwnd, in1 );
     1258#else
    9631259#ifdef DEBUG
    9641260  dprintf(("IMM32: ImmShowSoftKeyboard not implemented\n"));
     
    9661262  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9671263  return FALSE;
     1264#endif
    9681265}
    9691266
     
    9741271BOOL WINAPI ImmSimulateHotKey(HWND hWnd, DWORD dwHotKeyID)
    9751272{
     1273#ifdef __WIN32OS2__
     1274    return IM32SimulateHotKey( hWnd, dwHotKeyID );
     1275#else
    9761276#ifdef DEBUG
    9771277  dprintf(("IMM32: ImmSimulateHotKey not implemented\n"));
     
    9791279  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9801280  return FALSE;
     1281#endif
    9811282}
    9821283
     
    9871288BOOL  WINAPI ImmUnlockIMC(HIMC himc)
    9881289{
     1290#ifdef __WIN32OS2__
     1291    return IM32UnlockIMC( himc );
     1292#else
    9891293#ifdef DEBUG
    9901294  dprintf(("IMM32: ImmUnlockIMC not implemented\n"));
     
    9921296  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9931297  return FALSE;
     1298#endif
    9941299}
    9951300
     
    10001305BOOL  WINAPI ImmUnlockIMCC(HIMCC himcc)
    10011306{
     1307#ifdef __WIN32OS2__
     1308    return IM32UnlockIMCC( himcc );
     1309#else
    10021310#ifdef DEBUG
    10031311  dprintf(("IMM32: ImmUnlockIMCC not implemented\n"));
     
    10051313  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    10061314  return FALSE;
     1315#endif
    10071316}
    10081317
     
    10131322BOOL WINAPI ImmUnregisterWordA(HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszUnregister)
    10141323{
     1324#ifdef __WIN32OS2__
     1325    return IM32UnregisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszUnregister, FALSE );
     1326#else
    10151327#ifdef DEBUG
    10161328  dprintf(("IMM32: ImmUnregisterWordA not implemented\n"));
     
    10181330  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    10191331  return FALSE;
     1332#endif
    10201333}
    10211334
     
    10251338BOOL WINAPI ImmUnregisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszUnregister)
    10261339{
     1340#ifdef __WIN32OS2__
     1341    return IM32UnregisterWord( hKL, ( LPVOID )lpszReading, dwStyle, ( LPVOID )lpszUnregister, TRUE );
     1342#else
    10271343#ifdef DEBUG
    10281344  dprintf(("IMM32: ImmUnregisterWordW not implemented\n"));
     
    10301346  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    10311347  return FALSE;
    1032 }
     1348#endif
     1349}
Note: See TracChangeset for help on using the changeset viewer.