网站首页  词典首页

请输入您要查询的函数:

 

术语 enumdesktopwindows
释义 EnumDesktopWindows
语法:
C++
BOOL WINAPI EnumDesktopWindows(
__in_opt HDESK hDesktop,
__in WNDENUMPROC lpfn,
__in LPARAM lParam
);
EnumDesktopWindows功能
枚举所有顶级桌面与指定的关联程度的窗口。它传递给每个窗口句柄,反过来,一个应用程序定义的回调函数。
参数
hDesktop [中,可选]
句柄到桌面的顶层窗口要枚举。这种处理是由CreateDesktop,GetThreadDesktop,OpenDesktop,或OpenInputDesktop函数返回,并必须有DESKTOP_READOBJECTS访问权限。有关更多信息,请参见桌面安全和访问权限。
如果该参数为NULL,则当前的桌面使用。
lpfn [in]
对一个应用程序的指针定义EnumWindowsProc回调函数。
lparam的 [in]
一个中的应用定义的值传递给回调函数。
返回值
如果函数失败或无法执行枚举,返回值是零。
为了获得更多错误信息,调用GetLastError。
您必须确保回调函数设置SetLastError如果失败。
的Windows服务器2003和Windows XP/2000:如果桌面上没有窗户,GetLastError返回出现ERROR_INVALID_HANDLE。
备注
该EnumDesktopWindows功能反复调用,直到最后的顶部lpfn回调函数顶层窗口枚举或回调函数返回FALSE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
CreateDesktop
台式机
EnumWindowsProc
GetThreadDesktop
OpenDesktop
窗口站和桌面功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==EnumDesktopWindows Function
Enumerates all top-level windows associated with the specified desktop. It passes the handle to each window, in turn, to an application-defined callback function.
Syntax
C++
BOOL WINAPI EnumDesktopWindows(
__in_opt HDESK hDesktop,
__in WNDENUMPROC lpfn,
__in LPARAM lParam
);
Parameters
hDesktop [in, optional]
A handle to the desktop whose top-level windows are to be enumerated. This handle is returned by the CreateDesktop , GetThreadDesktop , OpenDesktop , or OpenInputDesktop function, and must have the DESKTOP_READOBJECTS access right. For more information, see Desktop Security and Access Rights .
If this parameter is NULL, the current desktop is used.
lpfn [in]
A pointer to an application-defined EnumWindowsProc callback function.
lParam [in]
An application-defined value to be passed to the callback function.
Return Value
If the function fails or is unable to perform the enumeration, the return value is zero.
To get extended error information, call GetLastError .
You must ensure that the callback function sets SetLastError if it fails.
Windows Server 2003 and Windows XP/2000: If there are no windows on the desktop, GetLastError returns ERROR_INVALID_HANDLE.
Remarks
The EnumDesktopWindows function repeatedly invokes the lpfn callback function until the last top-level window is enumerated or the callback function returns FALSE.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
CreateDesktop
Desktops
EnumWindowsProc
GetThreadDesktop
OpenDesktop
Window Station and Desktop Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682615(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:25:15