The GetConsoleTitle function retrieves the title bar string for the current console window.
DWORD GetConsoleTitle(
LPTSTR lpConsoleTitle, |
// address of buffer for title |
DWORD nSize |
// size of the buffer |
); |
If the function succeeds, the return value is the length, in characters, of the string copied to the buffer.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
To set the title bar string for a console window, use the SetConsoleTitle function.
Windows NT: This function uses either Unicode characters or 8-bit characters from the console's current codepage. The console's codepage defaults initially to the system's OEM codepage. To change the console's codepage, use the SetConsoleCP or SetConsoleOutputCP functions, or use the chcp or mode con cp select= commands.
SetConsoleCP, SetConsoleOutputCP, SetConsoleTitle
file: /Techref/os/win/api/win32/func/src/f29_11.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/27 05:00,
3.12.36.45:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f29_11.htm"> GetConsoleTitle</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.