SetThreadPriority
#1 Members - Reputation: 104
Posted 21 December 1999 - 08:45 AM
How do you set the handle for SetThreadPriority()
Ive tried using my hwnd,ive tried
well about 5 differnt ways. I just want to increase my main process priority.
#2 Members - Reputation: 122
Posted 20 December 1999 - 08:50 AM
Zenroth,
SetThreadPriority accepts the HANDLE to a thread, and an integer specifying the priority level.
An HWND is not a valid parameter to the SetThreadPriority function.
If you are looking at using the handle to the thread you are currently in, try using GetCurrentThread.
HTH,
-mordell
#5 Members - Reputation: 122
Posted 20 December 1999 - 01:03 PM
Also, you may find that this will not help much on a single-threaded app.
Typically, your application is taking 99% of the CPU time anyway. Don't count on switching your process's priority to cause a huge speedup.
#6 Members - Reputation: 122
Posted 21 December 1999 - 08:45 AM
Rock






