SetConsoleCursorInfo function Null safety kernel32
- int hConsoleOutput,
- Pointer<
CONSOLE_CURSOR_INFO> lpConsoleCursorInfo
Sets the size and visibility of the cursor for the specified console screen buffer.
BOOL WINAPI SetConsoleCursorInfo(
_In_ HANDLE hConsoleOutput,
_In_ const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo
);
Implementation
int SetConsoleCursorInfo(
int hConsoleOutput, Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo) {
final _SetConsoleCursorInfo = _kernel32.lookupFunction<
Int32 Function(IntPtr hConsoleOutput,
Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo),
int Function(int hConsoleOutput,
Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo)>(
'SetConsoleCursorInfo');
return _SetConsoleCursorInfo(hConsoleOutput, lpConsoleCursorInfo);
}