ShowConsoleCursor

Go to Home Page

Displays or hides the cursor while the mouse is over the console window

Syntax

int WINAPI ShowConsoleCursor (
    HANDLE hConsoleOutput,
    BOOL bShow
)

Parameters

hConsoleOutput
Handle to the screen buffer to enable or disable the cursor for
bShow
Non-zero to show the cursor (increase the reference count), zero to hide it

Return Value

The reference counter for the cursor

Remarks

If the reference count is below zero then the cursor will not be displayed when it enters the console window referenced by hConsoleOutput.