[This is preliminary documentation and subject to change.]
Application-defined callback function called by USER in response to events generated by an accessible object. This is a function prototype for conceptual presentation; actual callback functions in your code would accept the same parameters and return a VOID, but need not have an identical label.
VOID CALLBACK WinEventProc(
HWINEVENTHOOK hWinEventHook,
DWORD event,
HWND hwnd,
LONG idObject,
LONG idChild,
DWORD dwEventThread,
DWORD dwmsEventTime
);
An Active Accessibility client requests specific types of event notifications by calling the SetWinEventHook function.
You can create multiple callback functions to handle different events. For more information, see About the WinEventProc Callback Function.
WINEVENTPROC, SetWinEventHook