Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT Gurus and Setting Priority From Visual Foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00252651
Message ID:
00253267
Views:
36
>>I am wanting to change the priorty of my application programmatically.
>>Has anyone done this?
>
>You can use the following API calls to do this:
>
>
>DECLARE INTEGER GetCurrentThread ;
>   IN WIN32API
>
>DECLARE INTEGER GetThreadPriority ;
>   IN WIN32API ;
>   INTEGER tnThreadHandle
>
>DECLARE INTEGER SetThreadPriority ;
>   IN WIN32API ;
>   INTEGER tnThreadHandle,;
>   INTEGER tnPriority
>
>
>Be careful with these things though to not set priority too high
>or you'll kill the system You should take the priority to 1 maybe
>2, but no more, especially under NT...

Hi Rick,

Just a quick question for those of us who are Internet challenged. In VFP 6.0 SP3 we have the _VFP.ThreadID property. Do you have any idea why this value doesn't match that which GetCurrentThread() returns. GetCurrentThreadID() returns the same value, but as I understand it, GetCurrentThread() returns a pseudo-handle to the thread. I guess what I'm asking is why would the pseudo-handle work where the real one wouldn't?

tia,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform