10#define WIN32_LEAN_AND_MEAN
11#define WIN32_NO_STATUS
103 DWORD dwLengthNeeded = 0;
190 #define StringFromGUID2T StringFromGUID2
191 #define debugstr_t debugstr_w
193 #define StringFromGUID2T StringFromGUID2A
194 #define debugstr_t debugstr_a
201 CicSystemModulePath ModPath;
204 ModPath.Init(pszExeFile, bSysWinDir);
205 if (!ModPath.m_cchPath)
253 ERR(
"E_INVALIDARG\n");
289 ERR(
"E_INVALIDARG\n");
319 CicSystemModulePath ModPath;
330 if (!ModPath.m_cchPath)
334 TEXT(
"rundll32.exe shell32.dll,Control_RunDLL %s"), ModPath.m_szPath);
366 TCHAR szLanguage[2], szLayout[2];
369 szLanguage[0] = szLayout[0] =
TEXT(
'3');
370 szLanguage[1] = szLayout[1] =
TEXT(
'\0');
382 szLanguage[0] =
TEXT(
'1');
388 szLanguage[0] =
TEXT(
'1');
392 szLanguage[0] =
TEXT(
'1');
398 szLayout[0] =
TEXT(
'1');
399 if (szLanguage[0] !=
TEXT(
'2'))
400 szLayout[0] =
TEXT(
'2');
402 szLayout[0] =
TEXT(
'3');
405 szLanguage[1] =
TEXT(
'\0');
406 szLayout[1] =
TEXT(
'\0');
409 if (szLanguage[0] == szLayout[0])
411 if (szLanguage[0] ==
TEXT(
'1'))
412 szLayout[0] =
TEXT(
'2');
413 else if (szLanguage[0] ==
TEXT(
'2'))
414 szLayout[0] =
TEXT(
'1');
416 szLayout[0] =
TEXT(
'3');
421 switch (szLanguage[0])
479 TRACE(
"HotKey: %c, %c\n", szLanguage[0], szLayout[0]);
513 TEXT(
"Software\\Microsoft\\Windows NT\\CurrentVersion\\IMM"));
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
EXTERN_C BOOL cicIsWow64(VOID)
EXTERN_C void cicGetOSInfo(LPUINT puACP, LPDWORD pdwOSInfo)
static void cicMemFree(LPVOID ptr)
#define CIC_OSINFO_XPPLUS
static LPVOID cicMemAllocClear(SIZE_T size)
LSTATUS QuerySz(LPCTSTR pszValueName, LPTSTR pszValue, DWORD cchValueMax)
LSTATUS SetDword(LPCTSTR pszValueName, DWORD dwValue)
LSTATUS Open(HKEY hKey, LPCTSTR lpSubKey, REGSAM samDesired=KEY_READ)
LSTATUS RecurseDeleteKey(LPCTSTR lpSubKey)
LSTATUS Create(HKEY hKey, LPCTSTR lpSubKey)
LSTATUS SetSzW(LPCWSTR pszValueName, LPCWSTR pszValue)
LSTATUS QueryDword(LPCTSTR pszValueName, LPDWORD pdwValue)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
BOOL WINAPI GetTokenInformation(HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
#define GetCurrentProcess()
#define WideCharToMultiByte
DWORD WINAPI TlsAlloc(VOID)
BOOL WINAPI TlsFree(IN DWORD Index)
LCID WINAPI GetSystemDefaultLCID(void)
TCHAR g_szCUASImeFile[16]
EXTERN_C VOID TFUninitLib(VOID)
BOOL StringFromGUID2A(REFGUID rguid, LPSTR pszGUID, INT cchGUID)
VOID CheckAnchorStores(VOID)
EXTERN_C HRESULT WINAPI TF_UnregisterLangBarAddIn(_In_ REFGUID rguid, _In_ DWORD dwFlags)
UINT g_msgCheckThreadInputIdel
LPTSTR GetUserSIDString(void)
CRITICAL_SECTION g_csDelayLoad
TCHAR g_szUserUnique[MAX_PATH]
static BOOL RunCPLSetting(LPCTSTR pszCmdLine)
BOOL ProcessAttach(HINSTANCE hinstDLL)
EXTERN_C HRESULT WINAPI TF_RegisterLangBarAddIn(_In_ REFGUID rguid, _In_ LPCWSTR pszFilePath, _In_ DWORD dwFlags)
UINT g_uLangHotKeyModifiers
UINT g_msgNuiMgrDirtyUpdate
void GetDesktopUniqueName(_In_ LPCTSTR pszName, _Out_ LPTSTR pszBuff, _In_ UINT cchBuff)
EXTERN_C HRESULT WINAPI TF_RunInputCPL(VOID)
UINT g_msgThreadTerminate
BOOL InitLangChangeHotKey(VOID)
UINT g_uKeyTipHotKeyVKey2
TCHAR g_szAsmListCache[MAX_PATH]
BOOL InitUserSidString(void)
BOOL InitUniqueString(void)
CicFileMappingStatic g_SharedMemory
TCHAR g_szTimListCache[MAX_PATH]
UINT g_uKeyTipHotKeyModifiers
UINT g_msgThreadItemChange
EXTERN_C BOOL WINAPI TF_IsCtfmonRunning(VOID)
BOOL FullPathExec(LPCTSTR pszExeFile, LPCTSTR pszCmdLine, UINT nCmdShow, BOOL bSysWinDir)
VOID ProcessDetach(HINSTANCE hinstDLL)
BOOL g_fDllProcessDetached
CRITICAL_SECTION g_csInDllMain
TCHAR g_szUserSidString[MAX_PATH]
TCHAR g_szLayoutsCache[MAX_PATH]
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
VOID UninitINAT(VOID)
@implemented
static const WCHAR szName[]
#define IsEqualGUID(rguid1, rguid2)
#define ConvertSidToStringSid
BOOL WINAPI InitializeCriticalSectionAndSpinCount(OUT LPCRITICAL_SECTION lpCriticalSection, IN DWORD dwSpinCount)
#define NORMAL_PRIORITY_CLASS
#define STARTF_USESHOWWINDOW
DWORD WINAPI GetCurrentThreadId(void)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
HDESK WINAPI GetThreadDesktop(_In_ DWORD)
HKL WINAPI GetKeyboardLayout(_In_ DWORD)
UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR)
#define SM_MIDEASTENABLED
int WINAPI GetSystemMetrics(_In_ int)
#define SW_SHOWMINNOACTIVE
#define GetUserObjectInformation
struct _TOKEN_USER * PTOKEN_USER