Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Priority
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00252214
Message ID:
00252432
Vues:
8
>How do you set the process priority for an application from Visual Foxpro?

Hi John,

About all I can help you with are the declarations.
#DEFINE THREAD_PRIORITY_LOWEST -2
#DEFINE THREAD_PRIORITY_BELOW_NORMAL -1
#DEFINE THREAD_PRIORITY_NORMAL 0
#DEFINE THREAD_PRIORITY_ABOVE_NORMAL 1
#DEFINE THREAD_PRIORITY_HIGHEST 2
DECLARE SHORT SetThreadPriority IN Win32API;
  INTEGER hThread, INTEGER nPriority
The function will return non-zero if it succeeds. I don't know if the _VFP.ThreadID can be used here or not. Further, under NT you must have certain rights to call this. Not being an NT user I really can't help about that.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform