Basically I need to write a program thats whole function is to monitor to chk to see if a certain form has been opened that is part of another program. I just cant think of a way that can detect this.
A similar request was up recently (see thread), Using the SHELLHOOK you can get notified about HSHELL_WINDOWCREATED and its window handle that can be used with GetWindowText. You can also combine with GetParent/GetAncestor calls to check if this window belongs to another window.
You can get the window name by opening it and doing the FindWindow, etc manually the first time around. The name will always be the same.
You can also download programs that will show the name and handle of any window your mouse is over. I am forgetting the names of the programs but they are used for subclassing and hooks for this very purpose: to get the name of a window.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.