Perhaps this helps:
If you check out MSDN you'll see another function called ShellExecuteEx that uses a SHELLEXECUTEINFO structure. This structure returns a hProcess. You may be able to use this value to get a hWnd to the main window for that application.