I converted the code to VFP and the return from GetWindowProcessID doesn't return the same thing that ShellExecute returns.
>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.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers