Matt Herbert (matherbe) wrote: >> -----Original Message----- >> Tim Roberts wrote: >> >> 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. >> > > I am running XP SP2. On my systems, the new thread definitely is not > inheriting the impersonation token of the calling thread. For what it's > worth, this is with Active State Python 2.5. > > Either way though, I need something that will work on XP, 2k, and 2k3. >
In that case, I think you will have to pass the token and call ImpersonateLoggedOnUser in each thread. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32