SetWindowsHookExA method

Pointer<HHOOK__> SetWindowsHookExA(
  1. int idHook,
  2. Pointer<NativeFunction<HOOKPROC>> lpfn,
  3. Pointer<HINSTANCE__> hmod,
  4. int dwThreadId,
)

Implementation

ffi.Pointer<HHOOK__> SetWindowsHookExA(
  int idHook,
  ffi.Pointer<ffi.NativeFunction<HOOKPROC>> lpfn,
  ffi.Pointer<HINSTANCE__> hmod,
  int dwThreadId,
) {
  return (_SetWindowsHookExA ??=
      _dylib.lookupFunction<_c_SetWindowsHookExA, _dart_SetWindowsHookExA>(
          'SetWindowsHookExA'))(
    idHook,
    lpfn,
    hmod,
    dwThreadId,
  );
}