[python-win32] Impersonation and Threads

Tim Roberts timr at probo.com
Tue Jan 8 22:53:01 CET 2008


Matt Herbert (matherbe) wrote:
> Is there a way to make impersonation follow threads?

What operating system are you running?  On XP SP2 and later, a new 
thread should inherit the impersonation token of the calling thread, 
unless the caller passes a specific security descriptor into 
CreateThread.  (I don't know what the Python thread module does.)  On XP 
SP1 and before, you'd see the behavior you describe.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list