PsRevertToSelf - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

VOID PsRevertToSelf();

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-psreverttoself)

PsRevertToSelf function

Description

The PsRevertToSelf routine ends the calling thread's impersonation of a client.

Remarks

A server thread can impersonate a client by calling the PsImpersonateClient routine. When the thread is done impersonating the client, it can call the PsRevertToSelf routine to end all impersonations.

See also

PsImpersonateClient