views:

167

answers:

1

hello

I have multi-thread application that I want to create a thread with different user privilege (for example : multi domain admin privilege).

but I can't find any Win32 API CreateThread to do that.

How to create thread with specific user privileges?

thanks.

+4  A: 

Call CreateThread() with CREATE_SUSPENDED flag, then call SetThreadToken(), then ResumeThread().

sharptooth