mirror of
https://github.com/laomms/wxhelper.git
synced 2024-12-23 02:59:22 +08:00
26 lines
600 B
C++
26 lines
600 B
C++
|
|
|
|
#include "wxhelper.h"
|
|
BOOL APIENTRY DllMain(HMODULE module, DWORD ul_reason_for_call,
|
|
LPVOID reserved) {
|
|
switch (ul_reason_for_call) {
|
|
case DLL_PROCESS_ATTACH: {
|
|
OutputDebugString("start\n");
|
|
DisableThreadLibraryCalls(module);
|
|
wxhelper::WxHelper::GetInstance().init(module);
|
|
break;
|
|
}
|
|
case DLL_THREAD_ATTACH: {
|
|
break;
|
|
}
|
|
case DLL_THREAD_DETACH: {
|
|
break;
|
|
}
|
|
case DLL_PROCESS_DETACH: {
|
|
OutputDebugString("end\n");
|
|
wxhelper::WxHelper::GetInstance().finally();
|
|
break;
|
|
}
|
|
}
|
|
return TRUE;
|
|
} |