Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Priority
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00252214
Message ID:
00252432
Views:
9
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform