ReactOS 0.4.15-dev-7907-g95bf896
msctfime.cpp File Reference
#include "msctfime.h"
Include dependency graph for msctfime.cpp:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctfime)
 
EXTERN_C void __cxa_pure_virtual (void)
 
static HRESULT InternalSelectEx (_In_ HIMC hIMC, _In_ BOOL fSelect, _In_ LANGID LangID)
 
HRESULT Inquire (_Out_ LPIMEINFO lpIMEInfo, _Out_ LPWSTR lpszWndClass, _In_ DWORD dwSystemInfoFlags, _In_ HKL hKL)
 
EXTERN_C BOOL WINAPI ImeInquire (_Out_ LPIMEINFO lpIMEInfo, _Out_ LPWSTR lpszWndClass, _In_ DWORD dwSystemInfoFlags)
 
EXTERN_C DWORD WINAPI ImeConversionList (_In_ HIMC hIMC, _In_ LPCWSTR lpSrc, _Out_ LPCANDIDATELIST lpDst, _In_ DWORD dwBufLen, _In_ UINT uFlag)
 
EXTERN_C BOOL WINAPI ImeRegisterWord (_In_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_ LPCWSTR lpszString)
 
EXTERN_C BOOL WINAPI ImeUnregisterWord (_In_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_ LPCWSTR lpszString)
 
EXTERN_C UINT WINAPI ImeGetRegisterWordStyle (_In_ UINT nItem, _Out_ LPSTYLEBUFW lpStyleBuf)
 
EXTERN_C UINT WINAPI ImeEnumRegisterWord (_In_ REGISTERWORDENUMPROCW lpfnEnumProc, _In_opt_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCWSTR lpszString, _In_opt_ LPVOID lpData)
 
EXTERN_C BOOL WINAPI ImeConfigure (_In_ HKL hKL, _In_ HWND hWnd, _In_ DWORD dwMode, _Inout_opt_ LPVOID lpData)
 
EXTERN_C BOOL WINAPI ImeDestroy (_In_ UINT uReserved)
 
EXTERN_C LRESULT WINAPI ImeEscape (_In_ HIMC hIMC, _In_ UINT uEscape, _Inout_opt_ LPVOID lpData)
 
EXTERN_C BOOL WINAPI ImeProcessKey (_In_ HIMC hIMC, _In_ UINT uVirtKey, _In_ LPARAM lParam, _In_ CONST LPBYTE lpbKeyState)
 
EXTERN_C BOOL WINAPI ImeSelect (_In_ HIMC hIMC, _In_ BOOL fSelect)
 
EXTERN_C BOOL WINAPI ImeSetActiveContext (_In_ HIMC hIMC, _In_ BOOL fFlag)
 
EXTERN_C UINT WINAPI ImeToAsciiEx (_In_ UINT uVirtKey, _In_ UINT uScanCode, _In_ CONST LPBYTE lpbKeyState, _Out_ LPTRANSMSGLIST lpTransMsgList, _In_ UINT fuState, _In_ HIMC hIMC)
 
EXTERN_C BOOL WINAPI NotifyIME (_In_ HIMC hIMC, _In_ DWORD dwAction, _In_ DWORD dwIndex, _In_ DWORD_PTR dwValue)
 
EXTERN_C BOOL WINAPI ImeSetCompositionString (_In_ HIMC hIMC, _In_ DWORD dwIndex, _In_opt_ LPCVOID lpComp, _In_ DWORD dwCompLen, _In_opt_ LPCVOID lpRead, _In_ DWORD dwReadLen)
 
EXTERN_C HRESULT WINAPI CtfImeInquireExW (_Out_ LPIMEINFO lpIMEInfo, _Out_ LPWSTR lpszWndClass, _In_ DWORD dwSystemInfoFlags, _In_ HKL hKL)
 
EXTERN_C BOOL WINAPI CtfImeSelectEx (_In_ HIMC hIMC, _In_ BOOL fSelect, _In_ HKL hKL)
 
EXTERN_C LRESULT WINAPI CtfImeEscapeEx (_In_ HIMC hIMC, _In_ UINT uSubFunc, _Inout_opt_ LPVOID lpData, _In_ HKL hKL)
 
EXTERN_C HRESULT WINAPI CtfImeGetGuidAtom (_In_ HIMC hIMC, _In_ DWORD dwUnknown, _Out_opt_ LPDWORD pdwGuidAtom)
 
EXTERN_C BOOL WINAPI CtfImeIsGuidMapEnable (_In_ HIMC hIMC)
 
EXTERN_C HRESULT WINAPI CtfImeCreateThreadMgr (VOID)
 
EXTERN_C HRESULT WINAPI CtfImeDestroyThreadMgr (VOID)
 
EXTERN_C HRESULT WINAPI CtfImeCreateInputContext (_In_ HIMC hIMC)
 
EXTERN_C HRESULT WINAPI CtfImeDestroyInputContext (_In_ HIMC hIMC)
 
EXTERN_C HRESULT WINAPI CtfImeSetActiveContextAlways (_In_ HIMC hIMC, _In_ BOOL fActive, _In_ HWND hWnd, _In_ HKL hKL)
 
EXTERN_C HRESULT WINAPI CtfImeProcessCicHotkey (_In_ HIMC hIMC, _In_ UINT vKey, _In_ LPARAM lParam)
 
