mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
[CTFMON][MSCTFIME][SDK] Improve cicGetOSInfo
and s/OSINFO_/CIC_OSINFO/. Adapt ctfmon and msctfime to these changes. CORE-19360
This commit is contained in:
parent
96d525959b
commit
c4308d1e49
5 changed files with 41 additions and 24 deletions
|
@ -55,7 +55,7 @@ CLoaderWnd::WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
case WM_QUERYENDSESSION:
|
||||
// NOTE: We don't support Win95/98/Me
|
||||
#ifdef SUPPORT_WIN9X
|
||||
if (!(g_dwOsInfo & OSINFO_NT) && (!g_fWinLogon || (lParam & ENDSESSION_LOGOFF)))
|
||||
if (!(g_dwOsInfo & CIC_OSINFO_NT) && (!g_fWinLogon || (lParam & ENDSESSION_LOGOFF)))
|
||||
{
|
||||
ClosePopupTipbar();
|
||||
TF_UninitSystem();
|
||||
|
|
|
@ -41,7 +41,7 @@ CRegWatcher::Init()
|
|||
{
|
||||
// NOTE: We don't support Win95/98/Me
|
||||
#ifdef SUPPORT_WIN9X
|
||||
if (!(g_dwOsInfo & OSINFO_NT))
|
||||
if (!(g_dwOsInfo & CIC_OSINFO_NT))
|
||||
s_WatchEntries[WI_RUN].hRootKey = HKEY_LOCAL_MACHINE;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -177,9 +177,8 @@ InitApp(
|
|||
{
|
||||
g_hInst = hInstance; // Save the instance handle
|
||||
|
||||
g_uACP = ::GetACP(); // Save the active codepage
|
||||
g_bOnWow64 = cicIsWow64(); // Is the current process on WoW64?
|
||||
g_dwOsInfo = cicGetOSInfo(); // Get OS info
|
||||
cicGetOSInfo(&g_uACP, &g_dwOsInfo); // Get OS info
|
||||
|
||||
// Create a mutex for Cicero
|
||||
g_hCicMutex = TF_CreateCicLoadMutex(&g_fWinLogon);
|
||||
|
@ -190,7 +189,7 @@ InitApp(
|
|||
WriteRegRun();
|
||||
|
||||
// Call SetProcessShutdownParameters if possible
|
||||
if (g_dwOsInfo & OSINFO_NT)
|
||||
if (g_dwOsInfo & CIC_OSINFO_NT)
|
||||
{
|
||||
g_hKernel32 = cicGetSystemModuleHandle(L"kernel32.dll", FALSE);
|
||||
g_fnSetProcessShutdownParameters =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue