Compare Window Handles
How to enumerate all window handles. Fills one ListBox with all window handles, titles, and classes. Fills another with any windows not found in the original. Useful for searching out all the windows used by a specific application. Just fill the base, run your program, then find the new ones.
About this post
Posted: 2017-06-22
By: BlackBeltVB
Viewed: 423 times
Categories
Attachments
COMPHWND.ZIP
Posted: 6/22/2017 12:20:53 PM
Size: 2,844 bytes
Requirements
This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.
Special Instructions
Uses the following API function and messages:
- EnumWindows
- EnumChildWindows
- GetClassName
- GetWindowLong
- GetWindowText
- SendMessage
- LB_FINDSTRING
- WM_GETTEXT
- WM_CLOSE
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.