EXTERN_C LRESULT WINAPI CtfImeDispatchDefImeMessage (_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
EXTERN_C BOOL WINAPI CtfImeIsIME (_In_ HKL hKL)
 
EXTERN_C HRESULT WINAPI CtfImeThreadDetach (VOID)
 
BOOL AttachIME (VOID)
 @implemented
 
VOID DetachIME (VOID)
 @implemented
 
EXTERN_C VOID TFUninitLib (VOID)
 
BOOL ProcessAttach (HINSTANCE hinstDLL)
 @implemented
 
VOID ProcessDetach (HINSTANCE hinstDLL)
 @implemented
 
EXTERN_C BOOL WINAPI DllMain (_In_ HINSTANCE hinstDLL, _In_ DWORD dwReason, _Inout_opt_ LPVOID lpvReserved)
 @implemented
 

Variables

HINSTANCE g_hInst = NULL
 
BOOL g_bWinLogon = FALSE
 
UINT g_uACP = CP_ACP
 
DWORD g_dwOSInfo = 0
 
BOOL gfTFInitLib = FALSE
 
CRITICAL_SECTION g_csLock
 
CDispAttrPropCacheg_pPropCache = NULL
 

Function Documentation

◆ __cxa_pure_virtual()

EXTERN_C void __cxa_pure_virtual ( void  )

Definition at line 20 of file msctfime.cpp.

21{
22 ERR("__cxa_pure_virtual\n");
23}
#define ERR(fmt,...)
Definition: debug.h:110

◆ AttachIME()

BOOL AttachIME ( VOID  )

@implemented

Definition at line 903 of file msctfime.cpp.

904{
906}
BOOL RegisterImeClass(VOID)
@implemented
Definition: ui.cpp:1356
BOOL RegisterMSIMEMessage(VOID)
@implemented
Definition: ui.cpp:41

Referenced by ProcessAttach().

◆ CtfImeCreateInputContext()

EXTERN_C HRESULT WINAPI CtfImeCreateInputContext ( _In_ HIMC  hIMC)

Definition at line 744 of file msctfime.cpp.

746{
747 TRACE("(%p)\n", hIMC);
748
749 TLS *pTLS = TLS::GetTLS();
750 if (!pTLS || !pTLS->m_pBridge)
751 return E_OUTOFMEMORY;
752
753 return pTLS->m_pBridge->CreateInputContext(pTLS, hIMC);
754}
HRESULT CreateInputContext(TLS *pTLS, HIMC hIMC)
@implemented
Definition: bridge.cpp:79
Definition: tls.h:14
static TLS * GetTLS()
@implemented
Definition: tls.cpp:32
CicBridge * m_pBridge
Definition: tls.h:19
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4

◆ CtfImeCreateThreadMgr()

EXTERN_C HRESULT WINAPI CtfImeCreateThreadMgr ( VOID  )

Definition at line 671 of file msctfime.cpp.

672{
673 TRACE("()\n");
674
675 TLS *pTLS = TLS::GetTLS();
676 if (!pTLS)
677 return E_OUTOFMEMORY;
678
679 if (!pTLS->m_pBridge)
680 {
681 pTLS->m_pBridge = new(cicNoThrow) CicBridge();
682 if (!pTLS->m_pBridge)
683 return E_OUTOFMEMORY;
684 }
685
686 HRESULT hr = S_OK;
688 {
689 hr = pTLS->m_pBridge->InitIMMX(pTLS);
690 if (SUCCEEDED(hr))
691 {
692 if (!pTLS->m_pThreadMgr)
693 return E_OUTOFMEMORY;
694
695 hr = pTLS->m_pBridge->ActivateIMMX(pTLS, pTLS->m_pThreadMgr);
696 if (FAILED(hr))
697 pTLS->m_pBridge->UnInitIMMX(pTLS);
698 }
699 }
700
701 return hr;
702}
#define cicNoThrow
Definition: cicbase.h:34
HRESULT ActivateIMMX(_Inout_ TLS *pTLS, _Inout_ ITfThreadMgr_P *pThreadMgr)
@implemented
Definition: bridge.cpp:277
BOOL UnInitIMMX(_Inout_ TLS *pTLS)
@implemented
Definition: bridge.cpp:453
HRESULT InitIMMX(_Inout_ TLS *pTLS)
@implemented
Definition: bridge.cpp:386
DWORD m_dwSystemInfoFlags
Definition: tls.h:18
ITfThreadMgr_P * m_pThreadMgr
Definition: tls.h:21
#define IME_SYSINFO_WINLOGON
Definition: immdev.h:409
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
BOOL g_bWinLogon
Definition: msctfime.cpp:13
HRESULT hr
Definition: shlfolder.c:183

◆ CtfImeDestroyInputContext()

EXTERN_C HRESULT WINAPI CtfImeDestroyInputContext ( _In_ HIMC  hIMC)

Definition at line 762 of file msctfime.cpp.

764{
765 TRACE("(%p)\n", hIMC);
766
767 TLS *pTLS = TLS::PeekTLS();
768 if (!pTLS || !pTLS->m_pBridge)
769 return E_OUTOFMEMORY;
770
771 return pTLS->m_pBridge->DestroyInputContext(pTLS, hIMC);
772}
HRESULT DestroyInputContext(TLS *pTLS, HIMC hIMC)
@implemented
Definition: bridge.cpp:143
static TLS * PeekTLS()
@implemented
Definition: tls.cpp:41

◆ CtfImeDestroyThreadMgr()

EXTERN_C HRESULT WINAPI CtfImeDestroyThreadMgr ( VOID  )

Definition at line 710 of file msctfime.cpp.

711{
712 TRACE("()\n");
713
714 TLS *pTLS = TLS::PeekTLS();
715 if (!pTLS)
716 return E_OUTOFMEMORY;
717
718 if (pTLS->m_pBridge)
719 {
720 pTLS->m_pBridge = new(cicNoThrow) CicBridge();
721 if (!pTLS->m_pBridge)
722 return E_OUTOFMEMORY;
723 }
724
725 if (!pTLS->m_pThreadMgr)
726 return E_OUTOFMEMORY;
727
729 return S_OK;
730
731 HRESULT hr = pTLS->m_pBridge->DeactivateIMMX(pTLS, pTLS->m_pThreadMgr);
732 if (hr == S_OK)
733 pTLS->m_pBridge->UnInitIMMX(pTLS);
734
735 return hr;
736}
HRESULT DeactivateIMMX(_Inout_ TLS *pTLS, _Inout_ ITfThreadMgr_P *pThreadMgr)
@implemented
Definition: bridge.cpp:340

◆ CtfImeDispatchDefImeMessage()

EXTERN_C LRESULT WINAPI CtfImeDispatchDefImeMessage ( _In_ HWND  hWnd,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 837 of file msctfime.cpp.

842{
843 TRACE("(%p, %u, %p, %p)\n", hWnd, uMsg, wParam, lParam);
844
845 TLS *pTLS = TLS::GetTLS();
846 if (pTLS)
847 {
848 if (uMsg == WM_CREATE)
849 ++pTLS->m_cWnds;
850 else if (uMsg == WM_DESTROY)
851 --pTLS->m_cWnds;
852 }
853
854 if (!IsMsImeMessage(uMsg))
855 return 0;
856
857 HKL hKL = ::GetKeyboardLayout(0);
858 if (IS_IME_HKL(hKL))
859 return 0;
860
861 HWND hImeWnd = (HWND)::SendMessageW(hWnd, WM_IME_NOTIFY, 0x17, 0);
862 if (!IsWindow(hImeWnd))
863 return 0;
864
865 return ::SendMessageW(hImeWnd, uMsg, wParam, lParam);
866}
HWND hWnd
Definition: settings.c:17
DWORD m_cWnds
Definition: tls.h:28
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
HANDLE HWND
Definition: compat.h:19
#define IS_IME_HKL(hKL)
Definition: imm32_undoc.h:20
UINT_PTR HKL
Definition: msctf.idl:143
BOOL IsMsImeMessage(_In_ UINT uMsg)
@implemented
Definition: ui.cpp:26
BOOL WINAPI IsWindow(_In_opt_ HWND)
HKL WINAPI GetKeyboardLayout(_In_ DWORD)
#define WM_IME_NOTIFY
Definition: winuser.h:1830
#define WM_CREATE
Definition: winuser.h:1608
#define WM_DESTROY
Definition: winuser.h:1609
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CtfImmDispatchDefImeMessage().

◆ CtfImeEscapeEx()

EXTERN_C LRESULT WINAPI CtfImeEscapeEx ( _In_ HIMC  hIMC,
_In_ UINT  uSubFunc,
_Inout_opt_ LPVOID  lpData,
_In_ HKL  hKL 
)

Definition at line 601 of file msctfime.cpp.

606{
607 TRACE("(%p, %u, %p, %p)\n", hIMC, uSubFunc, lpData, hKL);
608
610 return 0;
611
612 TLS *pTLS = TLS::GetTLS();
613 if (!pTLS || !pTLS->m_pBridge)
614 return 0;
615
616 return pTLS->m_pBridge->EscapeKorean(pTLS, hIMC, uSubFunc, lpData);
617}
LRESULT EscapeKorean(TLS *pTLS, HIMC hIMC, UINT uSubFunc, LPVOID lpData)
@implemented
Definition: bridge.cpp:894
#define LOWORD(l)
Definition: pedump.c:82
#define MAKELANGID(p, s)
Definition: nls.h:15
#define SUBLANG_DEFAULT
Definition: nls.h:168
#define LANG_KOREAN
Definition: nls.h:84

◆ CtfImeGetGuidAtom()

EXTERN_C HRESULT WINAPI CtfImeGetGuidAtom ( _In_ HIMC  hIMC,
_In_ DWORD  dwUnknown,
_Out_opt_ LPDWORD  pdwGuidAtom 
)

Definition at line 625 of file msctfime.cpp.

629{
630 TRACE("(%p, 0x%lX, %p)\n", hIMC, dwUnknown, pdwGuidAtom);
631
632 CicIMCLock imcLock(hIMC);
633 if (FAILED(imcLock.m_hr))
634 return imcLock.m_hr;
635
636 CicIMCCLock<CTFIMECONTEXT> imccLock(imcLock.get().hCtfImeContext);
637 if (FAILED(imccLock.m_hr))
638 return imccLock.m_hr;
639
640 if (!imccLock.get().m_pCicIC)
641 return E_OUTOFMEMORY;
642
643 return imccLock.get().m_pCicIC->GetGuidAtom(imcLock, dwUnknown, pdwGuidAtom);
644}

◆ CtfImeInquireExW()

EXTERN_C HRESULT WINAPI CtfImeInquireExW ( _Out_ LPIMEINFO  lpIMEInfo,
_Out_ LPWSTR  lpszWndClass,
_In_ DWORD  dwSystemInfoFlags,
_In_ HKL  hKL 
)

Definition at line 547 of file msctfime.cpp.

552{
553 TRACE("(%p, %p, 0x%lX, %p)\n", lpIMEInfo, lpszWndClass, dwSystemInfoFlags, hKL);
554
555 TLS *pTLS = TLS::GetTLS();
556 if (!pTLS)
557 return E_OUTOFMEMORY;
558
560 {
561 dwSystemInfoFlags |= IME_SYSINFO_WINLOGON;
563 }
564
565 pTLS->m_dwSystemInfoFlags = dwSystemInfoFlags;
566
567 return Inquire(lpIMEInfo, lpszWndClass, dwSystemInfoFlags, hKL);
568}
#define TRUE
Definition: types.h:120
BOOL IsInteractiveUserLogon(VOID)
Definition: misc.cpp:61
HRESULT Inquire(_Out_ LPIMEINFO lpIMEInfo, _Out_ LPWSTR lpszWndClass, _In_ DWORD dwSystemInfoFlags, _In_ HKL hKL)
Definition: msctfime.cpp:97

◆ CtfImeIsGuidMapEnable()

EXTERN_C BOOL WINAPI CtfImeIsGuidMapEnable ( _In_ HIMC  hIMC)

Definition at line 652 of file msctfime.cpp.

654{
655 TRACE("(%p)\n", hIMC);
656
657 BOOL ret = FALSE;
658 CicIMCLock imcLock(hIMC);
659 if (SUCCEEDED(imcLock.m_hr))
660 ret = !!(imcLock.get().fdwInit & INIT_GUIDMAP);
661
662 return ret;
663}
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define INIT_GUIDMAP
Definition: immdev.h:179
int ret

◆ CtfImeIsIME()

EXTERN_C BOOL WINAPI CtfImeIsIME ( _In_ HKL  hKL)

Definition at line 874 of file msctfime.cpp.

876{
877 TRACE("(%p)\n", hKL);
878
879 if (IS_IME_HKL(hKL))
880 return TRUE;
881
882 TLS *pTLS = TLS::GetTLS();
883 if (!pTLS || !pTLS->m_pProfile)
884 return FALSE;
885
886 // The return value of CicProfile::IsIME is brain-damaged
887 return !pTLS->m_pProfile->IsIME(hKL);
888}
BOOL IsIME(HKL hKL)
Definition: profile.cpp:177
CicProfile * m_pProfile
Definition: tls.h:20

Referenced by CtfAImmIsIME().

◆ CtfImeProcessCicHotkey()

EXTERN_C HRESULT WINAPI CtfImeProcessCicHotkey ( _In_ HIMC  hIMC,
_In_ UINT  vKey,
_In_ LPARAM  lParam 
)

Definition at line 800 of file msctfime.cpp.

804{
805 TRACE("(%p, %u, %p)\n", hIMC, vKey, lParam);
806
807 TLS *pTLS = TLS::GetTLS();
808 if (!pTLS)
809 return S_OK;
810
811 HRESULT hr = S_OK;
812 ITfThreadMgr *pThreadMgr = NULL;
813 ITfThreadMgr_P *pThreadMgr_P = NULL;
814 if ((TF_GetThreadMgr(&pThreadMgr) == S_OK) &&
815 (pThreadMgr->QueryInterface(IID_ITfThreadMgr_P, (void**)&pThreadMgr_P) == S_OK) &&
817 {
818 HRESULT hr2;
819 if (SUCCEEDED(pThreadMgr_P->CallImm32HotkeyHandler(vKey, lParam, &hr2)))
820 hr = hr2;
821 }
822
823 if (pThreadMgr)
824 pThreadMgr->Release();
825 if (pThreadMgr_P)
826 pThreadMgr_P->Release();
827
828 return hr;
829}
BOOL WINAPI CtfImmIsCiceroStartedInThread(VOID)
Definition: ctf.c:781
#define NULL
Definition: types.h:112
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
ULONG Release()
nsrefcnt Release()
HRESULT WINAPI TF_GetThreadMgr(ITfThreadMgr **pptim)
Definition: msctf.c:628

Referenced by ImmProcessKey().

◆ CtfImeSelectEx()

EXTERN_C BOOL WINAPI CtfImeSelectEx ( _In_ HIMC  hIMC,
_In_ BOOL  fSelect,
_In_ HKL  hKL 
)

Definition at line 576 of file msctfime.cpp.

580{
581 TRACE("(%p, %d, %p)\n", hIMC, fSelect, hKL);
582
583 TLS *pTLS = TLS::PeekTLS();
584 if (!pTLS)
585 return E_OUTOFMEMORY;
586
587 InternalSelectEx(hIMC, fSelect, LOWORD(hKL));
588
589 if (!pTLS->m_pBridge || !pTLS->m_pThreadMgr)
590 return E_OUTOFMEMORY;
591
592 return pTLS->m_pBridge->SelectEx(pTLS, pTLS->m_pThreadMgr, hIMC, fSelect, hKL);
593}
HRESULT SelectEx(_Inout_ TLS *pTLS, _Inout_ ITfThreadMgr_P *pThreadMgr, _In_ HIMC hIMC, _In_ BOOL fSelect, _In_ HKL hKL)
Definition: bridge.cpp:210
static HRESULT InternalSelectEx(_In_ HIMC hIMC, _In_ BOOL fSelect, _In_ LANGID LangID)
Definition: msctfime.cpp:28

◆ CtfImeSetActiveContextAlways()

EXTERN_C HRESULT WINAPI CtfImeSetActiveContextAlways ( _In_ HIMC  hIMC,
_In_ BOOL  fActive,
_In_ HWND  hWnd,
_In_ HKL  hKL 
)

Definition at line 780 of file msctfime.cpp.

785{
786 TRACE("(%p, %d, %p, %p)\n", hIMC, fActive, hWnd, hKL);
787
788 TLS *pTLS = TLS::GetTLS();
789 if (!pTLS || !pTLS->m_pBridge)
790 return E_OUTOFMEMORY;
791 return pTLS->m_pBridge->SetActiveContextAlways(pTLS, hIMC, fActive, hWnd, hKL);
792}
HRESULT SetActiveContextAlways(TLS *pTLS, HIMC hIMC, BOOL fActive, HWND hWnd, HKL hKL)
Definition: bridge.cpp:622

Referenced by ImmSetActiveContext().

◆ CtfImeThreadDetach()

EXTERN_C HRESULT WINAPI CtfImeThreadDetach ( VOID  )

Definition at line 896 of file msctfime.cpp.

897{
898 ImeDestroy(0);
899 return S_OK;
900}
EXTERN_C BOOL WINAPI ImeDestroy(_In_ UINT uReserved)
Definition: msctfime.cpp:322

Referenced by DllMain().

◆ DetachIME()

VOID DetachIME ( VOID  )

@implemented

Definition at line 909 of file msctfime.cpp.

910{
912}
VOID UnregisterImeClass(VOID)
@implemented
Definition: ui.cpp:1396

Referenced by ProcessDetach().

◆ DllMain()

EXTERN_C BOOL WINAPI DllMain ( _In_ HINSTANCE  hinstDLL,
_In_ DWORD  dwReason,
_Inout_opt_ LPVOID  lpvReserved 
)

@implemented

Definition at line 963 of file msctfime.cpp.

967{
968 switch (dwReason)
969 {
971 {
972 TRACE("(%p, %lu, %p)\n", hinstDLL, dwReason, lpvReserved);
973 if (!ProcessAttach(hinstDLL))
974 {
975 ProcessDetach(hinstDLL);
976 return FALSE;
977 }
978 break;
979 }
981 {
982 ProcessDetach(hinstDLL);
983 break;
984 }
986 {
990 break;
991 }
992 }
993 return TRUE;
994}
DWORD dwReason
Definition: misc.cpp:154
static BOOL InternalDestroyTLS()
@implemented
Definition: tls.cpp:72
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
static IN DWORD IN LPVOID lpvReserved
EXTERN_C HRESULT WINAPI TF_DllDetachInOther(VOID)
BOOL ProcessAttach(HINSTANCE hinstDLL)
@implemented
Definition: msctfime.cpp:924
EXTERN_C HRESULT WINAPI CtfImeThreadDetach(VOID)
Definition: msctfime.cpp:896
VOID ProcessDetach(HINSTANCE hinstDLL)
@implemented
Definition: msctfime.cpp:945

◆ ImeConfigure()

EXTERN_C BOOL WINAPI ImeConfigure ( _In_ HKL  hKL,
_In_ HWND  hWnd,
_In_ DWORD  dwMode,
_Inout_opt_ LPVOID  lpData 
)

Definition at line 291 of file msctfime.cpp.

296{
297 TRACE("(%p, %p, %lu, %p)\n", hKL, hWnd, dwMode, lpData);
298
299 TLS *pTLS = TLS::GetTLS();
300 if (!pTLS || !pTLS->m_pBridge || !pTLS->m_pThreadMgr)
301 return FALSE;
302
303 auto pBridge = pTLS->m_pBridge;
304 auto pThreadMgr = pTLS->m_pThreadMgr;
305
306 if (dwMode & 0x1)
307 return (pBridge->ConfigureGeneral(pTLS, pThreadMgr, hKL, hWnd) == S_OK);
308
309 if (dwMode & 0x2)
310 return (pBridge->ConfigureRegisterWord(pTLS, pThreadMgr, hKL, hWnd, lpData) == S_OK);
311
312 return FALSE;
313}

◆ ImeConversionList()

EXTERN_C DWORD WINAPI ImeConversionList ( _In_ HIMC  hIMC,
_In_ LPCWSTR  lpSrc,
_Out_ LPCANDIDATELIST  lpDst,
_In_ DWORD  dwBufLen,
_In_ UINT  uFlag 
)

Definition at line 195 of file msctfime.cpp.

201{
202 TRACE("(%p, %s, %p, 0x%lX, %u)\n", hIMC, debugstr_w(lpSrc), lpDst, dwBufLen, uFlag);
203 return 0;
204}
#define debugstr_w
Definition: kernel32.h:32
_In_ HCRYPTHASH _In_ BOOL _In_ DWORD _Inout_ DWORD _In_ DWORD dwBufLen
Definition: wincrypt.h:4246

◆ ImeDestroy()

EXTERN_C BOOL WINAPI ImeDestroy ( _In_ UINT  uReserved)

Definition at line 322 of file msctfime.cpp.

324{
325 TRACE("(%u)\n", uReserved);
326
327 TLS *pTLS = TLS::PeekTLS();
328 if (pTLS)
329 return FALSE;
330
331 if (!pTLS->m_pBridge || !pTLS->m_pThreadMgr)
332 return FALSE;
333
335 return TRUE;
336
337 if (pTLS->m_pBridge->DeactivateIMMX(pTLS, pTLS->m_pThreadMgr) != S_OK)
338 return FALSE;
339
340 return pTLS->m_pBridge->UnInitIMMX(pTLS);
341}

Referenced by CtfImeThreadDetach().

◆ ImeEnumRegisterWord()

EXTERN_C UINT WINAPI ImeEnumRegisterWord ( _In_ REGISTERWORDENUMPROCW  lpfnEnumProc,
_In_opt_ LPCWSTR  lpszReading,
_In_ DWORD  dwStyle,
_In_opt_ LPCWSTR  lpszString,
_In_opt_ LPVOID  lpData 
)

Definition at line 272 of file msctfime.cpp.

278{
279 TRACE("(%p, %s, %lu, %s, %p)\n", lpfnEnumProc, debugstr_w(lpszReading),
280 dwStyle, debugstr_w(lpszString), lpData);
281 return 0;
282}

◆ ImeEscape()

EXTERN_C LRESULT WINAPI ImeEscape ( _In_ HIMC  hIMC,
_In_ UINT  uEscape,
_Inout_opt_ LPVOID  lpData 
)

Definition at line 353 of file msctfime.cpp.

357{
358 TRACE("(%p, %u, %p)\n", hIMC, uEscape, lpData);
359 return 0;
360}

◆ ImeGetRegisterWordStyle()

EXTERN_C UINT WINAPI ImeGetRegisterWordStyle ( _In_ UINT  nItem,
_Out_ LPSTYLEBUFW  lpStyleBuf 
)

Definition at line 254 of file msctfime.cpp.

257{
258 TRACE("(%u, %p)\n", nItem, lpStyleBuf);
259 return 0;
260}

◆ ImeInquire()

EXTERN_C BOOL WINAPI ImeInquire ( _Out_ LPIMEINFO  lpIMEInfo,
_Out_ LPWSTR  lpszWndClass,
_In_ DWORD  dwSystemInfoFlags 
)

Definition at line 176 of file msctfime.cpp.

180{
181 TRACE("(%p, %p, 0x%lX)\n", lpIMEInfo, lpszWndClass, dwSystemInfoFlags);
182 return FALSE;
183}

◆ ImeProcessKey()

EXTERN_C BOOL WINAPI ImeProcessKey ( _In_ HIMC  hIMC,
_In_ UINT  uVirtKey,
_In_ LPARAM  lParam,
_In_ CONST LPBYTE  lpbKeyState 
)

Definition at line 369 of file msctfime.cpp.

374{
375 TRACE("(%p, %u, %p, lpbKeyState)\n", hIMC, uVirtKey, lParam, lpbKeyState);
376
377 TLS *pTLS = TLS::GetTLS();
378 if (!pTLS)
379 return FALSE;
380
381 auto pBridge = pTLS->m_pBridge;
382 auto pThreadMgr = pTLS->m_pThreadMgr;
383 if (!pBridge || !pThreadMgr)
384 return FALSE;
385
386 if (pTLS->m_dwFlags1 & 0x1)
387 {
388 ITfDocumentMgr *pDocMgr = NULL;
389 pThreadMgr->GetFocus(&pDocMgr);
390 if (pDocMgr && !CicBridge::IsOwnDim(pDocMgr))
391 {
392 pDocMgr->Release();
393 return FALSE;
394 }
395
396 if (pDocMgr)
397 pDocMgr->Release();
398 }
399
401 if (((pTLS->m_dwFlags2 & 1) && MsimtfIsGuidMapEnable(hIMC, NULL)) ||
402 ((lParam & (KF_ALTDOWN << 16)) &&
404 IsVKDBEKey(uVirtKey)))
405 {
406 return FALSE;
407 }
408
409 INT nUnknown60 = 0;
410 return pBridge->ProcessKey(pTLS, pThreadMgr, hIMC, uVirtKey, lParam, lpbKeyState, &nUnknown60);
411}
static BOOL IsOwnDim(ITfDocumentMgr *pDocMgr)
@implemented
Definition: bridge.cpp:904
DWORD m_dwFlags2
Definition: tls.h:23
DWORD m_dwFlags1
Definition: tls.h:22
BOOL IsVKDBEKey(_In_ UINT uVirtKey)
@implemented
Definition: misc.cpp:116
BOOL MsimtfIsGuidMapEnable(_In_ HIMC hIMC, _Out_opt_ LPBOOL pbValue)
@implemented
Definition: misc.cpp:107
USHORT LANGID
Definition: mui.h:9
#define LANG_JAPANESE
Definition: nls.h:76
int32_t INT
Definition: typedefs.h:58
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_writes_opt_ NumCharacters PUSHORT _Inout_ PUSHORT _In_ UCHAR _In_opt_ USHORT LangID
Definition: wdfusb.h:1083
#define KF_ALTDOWN
Definition: winuser.h:2449

◆ ImeRegisterWord()

EXTERN_C BOOL WINAPI ImeRegisterWord ( _In_ LPCWSTR  lpszReading,
_In_ DWORD  dwStyle,
_In_ LPCWSTR  lpszString 
)

Definition at line 216 of file msctfime.cpp.

220{
221 TRACE("(%s, 0x%lX, %s)\n", debugstr_w(lpszReading), dwStyle, debugstr_w(lpszString));
222 return FALSE;
223}

◆ ImeSelect()

EXTERN_C BOOL WINAPI ImeSelect ( _In_ HIMC  hIMC,
_In_ BOOL  fSelect 
)

Definition at line 423 of file msctfime.cpp.

426{
427 TRACE("(%p, %u)\n", hIMC, fSelect);
428 return FALSE;
429}

◆ ImeSetActiveContext()

EXTERN_C BOOL WINAPI ImeSetActiveContext ( _In_ HIMC  hIMC,
_In_ BOOL  fFlag 
)

Definition at line 441 of file msctfime.cpp.

444{
445 TRACE("(%p, %u)\n", hIMC, fFlag);
446 return FALSE;
447}

◆ ImeSetCompositionString()

EXTERN_C BOOL WINAPI ImeSetCompositionString ( _In_ HIMC  hIMC,
_In_ DWORD  dwIndex,
_In_opt_ LPCVOID  lpComp,
_In_ DWORD  dwCompLen,
_In_opt_ LPCVOID  lpRead,
_In_ DWORD  dwReadLen 
)

Definition at line 517 of file msctfime.cpp.

524{
525 TRACE("(%p, 0x%lX, %p, 0x%lX, %p, 0x%lX)\n", hIMC, dwIndex, lpComp, dwCompLen,
526 lpRead, dwReadLen);
527
528 TLS *pTLS = TLS::GetTLS();
529 if (!pTLS)
530 return FALSE;
531
532 auto pBridge = pTLS->m_pBridge;
533 auto pThreadMgr = pTLS->m_pThreadMgr;
534 if (!pBridge || !pThreadMgr)
535 return FALSE;
536
537 return pBridge->SetCompositionString(pTLS, pThreadMgr, hIMC, dwIndex,
538 lpComp, dwCompLen, lpRead, dwReadLen);
539}

◆ ImeToAsciiEx()

EXTERN_C UINT WINAPI ImeToAsciiEx ( _In_ UINT  uVirtKey,
_In_ UINT  uScanCode,
_In_ CONST LPBYTE  lpbKeyState,
_Out_ LPTRANSMSGLIST  lpTransMsgList,
_In_ UINT  fuState,
_In_ HIMC  hIMC 
)

Definition at line 456 of file msctfime.cpp.

463{
464 TRACE("(%u, %u, %p, %p, %u, %p)\n", uVirtKey, uScanCode, lpbKeyState, lpTransMsgList,
465 fuState, hIMC);
466
467 TLS *pTLS = TLS::GetTLS();
468 if (!pTLS)
469 return 0;
470
471 auto pBridge = pTLS->m_pBridge;
472 auto pThreadMgr = pTLS->m_pThreadMgr;
473 if (!pBridge || !pThreadMgr)
474 return 0;
475
476 UINT ret = 0;
477 HRESULT hr = pBridge->ToAsciiEx(pTLS, pThreadMgr, uVirtKey, uScanCode, lpbKeyState,
478 lpTransMsgList, fuState, hIMC, &ret);
479 return ((hr == S_OK) ? ret : 0);
480}
unsigned int UINT
Definition: ndis.h:50

◆ ImeUnregisterWord()

EXTERN_C BOOL WINAPI ImeUnregisterWord ( _In_ LPCWSTR  lpszReading,
_In_ DWORD  dwStyle,
_In_ LPCWSTR  lpszString 
)

Definition at line 235 of file msctfime.cpp.

239{
240 TRACE("(%s, 0x%lX, %s)\n", debugstr_w(lpszReading), dwStyle, debugstr_w(lpszString));
241 return FALSE;
242}

◆ Inquire()

HRESULT Inquire ( _Out_ LPIMEINFO  lpIMEInfo,
_Out_ LPWSTR  lpszWndClass,
_In_ DWORD  dwSystemInfoFlags,
_In_ HKL  hKL 
)

Retrieves the IME information. @implemented

Definition at line 97 of file msctfime.cpp.

102{
103 if (!lpIMEInfo)
104 return E_OUTOFMEMORY;
105
106 StringCchCopyW(lpszWndClass, 64, L"MSCTFIME UI");
107 lpIMEInfo->dwPrivateDataSize = 0;
108
109 switch (LOWORD(hKL)) // Language ID
110 {
111 case MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT): // Japanese
112 {
113 lpIMEInfo->fdwProperty = IME_PROP_COMPLETE_ON_UNSELECT | IME_PROP_SPECIAL_UI |
116 lpIMEInfo->fdwConversionCaps = IME_CMODE_FULLSHAPE | IME_CMODE_KATAKANA |
118 lpIMEInfo->fdwSentenceCaps = IME_SMODE_CONVERSATION | IME_SMODE_PLAURALCLAUSE;
119 lpIMEInfo->fdwSelectCaps = SELECT_CAP_SENTENCE | SELECT_CAP_CONVERSION;
120 lpIMEInfo->fdwSCSCaps = SCS_CAP_SETRECONVERTSTRING | SCS_CAP_MAKEREAD |
122 lpIMEInfo->fdwUICaps = UI_CAP_ROT90;
123 break;
124 }
125 case MAKELANGID(LANG_KOREAN, SUBLANG_DEFAULT): // Korean
126 {
127 lpIMEInfo->fdwProperty = IME_PROP_COMPLETE_ON_UNSELECT | IME_PROP_SPECIAL_UI |
130 lpIMEInfo->fdwConversionCaps = IME_CMODE_FULLSHAPE | IME_CMODE_NATIVE;
131 lpIMEInfo->fdwSentenceCaps = 0;
132 lpIMEInfo->fdwSCSCaps = SCS_CAP_SETRECONVERTSTRING | SCS_CAP_COMPSTR;
133 lpIMEInfo->fdwSelectCaps = SELECT_CAP_CONVERSION;
134 lpIMEInfo->fdwUICaps = UI_CAP_ROT90;
135 break;
136 }
137 case MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED): // Simplified Chinese
138 case MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL): // Traditional Chinese
139 {
140 lpIMEInfo->fdwProperty = IME_PROP_SPECIAL_UI | IME_PROP_AT_CARET |
142 lpIMEInfo->fdwConversionCaps = IME_CMODE_FULLSHAPE | IME_CMODE_NATIVE;
143 lpIMEInfo->fdwSentenceCaps = SELECT_CAP_CONVERSION;
144 lpIMEInfo->fdwSelectCaps = 0;
145 lpIMEInfo->fdwSCSCaps = SCS_CAP_SETRECONVERTSTRING | SCS_CAP_MAKEREAD |
147 lpIMEInfo->fdwUICaps = UI_CAP_ROT90;
148 break;
149 }
150 default: // Otherwise
151 {
152 lpIMEInfo->fdwProperty = IME_PROP_UNICODE | IME_PROP_AT_CARET;
153 lpIMEInfo->fdwConversionCaps = 0;
154 lpIMEInfo->fdwSentenceCaps = 0;
155 lpIMEInfo->fdwSCSCaps = 0;
156 lpIMEInfo->fdwUICaps = 0;
157 lpIMEInfo->fdwSelectCaps = 0;
158 break;
159 }
160 }
161
162 return S_OK;
163}
#define IME_CMODE_KATAKANA
Definition: imm.h:343
#define IME_CMODE_NATIVE
Definition: imm.h:337
#define IME_SMODE_CONVERSATION
Definition: imm.h:361
#define IME_PROP_AT_CARET
Definition: imm.h:246
#define SCS_CAP_COMPSTR
Definition: imm.h:259
#define SELECT_CAP_CONVERSION
Definition: imm.h:264
#define IME_PROP_UNICODE
Definition: imm.h:249
#define SELECT_CAP_SENTENCE
Definition: imm.h:265
#define SCS_CAP_SETRECONVERTSTRING
Definition: imm.h:261
#define IME_PROP_SPECIAL_UI
Definition: imm.h:247
#define IME_SMODE_PLAURALCLAUSE
Definition: imm.h:357
#define SCS_CAP_MAKEREAD
Definition: imm.h:260
#define IME_PROP_COMPLETE_ON_UNSELECT
Definition: imm.h:250
#define IME_CMODE_FULLSHAPE
Definition: imm.h:345
#define UI_CAP_ROT90
Definition: imm.h:254
#define IME_PROP_NEED_ALTKEY
Definition: immdev.h:387
#define IME_PROP_KBD_CHAR_FIRST
Definition: immdev.h:385
#define L(x)
Definition: ntvdm.h:50
#define SUBLANG_CHINESE_TRADITIONAL
Definition: nls.h:208
#define SUBLANG_CHINESE_SIMPLIFIED
Definition: nls.h:209
#define LANG_CHINESE
Definition: nls.h:42
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149

