ResizePseudoConsole function Null safety kernel32

int ResizePseudoConsole(
  1. int hPC,
  2. COORD size

Resizes the internal buffers for a pseudoconsole to the given size.

HRESULT WINAPI ResizePseudoConsole(
  _In_ HPCON hPC ,
  _In_ COORD size


int ResizePseudoConsole(int hPC, COORD size) {
  final _ResizePseudoConsole = _kernel32.lookupFunction<
      Int32 Function(IntPtr hPC, COORD size),
      int Function(int hPC, COORD size)>('ResizePseudoConsole');
  return _ResizePseudoConsole(hPC, size);