[CTFMON][MSCTFIME][SDK] Refactoring on Cicero design

CORE-19362
This commit is contained in:
Katayama Hirofumi MZ 2023-12-23 09:34:41 +09:00
parent 50755684cf
commit eb72347672
3 changed files with 133 additions and 31 deletions

View file

@ -180,6 +180,9 @@ InitApp(
g_bOnWow64 = cicIsWow64(); // Is the current process on WoW64?
cicGetOSInfo(&g_uACP, &g_dwOsInfo); // Get OS info
// Initialize Cicero
TFInitLib();
// Create a mutex for Cicero
g_hCicMutex = TF_CreateCicLoadMutex(&g_fWinLogon);
if (!g_hCicMutex)
@ -234,6 +237,9 @@ UninitApp(VOID)
// Close TIP Bar Popup
ClosePopupTipbar();
// Release Cicero
TFUninitLib();
// Close the mutex
::CloseHandle(g_hCicMutex);
g_hCicMutex = NULL;