Referenced by CtfImeInquireExW(), and CicInputContext::OnCleanupContext().

◆ InternalSelectEx()

static HRESULT InternalSelectEx ( _In_ HIMC  hIMC,
_In_ BOOL  fSelect,
_In_ LANGID  LangID 
)
static

Selects or unselects the input context. @implemented

Definition at line 28 of file msctfime.cpp.

32{
33 CicIMCLock imcLock(hIMC);
34 if (FAILED(imcLock.m_hr))
35 return imcLock.m_hr;
36
38 {
39 imcLock.get().cfCandForm[0].dwStyle = 0;
40 imcLock.get().cfCandForm[0].dwIndex = (DWORD)-1;
41 }
42
43 if (!fSelect)
44 {
45 imcLock.get().fdwInit &= ~INIT_GUIDMAP;
46 return imcLock.m_hr;
47 }
48
49 if (!imcLock.ClearCand())
50 return imcLock.m_hr;
51
52 // Populate conversion mode
53 if (!(imcLock.get().fdwInit & INIT_CONVERSION))
54 {
55 DWORD dwConv = (imcLock.get().fdwConversion & IME_CMODE_SOFTKBD);
56 if (LangID)
57 {
59 {
61 }
62 else if (PRIMARYLANGID(LangID) != LANG_KOREAN)
63 {
64 dwConv |= IME_CMODE_NATIVE;
65 }
66 }
67 imcLock.get().fdwConversion |= dwConv;
68 imcLock.get().fdwInit |= INIT_CONVERSION;
69 }
70
71 // Populate sentence mode
72 imcLock.get().fdwSentence |= IME_SMODE_PHRASEPREDICT;
73
74 // Populate LOGFONT
75 if (!(imcLock.get().fdwInit & INIT_LOGFONT))
76 {
77 // Get logical font
78 LOGFONTW lf;
79 HDC hDC = ::GetDC(imcLock.get().hWnd);
81 ::GetObjectW(hFont, sizeof(LOGFONTW), &lf);
82 ::ReleaseDC(imcLock.get().hWnd, hDC);
83
84 imcLock.get().lfFont.W = lf;
85 imcLock.get().fdwInit |= INIT_LOGFONT;
86 }
87 imcLock.get().lfFont.W.lfCharSet = GetCharsetFromLangId(LangID);
88
89 imcLock.InitContext();
90
91 return imcLock.m_hr;
92}
static HDC hDC
Definition: 3dtext.c:33
HFONT hFont
Definition: main.c:53
BYTE GetCharsetFromLangId(_In_ DWORD dwValue)
Definition: misc.cpp:84
unsigned long DWORD
Definition: ntddk_ex.h:95
#define IME_CMODE_ROMAN
Definition: imm.h:346
#define IME_CMODE_SOFTKBD
Definition: imm.h:349
#define IME_SMODE_PHRASEPREDICT
Definition: imm.h:360
#define INIT_LOGFONT
Definition: immdev.h:176
#define INIT_CONVERSION
Definition: immdev.h:174
if(dx< 0)
Definition: linetemp.h:194
static HDC
Definition: imagelist.c:92
#define DWORD
Definition: nt_native.h:44
#define OBJ_FONT
Definition: objidl.idl:1414
#define PRIMARYLANGID(l)
Definition: nls.h:16
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
Definition: dc.c:428
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by CtfImeSelectEx().

