win32security.ImpersonateLoggedOnUser

ImpersonateLoggedOnUser(handle)

Impersonates a logged on user.

Parameters

handle : PyHANDLE

Handle to a token that represents a logged-on user