Files
wufuc/wufuc_aihelper/aihelper.c
2017-08-27 19:33:03 -07:00

13 lines
312 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;
}