◆ NotifyIME()

EXTERN_C BOOL WINAPI NotifyIME ( _In_ HIMC  hIMC,
_In_ DWORD  dwAction,
_In_ DWORD  dwIndex,
_In_ DWORD_PTR  dwValue 
)

Definition at line 489 of file msctfime.cpp.

494{
495 TRACE("(%p, 0x%lX, 0x%lX, %p)\n", hIMC, dwAction, dwIndex, dwValue);
496
497 TLS *pTLS = TLS::GetTLS();
498 if (!pTLS)
499 return FALSE;
500
501 auto pBridge = pTLS->m_pBridge;
502 auto pThreadMgr = pTLS->m_pThreadMgr;
503 if (!pBridge || !pThreadMgr)
504 return FALSE;
505
506 HRESULT hr = pBridge->Notify(pTLS, pThreadMgr, hIMC, dwAction, dwIndex, dwValue);
507 return (hr == S_OK);
508}

◆ ProcessAttach()

BOOL ProcessAttach ( HINSTANCE  hinstDLL)

@implemented

Definition at line 924 of file msctfime.cpp.

925{
926 g_hInst = hinstDLL;
927
929
930 if (!TLS::Initialize())
931 return FALSE;
932
934
936
937 if (!TFInitLib())
938 return FALSE;
939
941 return AttachIME();
942}
EXTERN_C void cicGetOSInfo(LPUINT puACP, LPDWORD pdwOSInfo)
Definition: cicbase.cpp:82
EXTERN_C BOOL TFInitLib(FN_CoCreateInstance fnCoCreateInstance)
Definition: cicbase.cpp:251
void cicInitUIFLib(void)
Definition: cicuif.cpp:5459
static BOOL Initialize()
@implemented
Definition: tls.cpp:15
DWORD g_dwOSInfo
Definition: msctfime.cpp:15
BOOL AttachIME(VOID)
@implemented
Definition: msctfime.cpp:903
UINT g_uACP
Definition: msctfime.cpp:14
CRITICAL_SECTION g_csLock
Definition: msctfime.cpp:17
BOOL gfTFInitLib
Definition: msctfime.cpp:16
HINSTANCE g_hInst
Definition: msctfime.cpp:12
BOOL WINAPI InitializeCriticalSectionAndSpinCount(OUT LPCRITICAL_SECTION lpCriticalSection, IN DWORD dwSpinCount)
Definition: synch.c:765

