View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
joeu2004 joeu2004 is offline
external usenet poster
 
Posts: 2,059
Default 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!