网站首页  词典首页

请输入您要查询的函数:

 

术语 getconsoleoriginaltitle
释义 GetConsoleOriginalTitle
语法:
C++
DWORD WINAPI GetConsoleOriginalTitle(
__out LPTSTR lpConsoleTitle,
__in DWORD nSize
);
GetConsoleOriginalTitle功能
获取当前控制台窗口原来的标题。
参数
lpConsoleTitle [out]
一个缓冲区收到一个空结尾的字符串包含原始标题指针。在控制台的标题字符串的最大大小是64K。
nSize [in]
该lpConsoleTitle缓冲区的大小,以字符。
返回值
如果函数成功,返回值是复制到缓冲区的字符串的长度,以字符。
如果缓冲区不够大,存储的标题,返回值为零,而且GetLastError返回ERROR_SUCCESS。
如果函数失败,返回值为零,GetLastError返回错误代码。
备注
要设置控制台窗口中,使用SetConsoleTitle功能的标题。要检索目前的标题字符串,请使用GetConsoleTitle功能。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。有关详细信息,请参阅使用Windows头。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetConsoleOriginalTitleW(Unicode)和GetConsoleOriginalTitleA(ANSI)的
参见
控制台函数
GetConsoleTitle
SetConsoleTitle
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetConsoleOriginalTitle Function
Retrieves the original title for the current console window.
Syntax
C++
DWORD WINAPI GetConsoleOriginalTitle(
__out LPTSTR lpConsoleTitle,
__in DWORD nSize
);
Parameters
lpConsoleTitle [out]
A pointer to a buffer that receives a null-terminated string containing the original title. The maximum size of a console title string is 64K.
nSize [in]
The size of the lpConsoleTitle buffer, in characters.
Return Value
If the function succeeds, the return value is the length of the string copied to the buffer, in characters.
If the buffer is not large enough to store the title, the return value is zero and GetLastError returns ERROR_SUCCESS.
If the function fails, the return value is zero and GetLastError returns the error code.
Remarks
To set the title for a console window, use the SetConsoleTitle function. To retrieve the current title string, use the GetConsoleTitle function.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesGetConsoleOriginalTitleW (Unicode) and GetConsoleOriginalTitleA (ANSI)
See Also
Console Functions
GetConsoleTitle
SetConsoleTitle
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683168(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:18:26