Thank you Acamar for your friendly help.
Hi swalker,
Here is another idea for you toget all open windows.
Dim Proc() As Process = Process.GetProcesses()
For Each p As Process In Proc
If p.MainWindowTitle <> Nothing Then
' Gets the native handle of the associated process
Dim hwnd As IntPtr =p.Handle
End If
Next
Process' members:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process_members.aspx
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.