PsDereferencePrimaryToken - NtDoc

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

VOID PsDereferencePrimaryToken(
  [in] PACCESS_TOKEN PrimaryToken
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

PsDereferencePrimaryToken function

Description

The PsDereferencePrimaryToken routine decrements the reference count of a primary token.

Parameters

PrimaryToken [in]

Pointer to the primary token whose reference count is to be decremented.

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

PsDereferenceImpersonationToken