Files
msime-windows/windows/src/DllMain.cpp
T
Evan Hu 253b068984 refactor: move the Windows TSF frontend under windows/
Preparation for folding Server, UI, UiHtml, Installer, ImeLog and TsfEditControl into this repository. The Windows tip's own sources, build files and local build scripts move under windows/ so every component sits at the same level. Product-level files stay at the root: the lock, the release manifest, the shared CI scripts, the integration tests, the docs and the Engine submodule.
2026-09-06 02:24:27 +09:00

44 lines
799 B
C++

#include "Private.h"
#include "Globals.h"
//+---------------------------------------------------------------------------
//
// DllMain
//
//----------------------------------------------------------------------------
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID pvReserved)
{
pvReserved;
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
Global::dllInstanceHandle = hInstance;
if (!InitializeCriticalSectionAndSpinCount(&Global::CS, 0))
{
return FALSE;
}
break;
case DLL_PROCESS_DETACH:
DeleteCriticalSection(&Global::CS);
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}