SetConsoleCursorInfo function kernel32
Win32Result<bool>
SetConsoleCursorInfo(
- HANDLE hConsoleOutput,
- Pointer<
CONSOLE_CURSOR_INFO> lpConsoleCursorInfo
Sets the size and visibility of the cursor for the specified console screen buffer.
To learn more, see learn.microsoft.com/windows/console/setconsolecursorinfo.
Implementation
Win32Result<bool> SetConsoleCursorInfo(
HANDLE hConsoleOutput,
Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo,
) {
resolveGetLastError();
final result_ = _SetConsoleCursorInfo(hConsoleOutput, lpConsoleCursorInfo);
return .new(value: result_ != FALSE, error: GetLastError());
}