Hi all,

In a program I am currently making, I need to launch two different applications, one after the other.

It is imperitive that I wait for the first application to finish before I launch the second.

The problem is I can't figure out how to do this. What I thought would be possible would be to use the returned handle from the first ShellExecute, and enter a loop until it was no longer a valid handle, indicating program termination.

Does anyone know how I can do this?

I looked around the API for some functions but couldn't find any.

Thanks heaps for any help you provide.