I have been trying to get the Reference to the Main window of my Process for quite sometime. I went through many sites looking for a solution. But it looks like everyone provides a solution to get the Window handle and not the window itself.
Getting a Process's Mainwindow handle is quite straight forward. I seem to get the Window title also as expected.
I went through most of the APIs provided by User32.dll but couldn't find what i was looking for.
I need a reference to the window because i want to access few members of the window class to accomplish my work. The window i am referring to is a WPF window.
Any help in this regard will be highly appreciated:)
Thanks in advance.