BOOL GetConsoleCursorInfo(hConsoleOutput, pcci) | |||||
HANDLE hConsoleOutput; | /* identifies the screen buffer | */ | |||
PCONSOLE_CURSOR_INFO pcci; | /* address of cursor information | */ |
The GetConsoleCursorInfo function retrieves the size and visibility of the cursor for the specified console screen buffer.
hConsoleOutput
Specifies an open handle with GENERIC_READ access to a console screen buffer.
pcci
Points to a CONSOLE_CURSOR_INFO structure in which information about the console's cursor is returned.
The CONSOLE_CURSOR_INFO structure has the following form:
typedef struct _CONSOLE_CURSOR_INFO { /* cci */
DWORD dwSize;
BOOL bVisible;
} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO;
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
SetConsoleCursorInfo