mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 10:59:45 +00:00
[MSCTF] Implement CheckAnchorStore function (#8025)
Implementing missing features... JIRA issue: CORE-19361
This commit is contained in:
parent
0743ceefa2
commit
3194e0556f
1 changed files with 14 additions and 2 deletions
|
@ -49,6 +49,7 @@ BOOL gfSharedMemory = FALSE;
|
|||
LONG g_cRefDll = -1;
|
||||
BOOL g_fCUAS = FALSE;
|
||||
TCHAR g_szCUASImeFile[16] = { 0 };
|
||||
BOOL g_fNoITextStoreAnchor = TRUE;
|
||||
|
||||
// Messages
|
||||
UINT g_msgPrivate = 0;
|
||||
|
@ -481,11 +482,22 @@ BOOL InitLangChangeHotKey(VOID)
|
|||
}
|
||||
|
||||
/**
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
VOID CheckAnchorStores(VOID)
|
||||
{
|
||||
//FIXME
|
||||
HKEY hKey;
|
||||
LSTATUS error;
|
||||
error = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\CTF"), 0, KEY_READ, &hKey);
|
||||
if (error != ERROR_SUCCESS)
|
||||
return;
|
||||
|
||||
DWORD dwData = 0, cbData = sizeof(dwData);
|
||||
error = RegQueryValueEx(hKey, TEXT("EnableAnchorContext"), NULL, NULL, (PBYTE)&dwData, &cbData);
|
||||
if (error == ERROR_SUCCESS && cbData == sizeof(DWORD) && dwData == 1)
|
||||
g_fNoITextStoreAnchor = FALSE;
|
||||
|
||||
RegCloseKey(hKey);
|
||||
}
|
||||
|
||||
VOID InitCUASFlag(VOID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue