Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process priority
Message
From
27/05/2002 11:16:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00661648
Message ID:
00661696
Views:
39
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform