NotifyWinEvent function user32

void NotifyWinEvent(
  1. int event,
  2. int hwnd,
  3. int idObject,
  4. int idChild
)

Signals the system that a predefined event occurred. If any client applications have registered a hook function for the event, the system calls the client's hook function.

void NotifyWinEvent(
  DWORD event,
  HWND  hwnd,
  LONG  idObject,
  LONG  idChild
);

Implementation

void NotifyWinEvent(int event, int hwnd, int idObject, int idChild) =>
    _NotifyWinEvent(event, hwnd, idObject, idChild);