.
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!
Lets the calling thread impersonate the security context of a logged-on user. The user is represented by a token handle.
9/18/2022 1:32:15 AM - -37.160.138.42