Closing a window when you only have the Title
Typically I would not post this question, but I don't have my API Bible today...
All I have is the Title of window (its a dialog from a Crystal Report).
When my app shutsdown I need to check if this window is displayed and if
it is close it. Problem is I don't have the ClassName of the Window, I only
have the Title.
So what I need is the API that will take the Title, and return the ClassName
so I can get the hWnd to close the window.
Any help would be greatly appreciated.