BOOL SetConsoleTitle(lpszTitle) | |||||
LPTSTR lpszTitle; | /* address of new title | */ |
The SetConsoleTitle function sets the current console window title string.
lpszTitle
Points to a null-terminated string that will be used for the current console window title.
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.
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).
GetConsoleTitle