I am able get a Window handle from running applications using the following code.
foreach (ProcessModule module in process.Modules)
{
if (module.ModuleName.Con
Try the following:
IntPtr handle = process.MainWindowHandle;
HwndSource hwndSource = HwndSource.FromHwnd(handle);
Window = hwndSource.RootVisual as Window;
Update:
But this will work only inside the same AppDomain, because otherwise it would mean that you could share an object across different AppDomains and even processes, which is obviously impossible.