SetConsoleTitle

  BOOL SetConsoleTitle(lpszTitle)    
  LPTSTR lpszTitle; /* address of new title */

The SetConsoleTitle function sets the current console window title string.

Parameters

lpszTitle

Points to a null-terminated string that will be used for the current console window title.

Return Value

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.

Comments

The SetConsoleTitle function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).

See Also

GetConsoleTitle