uTools-Manuals/src/docs/win32api/1/EnumWindows.html
2020-06-29 01:56:42 +08:00

16 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<body>
<h3>函数功能</h3>该函数枚举所有屏幕上的顶层窗口办法是先将句柄传给每一个窗口然后再传送给应用程序定义的回调函数。EnumThreadWindows函数继续到所有顶层窗口枚举完为止或回调函数返回FALSE为止<h3>函数原型</h3>BOOL EnumWindowsWNDENUMPROC lpEnumFuncLPARAM lParam<br>
<h3>参数</h3>
lpEnumFunc指向一个应用程序定义的回调数指针请参看EnumWindowsProc。<br>
lPararm指定一个传递给回调函数的应用程序定义值。<br>
<h3>返回值</h3>如果函数成功返回值为非零如果函数失败返回值为零。若想获得更多错误信息请调用GetLastError函数。<br>
备注EnumWindows函数不列举子窗口。<br>
在循环体中调用这个函数比调用GetWindow函数更可靠。调用GetWindow函数中执行这个任务的应用程序可能会陷入死循环或指向一个已被销毁的窗口的句柄。<br>
<h3>速查</h3>Windows NT3.1以上版本Windows95以上版本Windows CE1.0以上版本头文件winuser.h库文件user32.lib。<br>
</body>
</html>