mirror of
https://github.com/LegacyUpdate/LegacyUpdate.git
synced 2025-01-22 14:12:07 -05:00
20 lines
363 B
C
20 lines
363 B
C
#include <windows.h>
|
|
#include <nsis/pluginapi.h>
|
|
|
|
HINSTANCE g_hInstance;
|
|
HWND g_hwndParent;
|
|
|
|
EXTERN_C __declspec(dllexport)
|
|
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {
|
|
switch (dwReason) {
|
|
case DLL_PROCESS_ATTACH:
|
|
g_hInstance = hInstance;
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
g_hInstance = NULL;
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|