ConsoleAttributes.SetConsoleCursorInfo Method

Mentalis.org Proxy

Mentalis.org Proxy Documentation

ConsoleAttributes.SetConsoleCursorInfo Method 

The SetConsoleCursorInfo function sets the size and visibility of the cursor for the specified console screen buffer.

[Visual Basic]Friend Shared Function SetConsoleCursorInfo( _
   ByVal hConsoleOutput As Integer, _
   ByRef lpConsoleCursorInfo As Org.Mentalis.Utilities.ConsoleAttributes.CONSOLE_CURSOR_INFO _
) As Integer
[C#]
internal static int SetConsoleCursorInfo(
   int hConsoleOutput,
   ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo
);

Parameters

hConsoleOutput
Handle to a console screen buffer. The handle must have GENERIC_WRITE access.
lpConsoleCursorInfo
Pointer to a CONSOLE_CURSOR_INFO structure containing the new specifications for the screen buffer's cursor.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also

ConsoleAttributes Class | ConsoleAttributes Members | Org.Mentalis.Utilities.ConsoleAttributes Namespace