1 #define WIN32_NO_STATUS
2 #define _INC_WINDOWS
3 #define COM_NO_WINDOWS_H
4 
5 #include <windows.h>
6 
7 BOOL WINAPI
8 DllMain(IN HINSTANCE hDllHandle,
9         IN DWORD dwReason,
10         IN LPVOID lpvReserved)
11 {
12     if (dwReason == DLL_PROCESS_ATTACH)
13     {
14         HANDLE hEvent = OpenEventA(EVENT_MODIFY_STATE, FALSE, "Local\\shlwapi_apitest_evt");
15         if (hEvent != NULL)
16         {
17             SetEvent(hEvent);
18             CloseHandle(hEvent);
19         }
20         else
21         {
22             OutputDebugStringA("ERROR: NO EVENT FOUND!\n");
23         }
24     }
25 
26     return TRUE;
27 }
28