SetWinEventHook method

Pointer<HWINEVENTHOOK__> SetWinEventHook(
  1. int eventMin,
  2. int eventMax,
  3. Pointer<HINSTANCE__> hmodWinEventProc,
  4. Pointer<NativeFunction<WINEVENTPROC>> pfnWinEventProc,
  5. int idProcess,
  6. int idThread,
  7. int dwFlags,
)

Implementation

ffi.Pointer<HWINEVENTHOOK__> SetWinEventHook(
  int eventMin,
  int eventMax,
  ffi.Pointer<HINSTANCE__> hmodWinEventProc,
  ffi.Pointer<ffi.NativeFunction<WINEVENTPROC>> pfnWinEventProc,
  int idProcess,
  int idThread,
  int dwFlags,
) {
  return (_SetWinEventHook ??=
      _dylib.lookupFunction<_c_SetWinEventHook, _dart_SetWinEventHook>(
          'SetWinEventHook'))(
    eventMin,
    eventMax,
    hmodWinEventProc,
    pfnWinEventProc,
    idProcess,
    idThread,
    dwFlags,
  );
}