>Yep - use my API_APPRUN class rather than run - it returns both a process handle and a thread handle that can be used to adjust the priority. Jusr use the LaunchApp() method and then grab the desired handle from the Process class instance and do your thing...
Thanks; I believe this is exactly the class I needed, but I didn't remember where to find it.
One more question: It seems to me that to combine the following two requirements: 1) Wait for termination, 2) Change the priority, I have to adapt the code in LaunchAppAndWait(). Is this correct, or is there a simpler way?
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)