RevertToSelf (advapi32)
Last changed: -174.46.8.250

.
Summary
Terminates the impersonation of a client application

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern TODO RevertToSelf(TODO);

VB Signature:

Declare Function RevertToSelf Lib "advapi32.dll" () As Integer

User-Defined Types:

None.

Notes:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/reverttoself.asp

Tips & Tricks:

Please add some!

Sample Code:

See ImpersonateLoggedOnUser

Alternative Managed API:

Do you know one? Please contribute it!

Documentation