Find All Parent & Child Windows

Simcoder

Well-known member
Joined
Apr 18, 2003
Messages
124
Location
Texas
Hey everyone, Ive been messing around with some of the APIs and trying to get them to work. Can anyone show me how I would use the FindWindow and the FindWindowEx Api to get all Windows and the child windows that are currently running on my computer using these two methods. Ive got the FindWindow method working if I specify a particular window, (ex Untitled - Notepad). Im just wondering how do I get all Windows and their appropropriate child windows if I have dont know the names of the windows.

[VB]
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer

Private Declare Function FindWindowEx Lib "user32.dll" Alias "FindWindowExA" (ByVal hWnd1 As Integer, ByVal hWnd2 As Integer, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer
[/VB]

Any help would be greatly appreciated. Thanks in advance.

-=Simcoder=-
 

Similar threads

M
Replies
0
Views
115
Mostafa Salaheldien
M
G
Replies
0
Views
243
Gowrisankarrs
G
I
Replies
0
Views
156
Innovators World Wide
I
Back
Top