-
September 20th, 2004, 05:10 AM
#1
SetPriorityClass
I am to call "SetpriorityClass (thread, ABOVE_NORMAL_PRIORITY_CLASS) and it returns with an error - invalid handle on the GetLastError(). THis same handle to the thread is used in an immediate statement pthread->SetThreadPriority and all is well.
I thought maybe I didn't have the correct values to Query and Set this in the DACL but I have not figured out how to set that easily - it is quite messy and not simple examples.
Anyway know why the SetPriorityClass does not work?If is is a permissions problem on the thread (which I create quite standardly with "afxBeginThread")?
Thanks in advance.
Sharon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|