什么是真正的AttachConsole最低版本要求? [英] What are real minimum version requirements for AttachConsole?

查看:231
本文介绍了什么是真正的AttachConsole最低版本要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在线PSDK文档指出5.1(操作系统):

Online PSDK documentation states 5.1 (WinXP):

要编译使用此功能的应用,定义_WIN32_WINNT
  为0x0501或更高版本。欲了解更多信息,请参阅使用Windows
  头。

To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers.

最低支持的客户端:Windows XP中[桌面应用程序仅]

Minimum supported client: Windows XP [desktop apps only]

最低支持的服务器:Windows Server 2003中[桌面应用程序仅]

Minimum supported server: Windows Server 2003 [desktop apps only]

PSDK文档的较早的本地副本隐约上面有异议的,并试图说明无论是5.0(Win2k的)或5.1:


Older local copy of PSDK doc vaguely disagrees with above, and attempts to state either 5.0 (Win2k) or 5.1:

要编译使用此功能的应用,定义_WIN32_WINNT
  如在0x0500或更高版本。有关详细信息,请参阅使用SDK头。

To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the SDK Headers.

客户端:需要Windows Vista或Windows XP的结果。
  服务器:需要Windows ServerLonghorn的或Windows Server 2003

Client: Requires Windows Vista or Windows XP.
Server: Requires Windows Server "Longhorn" or Windows Server 2003.

最后,PSDK头文件(而不是老了)的倡导Win2k的:


Finally, PSDK headers (rather old too) are advocating for Win2k:

#if(_WIN32_WINNT >= 0x0500)
WINBASEAPI
BOOL
WINAPI
AttachConsole(
    __in DWORD dwProcessId);

#define ATTACH_PARENT_PROCESS ((DWORD)-1)

#endif /* _WIN32_WINNT >= 0x0500 */


我没有什么比的WinXP SP3年长方便检查 KERNEL32.DLL 导出目录,所以请赐教什么是最小的真正支持的版本, 5.0 5.1


I dont have anything older than WinXP SP3 handy to examine kernel32.dll export directory, so please enlighten me what is minimum supported version for real, 5.0 or 5.1?

推荐答案

所需的最小客户端是Windows 2000(在0x0500)。究其原因,不匹配的信息是,在MSDN得到更新。根据更新是否之前或Windows 2000的EOL发生后,客户的要求任一列表Windows XP或Windows 2000。

The minimum required client is Windows 2000 (0x0500). The reason for the mismatching information is, that the MSDN gets updated. Depending on whether the update happened before or after the EOL of Windows 2000, the client requirements either list Windows XP or Windows 2000.

如果有疑问,头文件是权威的。在Windows 8.0 SDK仍然有#如果(_WIN32_WINNT> =在0x0500)。周围的声明 AttachConsole

If in doubt, the header files are authoritative. The Windows 8.0 SDK still has #if(_WIN32_WINNT >= 0x0500) around the declaration for AttachConsole.

这篇关于什么是真正的AttachConsole最低版本要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