PsRevertToSelf function (ntifs.h)

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

Syntax

void PsRevertToSelf();

Return value

None

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.

Requirements

Requirement Value
Minimum supported client Windows XP
Target Platform Universal
Header ntifs.h (include Ntifs.h, FltKernel.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), PowerIrpDDis(wdm)

See also

PsImpersonateClient