ReactOS 0.4.16-dev-2633-g8dc9e50
win3.c File Reference
#include "precomp.h"
#include <ime.h>
Include dependency graph for win3.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (imm)
 
DWORD WINNLSTranslateMessage (_In_ INT cEntries, _Inout_ PTRANSMSG pEntries, _In_ HIMC hIMC, _In_ BOOL bAnsi, _In_ WORD wLang)
 

Function Documentation

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( imm  )

◆ WINNLSTranslateMessage()

DWORD WINNLSTranslateMessage ( _In_ INT  cEntries,
_Inout_ PTRANSMSG  pEntries,
_In_ HIMC  hIMC,
_In_ BOOL  bAnsi,
_In_ WORD  wLang 
)

Definition at line 1723 of file win3.c.

1729{
1730#ifdef IMM_WIN3_SUPPORT
1732 if (!pIC)
1733 return 0;
1734
1735 PCOMPOSITIONSTRING pCompStr = ImmLockIMCC(pIC->hCompStr);
1736 if (!pCompStr)
1737 {
1738 ImmUnlockIMC(hIMC);
1739 return 0;
1740 }
1741
1742 DWORD ret;
1743 if (wLang == LANG_KOREAN)
1744 ret = WINNLSTranslateMessageK(cEntries, pEntries, pIC, pCompStr, bAnsi);
1745 else if (wLang == LANG_JAPANESE)
1746 ret = WINNLSTranslateMessageJ(cEntries, pEntries, pIC, pCompStr, bAnsi);
1747 else
1748 ret = 0;
1749
1750 ImmUnlockIMCC(pIC->hCompStr);
1751 ImmUnlockIMC(hIMC);
1752 return ret;
1753#else
1754 return 0;
1755#endif
1756}
return ret
Definition: mutex.c:146
unsigned long DWORD
Definition: ntddk_ex.h:95
struct INPUTCONTEXTDX * PINPUTCONTEXTDX
BOOL WINAPI ImmUnlockIMCC(_In_ HIMCC imcc)
Definition: utils.c:613
LPINPUTCONTEXT WINAPI ImmLockIMC(_In_ HIMC hIMC)
Definition: imm.c:1080
BOOL WINAPI ImmUnlockIMC(_In_ HIMC hIMC)
Definition: imm.c:1090
LPVOID WINAPI ImmLockIMCC(_In_ HIMCC imcc)
Definition: utils.c:602
#define LANG_JAPANESE
Definition: nls.h:76
#define LANG_KOREAN
Definition: nls.h:84
_In_ UINT _In_ UINT cEntries
Definition: wingdi.h:4067

Referenced by ImmGenerateMessage(), and ImmPostMessages().