DisconnectNamedPipe function Null safety kernel32

int DisconnectNamedPipe(
  1. int hNamedPipe
)

Disconnects the server end of a named pipe instance from a client process.

BOOL DisconnectNamedPipe(
  HANDLE hNamedPipe);

Implementation

int DisconnectNamedPipe(int hNamedPipe) {
  final _DisconnectNamedPipe = _kernel32.lookupFunction<
      Int32 Function(IntPtr hNamedPipe),
      int Function(int hNamedPipe)>('DisconnectNamedPipe');
  return _DisconnectNamedPipe(hNamedPipe);
}