win32security.RevertToSelf

RevertToSelf()

Terminates the impersonation of a client application.