mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-05 18:09:24 +08:00
26 lines
481 B
C++
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;
|
|
}
|