How to call GetPriorityClass,GetThreadPriority?
On Mar 16, 11:24*pm, Leith Ross
wrote:
You have to pass in a valid handle to the function.
Null will not default to the calling thread or class.
Okay. Aha! I just discovered GetCurrentProcess() and GetCurrentThread
(). I also realized that I should pass those pseudo-handles by value,
not by reference, to GetPriorityClass() and GetThreadPriority().
With those two fixes, things are working now.
Many thanks!
|