Referenced by DllMain().

◆ ProcessDetach()

VOID ProcessDetach ( HINSTANCE  hinstDLL)

@implemented

Definition at line 945 of file msctfime.cpp.

946{
948
949 if (gfTFInitLib)
950 {
951 DetachIME();
952 TFUninitLib();
953 }
954
959}
void cicDoneUIFLib(void)
Definition: cicuif.cpp:5466
static VOID Uninitialize()
@implemented
Definition: tls.cpp:22
EXTERN_C VOID TFUninitLib(VOID)
Definition: msctfime.cpp:914
VOID DetachIME(VOID)
@implemented
Definition: msctfime.cpp:909
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)

Referenced by DllMain().

◆ TFUninitLib()

EXTERN_C VOID TFUninitLib ( VOID  )

Definition at line 914 of file msctfime.cpp.

915{
916 if (g_pPropCache)
917 {
918 delete g_pPropCache;
920 }
921}
CDispAttrPropCache * g_pPropCache
Definition: msctfime.cpp:18

Referenced by ProcessDetach().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctfime  )

Variable Documentation

◆ g_bWinLogon

BOOL g_bWinLogon = FALSE

Definition at line 13 of file msctfime.cpp.

Referenced by CtfImeCreateThreadMgr(), and CtfImeInquireExW().

◆ g_csLock

CRITICAL_SECTION g_csLock

Definition at line 17 of file msctfime.cpp.

Referenced by InitDisplayAttrbuteLib(), ProcessAttach(), and ProcessDetach().

◆ g_dwOSInfo

DWORD g_dwOSInfo = 0

Definition at line 15 of file msctfime.cpp.

Referenced by ProcessAttach().

◆ g_hInst

HINSTANCE g_hInst = NULL

Definition at line 12 of file msctfime.cpp.

Referenced by ProcessAttach().

◆ g_pPropCache

CDispAttrPropCache* g_pPropCache = NULL

Definition at line 18 of file msctfime.cpp.

Referenced by InitDisplayAttrbuteLib(), and TFUninitLib().

◆ g_uACP

UINT g_uACP = CP_ACP

Definition at line 14 of file msctfime.cpp.

Referenced by ProcessAttach().

◆ gfTFInitLib

BOOL gfTFInitLib = FALSE

Definition at line 16 of file msctfime.cpp.

Referenced by ProcessAttach(), and ProcessDetach().