网站首页  词典首页

请输入您要查询的函数:

 

术语 endtask
释义 EndTask
语法:
BOOL EndTask( HWND hWnd,
BOOL fShutDown,
BOOL fForce
);
EndTask用来功能
该EndTask用来函数被调用强行关闭指定的窗口。
参数
hWnd
[in]的窗口句柄被关闭。
fShutDown
[in]忽略。一定是错误的。
fForce
[in]阿此参数TRUE将迫使窗口的破坏,如果初次尝试失败,轻轻关闭窗口使用WM_CLOSE。与此参数的假,只与WM_CLOSE密切的尝试。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值为FALSE。为了获得更多错误信息,调用GetLastError。
备注
虽然您可以通过使用LoadLibrary和GetProcAddress在Microsoft Windows版本相结合,在Windows XP之前这个函数,该函数不使用标准访问包含文件和库之间的联系。头文件包含在Windows XP服务包1(SP1)和Windows Server 2003的文件,这个功能,使其容易使用适当的包含文件和库之间的联系。但是,此函数不供一般使用。我们建议您不要使用新的程序,因为这可能会更改或在Windows的后续版本中不可用。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
2000年最低经营systemsWindows
参见
视窗概述,DestroyWindow,关闭视窗,WM_CLOSE
==英文原文==EndTask Function
The EndTask function is called to forcibly close a specified window.
Syntax
BOOL EndTask( HWND hWnd,
BOOL fShutDown,
BOOL fForce
);
Parameters
hWnd
[in] Handle to the window to be closed.
fShutDown
[in] Ignored. Must be FALSE.
fForce
[in] A TRUE for this parameter will force the destruction of the window if an initial attempt fails to gently close the window using WM_CLOSE. With a FALSE for this parameter, only the close with WM_CLOSE is attempted.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is FALSE. To get extended error information, call GetLastError .
Remarks
Although you can access this function by using LoadLibrary and GetProcAddress combined in Microsoft Windows versions prior to Windows XP, the function is not accessible using the standard Include file and library linkage. The header files included in Windows XP Service Pack 1 (SP1) and Windows Server 2003 document this function and make it accessible using the appropriate Include file and library linkage. However, this function is not intended for general use. It is recommended that you do not use it in new programs because it might be altered or unavailable in subsequent versions of Windows.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 2000
See Also
Windows Overview , DestroyWindow , CloseWindow , WM_CLOSE
==原始网址==http://msdn.microsoft.com/en-us/library/ms633492(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:47