Enumerating top level windows - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
The object of this sample project is to demonstrate how to use the EnumWindows API function with an application-defined Callback function in order to enumerate all the top-level windows running in the Windows environment at any point of time. The enumeration of windows is done using the EnumWindows API function and an application defined callback function called fnEnumWindowsCallback. The EnumWindow API function returns searches for a top-level window and then passes the handle of the window found to the application defined function called fnEnumWindowsCallback, which in turn processes the window handle value recieved to gather information about the 'Title/Caption' of the window recieved from EnumWindows function. The sample also demonstrates how you can shut down windows from within your Visual Basic Application. It provides a form interface somewhat similar to the Windows Task Manager.
这个项目的目的是演示如何在 EnumWindows API 函数中使用一个应用程序定义的回调函数来随时列举Windows环境中正在运行的顶层窗口。通过 EnumWindows API函数和应用程序定义的称为   fnEnumWindowsCallback的回调函数来列举窗口。 EnumWindow API函数返回搜索到的顶层窗口,并将窗口句柄传递给应用程序定义的函数 fnEnumWindowsCallback,它再用传递的窗口句柄来获取窗口的'Title/Caption' 。样例也演示了如何在 Visual Basic 应用程序中关闭窗口。它提供了一个类似于Windows任务管理器的界面。
来源: http://visualbasic.ittoolbox.com/code/d.asp?d=1498&a=s |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
EnumWindows |
 1.0  |
2004-04-01 |
下载 |
|
|