>>Take a look at faq #7593. I think following quote applies to your code also: "Under NT and Win2K, the process issuing the SetPriorityClass call must have a process handle with the PROCESS_SET_INFORMATION access right, which may require calling AdjustTokenPrivileges, a non-trivial issue." >> >>See mskb #Q251310 for how the process token security can be ajusted. > >Sergey, >What FAQ is that supposed to be because Michel F. FAQ on Language Reference is not it.
Sorry, it's API #12682.
> >IAC, I don't think this applies in this case. If security is in effect, then the OpenThread function would fail if the permissions weren't valid. Since the thread handle was received, it worked.