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:
00252808
Views:
9
There is an API function GetCurrentThread()

DECLARE INTEGER GetCurrentThread IN Win32API

Return a Handle that can be passed to other
API functions that require a Thread ID.


>Are there any NT folks out there that can help? I have tried to use >_vfp.threadid and was not successful. Any other suggestions?
>-John


>>>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.

Just an opinion... Not a fact.
Previous
Reply
Map
View

Click here to load this message in the networking platform