Group: Security - Library: advapi32
How to run FoxPro application under different user name (impersonating user)
BOOL RevertToSelf(void); DECLARE INTEGER RevertToSelf IN advapi32 This function has no parameters.
If the function succeeds, the return value is nonzero.
A process should call the RevertToSelf function after finishing any impersonation begun by using the DdeImpersonateClient, ImpersonateDdeClientWindow, ImpersonateLoggedOnUser, ImpersonateNamedPipeClient, ImpersonateSelf, ImpersonateAnonymousToken or SetThreadToken function.
Home