PsDereferenceImpersonationToken - NtDoc

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

VOID PsDereferenceImpersonationToken(
  [in] PACCESS_TOKEN ImpersonationToken
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

PsDereferenceImpersonationToken function

Description

The PsDereferenceImpersonationToken routine decrements the reference count of an impersonation token.

Parameters

ImpersonationToken [in]

Pointer to the impersonation token whose reference count is to be decremented. If this is a NULL pointer, PsDereferenceImpersonationToken does nothing.

Remarks

If the token's reference count reaches zero, the token is deleted.

For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.

See also

PsImpersonateClient

PsReferenceImpersonationToken