I am using following code from this post,
#include "WinUser.h"
void CALLBACK HandleWndEvent(HWINEVENTHOOK hWinEventHook, DWORD eventType,
HWND hWnd, LONG idObject, LONG idChild,
DWORD eventTypeThread, DWORD dwmsEventTime){
...
}
_hWinEventHook = ::SetWinEventHook(_eventMin,
_eventMax,
0,
HandleWndEvent,
0,
0, WINEVENT_OUTOFCONTEXT);
however, I cann't compile this code.
The error I get is:
How do I fix this?