SetConsoleCtrlHandler method

int SetConsoleCtrlHandler(
  1. Pointer<NativeFunction<PHANDLER_ROUTINE>> HandlerRoutine,
  2. int Add
)

Implementation

int SetConsoleCtrlHandler(
  ffi.Pointer<ffi.NativeFunction<PHANDLER_ROUTINE>> HandlerRoutine,
  int Add,
) {
  return (_SetConsoleCtrlHandler ??= _dylib.lookupFunction<
      _c_SetConsoleCtrlHandler,
      _dart_SetConsoleCtrlHandler>('SetConsoleCtrlHandler'))(
    HandlerRoutine,
    Add,
  );
}