TOKEN_PRIVILEGES
The TOKEN_PRIVILEGES
structure contains information about a set of privileges for an access token.
typedef struct _TOKEN_PRIVILEGES { // tp
DWORD
PrivilegeCount;
LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
} TOKEN_PRIVILEGES;
Members
PrivilegeCount
Specifies the
number of entries in the Privileges array.
Privileges
Specifies an
array of LUID_AND_ATTRIBUTESFBPWVF and attributes of a privilege. The
attributes of a privilege can be a combination of the following values:
Attribute |
Description |
SE_PRIVILEGE_ENABLED_BY_DEFAULT |
|
|
The
privilege is enabled by default. |
SE_PRIVILEGE_ENABLED |
|
|
The
privilege is enabled. |
SE_PRIVILEGE_USED_FOR_ACCESS |
|
|
The
privilege was used to gain access to an object or service. This flag is used
to identify the relevant privileges in a set passed by a client application
that may contain unnecessary privileges. |
See Also