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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for