Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.03 KB

RevertToSelf.md

File metadata and controls

43 lines (27 loc) · 1.03 KB

Home

Function name : RevertToSelf

Group: Security - Library: advapi32


The RevertToSelf function terminates the impersonation of a client application.


Code examples:

How to run FoxPro application under different user name (impersonating user)

Declaration:

BOOL RevertToSelf(void);  

FoxPro declaration:

DECLARE INTEGER RevertToSelf IN advapi32  

Parameters:

This function has no parameters.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

A process should call the RevertToSelf function after finishing any impersonation begun by using the DdeImpersonateClient, ImpersonateDdeClientWindow, ImpersonateLoggedOnUser, ImpersonateNamedPipeClient, ImpersonateSelf, ImpersonateAnonymousToken or SetThreadToken function.