mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
26 lines
468 B
C++
26 lines
468 B
C++
#include <windows.h>
|
|
#include <iostream>
|
|
|
|
extern void entry();
|
|
|
|
extern "C" {
|
|
_declspec(dllexport) void onPostInit() {
|
|
std::ios::sync_with_stdio(false);
|
|
entry();
|
|
}
|
|
}
|
|
|
|
BOOL APIENTRY DllMain(HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
|
|
{
|
|
switch (ul_reason_for_call)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
case DLL_PROCESS_DETACH:
|
|
break;
|
|
}
|
|
return TRUE;
|
|
}
|
|
|