mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-30 18:24:36 +01:00
31 lines
556 B
C++
31 lines
556 B
C++
|
#include <Windows.h>
|
|||
|
|
|||
|
extern "C"
|
|||
|
{
|
|||
|
|
|||
|
HMODULE hModule = nullptr;
|
|||
|
|
|||
|
BOOL WINAPI DllMain(
|
|||
|
_In_ HINSTANCE hinstDLL,
|
|||
|
_In_ DWORD fdwReason,
|
|||
|
_In_ LPVOID lpvReserved
|
|||
|
)
|
|||
|
{
|
|||
|
switch (fdwReason)
|
|||
|
{
|
|||
|
case DLL_PROCESS_ATTACH:
|
|||
|
DisableThreadLibraryCalls(hinstDLL);
|
|||
|
hModule = hinstDLL;
|
|||
|
break;
|
|||
|
case DLL_THREAD_ATTACH:
|
|||
|
break;
|
|||
|
case DLL_THREAD_DETACH:
|
|||
|
break;
|
|||
|
case DLL_PROCESS_DETACH:
|
|||
|
break;
|
|||
|
}
|
|||
|
return TRUE;
|
|||
|
}
|
|||
|
|
|||
|
}
|