The code at the below link, while in VB is pretty straight forward...
http://support.microsoft.com/kb/242308/>Is there a way to get the windows handle from the ShellExecute command? ShellExecute returns the instance handle and I can't seem to get to the Windows Handle. I've been using the FindWindowEx function to look for the title but that doesn't guarantee me the correct window.