See
Re: Determine all current Win process Message #
1064078>I got it working so thank you very much.
>
>Now that I have it working, I see that I need a way to close down Adobe Acrobat as the person quits from the application. The reason why this is important, is if the user launches the application a second time, then Adobe Acrobat comes up on top of the screen instead of minimized.
>
>I went through the Help File on ShellExecute and the documentation seems to relate to opening an application.
>
>Possibly there is a different area of the help file that pertains to closing an application. I looked for ShellClose and ShellExit and these are not valid.
>
>Mike Smith
--sb--