FreeConsole function Null safety kernel32

int FreeConsole()

Detaches the calling process from its console.

BOOL WINAPI FreeConsole(void);

Implementation

int FreeConsole() {
  final _FreeConsole =
      _kernel32.lookupFunction<Int32 Function(), int Function()>('FreeConsole');
  return _FreeConsole();
}