ConnectNamedPipe function Null safety kernel32

int ConnectNamedPipe(
  1. int hNamedPipe,
  2. Pointer<OVERLAPPED> lpOverlapped

Enables a named pipe server process to wait for a client process to connect to an instance of a named pipe. A client process connects by calling either the CreateFile or CallNamedPipe function.

BOOL ConnectNamedPipe(
  HANDLE       hNamedPipe,
  LPOVERLAPPED lpOverlapped);


int ConnectNamedPipe(int hNamedPipe, Pointer<OVERLAPPED> lpOverlapped) {
  final _ConnectNamedPipe = _kernel32.lookupFunction<
      Int32 Function(IntPtr hNamedPipe, Pointer<OVERLAPPED> lpOverlapped),
      int Function(int hNamedPipe,
          Pointer<OVERLAPPED> lpOverlapped)>('ConnectNamedPipe');
  return _ConnectNamedPipe(hNamedPipe, lpOverlapped);