网站首页  词典首页

请输入您要查询的函数:

 

术语 freeconsole
释义 FreeConsole
语法:
C++
BOOL WINAPI FreeConsole(void);
FreeConsole功能
调用进程的分离从控制台。
参数
这个函数没有参数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个进程可以附加到一个控制台最多。如果调用进程尚未连接到控制台,错误代码返回ERROR_INVALID_PARAMETER(87)。
一个进程可以使用FreeConsole函数本身分离从控制台。如果其他进程共享的控制台,控制台不能被破坏,但这一进程的要求FreeConsole不能引用它。一个控制台关闭最后一个进程时附加的终止或呼叫FreeConsole。经过进程调用FreeConsole,它可以调用AllocConsole函数来创建一个新的控制台或AttachConsole附加到另一台主机。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
AllocConsole
AttachConsole
控制台函数
控制台
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==FreeConsole Function
Detaches the calling process from its console.
Syntax
C++
BOOL WINAPI FreeConsole(void);
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
A process can be attached to at most one console. If the calling process is not already attached to a console, the error code returned is ERROR_INVALID_PARAMETER (87).
A process can use the FreeConsole function to detach itself from its console. If other processes share the console, the console is not destroyed, but the process that called FreeConsole cannot refer to it. A console is closed when the last process attached to it terminates or calls FreeConsole. After a process calls FreeConsole, it can call the AllocConsole function to create a new console or AttachConsole to attach to another console.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
AllocConsole
AttachConsole
Console Functions
Consoles
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683150(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 11:22:45