GetLargestConsoleWindowSize function Null safety kernel32

COORD GetLargestConsoleWindowSize (
  1. int hConsoleOutput
)

Retrieves the size of the largest possible console window, based on the current font and the size of the display.

COORD WINAPI GetLargestConsoleWindowSize(
  _In_ HANDLE hConsoleOutput
);

Implementation

COORD GetLargestConsoleWindowSize(int hConsoleOutput) {
  final _GetLargestConsoleWindowSize = _kernel32.lookupFunction<
      COORD Function(IntPtr hConsoleOutput),
      COORD Function(int hConsoleOutput)>('GetLargestConsoleWindowSize');
  return _GetLargestConsoleWindowSize(hConsoleOutput);
}