Sets the cursor used by the console window
Syntax
BOOL WINAPI SetConsoleCursor (
HANDLE hConsole,
HCURSOR hCursor
)
Parameters
- hConsole
- Handle to the screen buffer whose cursor is to be changed
- hCursor
- The cursor to set or NULL for the default
Return Value
Nonzero if the function succeeds, zero if it fails. More information is abailable by calling GetLastError.
Remarks
The cursor will be displayed when the mouse is over the console window and the hConsole screen buffer is active. The cursor can be hidden and reshown using the ShowConsoleCursor function.