SeTokenIsAdmin function

The SeTokenIsAdmin routine determines whether a token contains the local administrators group.

Syntax

NTKERNELAPI BOOLEAN SeTokenIsAdmin(
  PACCESS_TOKEN Token
);

Parameters

Token

Pointer to the token.

Return Value

SeTokenIsAdmin returns TRUE if the token contains the local administrators group, FALSE otherwise.

Remarks

For more information about security and access control, see the documentation on these topics in the Microsoft Windows SDK.

Requirements

   
Windows version This routine is available on Microsoft Windows 2000 and later.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See Also

PsDereferenceImpersonationToken

PsDereferencePrimaryToken

SeQueryAuthenticationIdToken

SeQueryInformationToken

SeQuerySubjectContextToken

SeTokenIsAdmin

SeTokenIsRestricted