ConsoleAttributes.SetConsoleTitle Method

Mentalis.org Proxy

Mentalis.org Proxy Documentation

ConsoleAttributes.SetConsoleTitle Method 

The SetConsoleTitle function sets the title bar string for the current console window.

[Visual Basic]Friend Shared Function SetConsoleTitle( _
   ByVal lpConsoleTitle As String _
) As Integer
[C#]
internal static int SetConsoleTitle(
   string lpConsoleTitle
);

Parameters

lpConsoleTitle
Pointer to a null-terminated string that contains the string to appear in the title bar of the console window.

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