// ntifs.h
BOOLEAN SeTokenIsAdmin(
[in] PACCESS_TOKEN Token
);
View the official Windows Driver Kit DDI reference
No description available.
The SeTokenIsAdmin routine determines whether a token contains the local administrators group.
Token
[in]Pointer to the token.
SeTokenIsAdmin returns TRUE if the token contains the local administrators group, FALSE otherwise.
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
SeTokenIsAdmin