The TOKEN_PRIVILEGES structure contains information about a set of privileges for an access token.
Syntax
typedef struct _TOKEN_PRIVILEGES {
DWORD PrivilegeCount;
LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
}TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES;
Members
- PrivilegeCount
Specifies the number of entries in the Privileges array.
- Privileges
Specifies an array of
LUID_AND_ATTRIBUTES structures. Each structure contains the
LUID and attributes of a privilege. To get the name of the privilege associated with a LUID, call the LookupPrivilegeName function, passing the address of the LUID as the value of the lpLuid parameter. The attributes of a privilege can be a combination of the following values.
| Value | Meaning |
- SE_PRIVILEGE_ENABLED
| The privilege is enabled.
|
- SE_PRIVILEGE_ENABLED_BY_DEFAULT
| The privilege is enabled by default.
|
- SE_PRIVILEGE_REMOVED
| Used to remove a privilege. For details, see AdjustTokenPrivileges.
|
- 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.
|
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Winnt.h (include Windows.h) |
See Also
- AdjustTokenPrivileges
- GetTokenInformation
- LookupPrivilegeName
- LUID
- LUID_AND_ATTRIBUTES
- PRIVILEGE_SET
- PrivilegeCheck
- PrivilegedServiceAuditAlarm
- SetTokenInformation
- TOKEN_CONTROL
- TOKEN_DEFAULT_DACL
- TOKEN_GROUPS
- TOKEN_INFORMATION_CLASS
- TOKEN_OWNER
- TOKEN_PRIMARY_GROUP
- TOKEN_SOURCE
- TOKEN_STATISTICS
- TOKEN_TYPE
- TOKEN_USER
Send comments about this topic to Microsoft
Build date: 9/11/2009