Go to the source code of this file.
|
BOOLEAN | DllShutdownInProgress (VOID) |
|
BOOL | IsEALang (_In_opt_ LANGID LangID) |
|
BOOL | IsInteractiveUserLogon (VOID) |
|
BYTE | GetCharsetFromLangId (_In_ DWORD dwValue) |
|
HIMC | GetActiveContext (VOID) |
|
BOOL | MsimtfIsGuidMapEnable (_In_ HIMC hIMC, _Out_opt_ LPBOOL pbValue) |
| @implemented
|
|
BOOL | IsVKDBEKey (_In_ UINT uVirtKey) |
| @implemented
|
|
ITfCategoryMgr * | GetUIMCat (PCIC_LIBTHREAD pLibThread) |
| @implemented
|
|
HRESULT | InitDisplayAttrbuteLib (PCIC_LIBTHREAD pLibThread) |
| @implemented
|
|
HRESULT | UninitDisplayAttrbuteLib (PCIC_LIBTHREAD pLibThread) |
| @implemented
|
|
HRESULT | GetCompartment (IUnknown *pUnknown, REFGUID rguid, ITfCompartment **ppComp, BOOL bThread) |
| @implemented
|
|
HRESULT | SetCompartmentDWORD (TfEditCookie cookie, IUnknown *pUnknown, REFGUID rguid, DWORD dwValue, BOOL bThread) |
| @implemented
|
|
HRESULT | GetCompartmentDWORD (IUnknown *pUnknown, REFGUID rguid, LPDWORD pdwValue, BOOL bThread) |
| @implemented
|
|
HRESULT | SetCompartmentUnknown (TfEditCookie cookie, IUnknown *pUnknown, REFGUID rguid, IUnknown *punkValue) |
| @implemented
|
|
HRESULT | ClearCompartment (TfClientId tid, IUnknown *pUnknown, REFGUID rguid, BOOL bThread) |
| @implemented
|
|
◆ ClearCompartment()
@implemented
Definition at line 331 of file misc.cpp.
336{
339
341 if (bThread)
342 {
346
347 hr = pThreadMgr->GetGlobalCompartment(&
pCompMgr);
348 }
349 else
350 {
352 }
353
355 {
358 {
361 }
362 }
363
364 if (pThreadMgr)
366
368}
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static nsIComponentManager * pCompMgr
Referenced by CicInputContext::DestroyInputContext().
◆ DllShutdownInProgress()
This function calls ntdll!RtlDllShutdownInProgress. It can detect the system is shutting down or not. @implemented
Definition at line 42 of file misc.cpp.
43{
46
47 if (s_fnDllShutdownInProgress)
48 return s_fnDllShutdownInProgress();
49
51 s_fnDllShutdownInProgress =
53 if (!s_fnDllShutdownInProgress)
55
56 return s_fnDllShutdownInProgress();
57}
EXTERN_C HINSTANCE cicGetSystemModuleHandle(_In_ LPCTSTR pszFileName, _In_ BOOL bSysWinDir)
BOOLEAN(WINAPI * FN_DllShutdownInProgress)(VOID)
#define GetProcAddress(x, y)
Referenced by TLS::InternalAllocateTLS(), and CFunctionProviderBase::~CFunctionProviderBase().
◆ GetActiveContext()
◆ GetCharsetFromLangId()
Gets the charset from a language ID. @implemented
Definition at line 84 of file misc.cpp.
85{
88 return 0;
89 return info.ciCharset;
90}
BOOL WINAPI TranslateCharsetInfo(_Inout_ PDWORD, _Out_ LPCHARSETINFO, _In_ DWORD)
Referenced by InternalSelectEx().
◆ GetCompartment()
◆ GetCompartmentDWORD()
@implemented
Definition at line 285 of file misc.cpp.
290{
291 *pdwValue = 0;
292
297
301 *pdwValue =
V_I4(&vari);
302
305}
HRESULT GetCompartment(IUnknown *pUnknown, REFGUID rguid, ITfCompartment **ppComp, BOOL bThread)
@implemented
HRESULT GetValue([out] VARIANT *pvarValue)
Referenced by CicBridge::IsOwnDim().
◆ GetUIMCat()
@implemented
Definition at line 129 of file misc.cpp.
130{
131 if (!pLibThread)
133
136
139 {
141 }
143}
HRESULT cicCoCreateInstance(_In_ REFCLSID rclsid, _In_ LPUNKNOWN pUnkOuter, _In_ DWORD dwClsContext, _In_ REFIID iid, _Out_ LPVOID *ppv)
EXTERN_C const CLSID CLSID_TF_CategoryMgr
ITfCategoryMgr * m_pCategoryMgr
Referenced by LibEnumItemsInCategory().
◆ InitDisplayAttrbuteLib()
@implemented
Definition at line 156 of file misc.cpp.
157{
158 if (!pLibThread)
160
162 {
165 }
166
168 IID_ITfDisplayAttributeMgr,
170 {
172 }
173
176
178
181 {
184 {
188 {
191 }
193 }
194 }
196
198}
BOOL Add(const T_ITEM &item)
static HRESULT LibEnumItemsInCategory(PCIC_LIBTHREAD pLibThread, REFGUID rguid, IEnumGUID **ppEnum)
@implemented
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] GUID *rgelt, [out] ULONG *pceltFetched)
EXTERN_C const GUID GUID_PROP_ATTRIBUTE
EXTERN_C const CLSID CLSID_TF_DisplayAttributeMgr
CRITICAL_SECTION g_csLock
CDispAttrPropCache * g_pPropCache
CicArray< GUID > CDispAttrPropCache
#define IsEqualGUID(rguid1, rguid2)
ITfDisplayAttributeMgr * m_pDisplayAttrMgr
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
Referenced by CicBridge::InitIMMX().
◆ IsEALang()
East-Asian language? @implemented
Definition at line 14 of file misc.cpp.
15{
17 {
21
23 }
24
26 {
31
32 default:
34 }
35}
HRESULT GetLangId(_Out_ LANGID *pLangID)
@implemented
static TLS * GetTLS()
@implemented
_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
Referenced by UIComposition::CreateCompButtonWnd(), and CicBridge::SetActiveContextAlways().
◆ IsInteractiveUserLogon()
This function checks if the current user logon session is interactive. @implemented
Definition at line 61 of file misc.cpp.
62{
66
68 0, 0, 0, 0, 0, 0, 0, &
pSid))
69 {
72 }
73
75
78
79 return bOK && IsMember;
80}
BOOL WINAPI CheckTokenMembership(IN HANDLE ExistingTokenHandle, IN PSID SidToCheck, OUT PBOOL IsMember)
BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, BYTE nSubAuthorityCount, DWORD nSubAuthority0, DWORD nSubAuthority1, DWORD nSubAuthority2, DWORD nSubAuthority3, DWORD nSubAuthority4, DWORD nSubAuthority5, DWORD nSubAuthority6, DWORD nSubAuthority7, PSID *pSid)
PVOID WINAPI FreeSid(PSID pSid)
DWORD WINAPI GetLastError(void)
#define SECURITY_INTERACTIVE_RID
#define SECURITY_NT_AUTHORITY
Referenced by CtfImeInquireExW().
◆ IsVKDBEKey()
@implemented
Definition at line 116 of file misc.cpp.
117{
118 switch (uVirtKey)
119 {
123 default:
125 }
126}
Referenced by ImeProcessKey().
◆ MsimtfIsGuidMapEnable()
@implemented
Definition at line 107 of file misc.cpp.
108{
110 if (!cicGetFN(
g_hMSIMTF, s_fn,
L"msimtf.dll",
"MsimtfIsGuidMapEnable"))
112 return s_fn(hIMC, pbValue);
113}
BOOL(WINAPI * FN_MsimtfIsGuidMapEnable)(HIMC hIMC, LPBOOL pbValue)
Referenced by ImeProcessKey().
◆ SetCompartmentDWORD()
◆ SetCompartmentUnknown()
◆ UninitDisplayAttrbuteLib()