win32security.ImpersonateSelf
ImpersonateSelf(ImpersonationLevel)
Assigns an impersonation token for current security context to current process
Parameters
ImpersonateSelf(ImpersonationLevel)
Assigns an impersonation token for current security context to current process