SetWindowsHookA method

Pointer<HHOOK__> SetWindowsHookA(
  1. int nFilterType,
  2. Pointer<NativeFunction<HOOKPROC>> pfnFilterProc
)

Implementation

ffi.Pointer<HHOOK__> SetWindowsHookA(
  int nFilterType,
  ffi.Pointer<ffi.NativeFunction<HOOKPROC>> pfnFilterProc,
) {
  return (_SetWindowsHookA ??=
      _dylib.lookupFunction<_c_SetWindowsHookA, _dart_SetWindowsHookA>(
          'SetWindowsHookA'))(
    nFilterType,
    pfnFilterProc,
  );
}