// ntifs.h
VOID PsDereferencePrimaryToken(
[in] PACCESS_TOKEN PrimaryToken
);
View the official Windows Driver Kit DDI reference
No description available.
The PsDereferencePrimaryToken routine decrements the reference count of a primary token.
PrimaryToken
[in]Pointer to the primary token whose reference count is to be decremented.
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.
PsDereferenceImpersonationToken