GetConsoleCursorInfo function Null safety kernel32
- int hConsoleOutput,
- Pointer<
CONSOLE_CURSOR_INFO> lpConsoleCursorInfo
Retrieves information about the size and visibility of the cursor for the specified console screen buffer.
BOOL WINAPI GetConsoleCursorInfo(
_In_ HANDLE hConsoleOutput,
_Out_ PCONSOLE_CURSOR_INFO lpConsoleCursorInfo
);
Implementation
int GetConsoleCursorInfo(
int hConsoleOutput, Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo) {
final _GetConsoleCursorInfo = _kernel32.lookupFunction<
Int32 Function(IntPtr hConsoleOutput,
Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo),
int Function(int hConsoleOutput,
Pointer<CONSOLE_CURSOR_INFO> lpConsoleCursorInfo)>(
'GetConsoleCursorInfo');
return _GetConsoleCursorInfo(hConsoleOutput, lpConsoleCursorInfo);
}