Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey everyone, I've been messing around with some of the API's 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. I've got the FindWindow method working if I specify a particular window, (ex Untitled - Notepad). I'm just wondering how do I get all Windows and their appropropriate child windows if I have don't know the names of the windows.

 

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

 

Any help would be greatly appreciated. Thanks in advance.

 

-=Simcoder=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...