wxhelper/src/dllMain.cc
2023-02-21 16:24:39 +08:00

26 lines
481 B
C++

#include "pch.h"
#include "api.h"
#include "common.h"
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call,
LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH: {
http_start(19088);
break;
}
case DLL_THREAD_ATTACH: {
break;
}
case DLL_THREAD_DETACH: {
break;
}
case DLL_PROCESS_DETACH: {
CloseConsole();
http_close();
break;
}
}
return TRUE;
}