SetWindowsHookExW method

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

Implementation

ffi.Pointer<HHOOK__> SetWindowsHookExW(
  int idHook,
  ffi.Pointer<ffi.NativeFunction<HOOKPROC>> lpfn,
  ffi.Pointer<HINSTANCE__> hmod,
  int dwThreadId,
) {
  return (_SetWindowsHookExW ??=
      _dylib.lookupFunction<_c_SetWindowsHookExW, _dart_SetWindowsHookExW>(
          'SetWindowsHookExW'))(
    idHook,
    lpfn,
    hmod,
    dwThreadId,
  );
}