Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process priority
Message
De
27/05/2002 11:16:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/05/2002 10:58:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00661648
Message ID:
00661696
Vues:
38
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform