SetConsoleWindowInfo function Null safety kernel32
- int hConsoleOutput,
- int bAbsolute,
- Pointer<
SMALL_RECT> lpConsoleWindow
Sets the current size and position of a console screen buffer's window.
BOOL WINAPI SetConsoleWindowInfo(
_In_ HANDLE hConsoleOutput,
_In_ BOOL bAbsolute,
_In_ const SMALL_RECT *lpConsoleWindow
);
Implementation
int SetConsoleWindowInfo(
int hConsoleOutput, int bAbsolute, Pointer<SMALL_RECT> lpConsoleWindow) {
final _SetConsoleWindowInfo = _kernel32.lookupFunction<
Int32 Function(IntPtr hConsoleOutput, Int32 bAbsolute,
Pointer<SMALL_RECT> lpConsoleWindow),
int Function(int hConsoleOutput, int bAbsolute,
Pointer<SMALL_RECT> lpConsoleWindow)>('SetConsoleWindowInfo');
return _SetConsoleWindowInfo(hConsoleOutput, bAbsolute, lpConsoleWindow);
}