SetWindowsHookW method

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

Implementation

ffi.Pointer<HHOOK__> SetWindowsHookW(
  int nFilterType,
  ffi.Pointer<ffi.NativeFunction<HOOKPROC>> pfnFilterProc,
) {
  return (_SetWindowsHookW ??=
      _dylib.lookupFunction<_c_SetWindowsHookW, _dart_SetWindowsHookW>(
          'SetWindowsHookW'))(
    nFilterType,
    pfnFilterProc,
  );
}