Files
wufuc/wufuc_aihelper/aihelper.c
2017-07-03 18:55:41 -07:00

13 lines
310 B
C

#include <Windows.h>
#include <Msiquery.h>
#include <tchar.h>
UINT __stdcall AIHelper_SetUnloadEvent(MSIHANDLE hInstall) {
HANDLE hEvent = OpenEvent(EVENT_MODIFY_STATE, FALSE, _T("Global\\wufuc_UnloadEvent"));
if (hEvent) {
SetEvent(hEvent);
CloseHandle(hEvent);
}
return 1;
}