I was wanting to know if it's possible to find the hWnd of a Microsoft Outlook 2007 program without the use of FindWindow. FindWindow using the window caption to find the handle. That seems like a poor solution to me. What if there are two windows that have the same caption? The caption is not a unique identifier.
Here is my scenario. I want to supply a handle to the GetFileName API function that is a form in Outlook. I know that I could specify a unique form name and that it would most likely never result in a wrong assignment of the handle with FindWindow but is there another way?
Thank you for any help that you can give,