AUTHZ_CONTEXT_INFORMATION_CLASS枚举指定要从现有 AuthzClientContext 检索的信息类型。 此枚举由 AuthzGetInformationFromContext 函数使用。
语法
typedef enum _AUTHZ_CONTEXT_INFORMATION_CLASS {
AuthzContextInfoUserSid = 1,
AuthzContextInfoGroupsSids,
AuthzContextInfoRestrictedSids,
AuthzContextInfoPrivileges,
AuthzContextInfoExpirationTime,
AuthzContextInfoServerContext,
AuthzContextInfoIdentifier,
AuthzContextInfoSource,
AuthzContextInfoAll,
AuthzContextInfoAuthenticationId,
AuthzContextInfoSecurityAttributes,
AuthzContextInfoDeviceSids,
AuthzContextInfoUserClaims,
AuthzContextInfoDeviceClaims,
AuthzContextInfoAppContainerSid,
AuthzContextInfoCapabilitySids
} AUTHZ_CONTEXT_INFORMATION_CLASS;
常量
AuthzContextInfoUserSid值:1 检索包含用户安全标识符 ( SID) 及其属性的TOKEN_USER结构。 |
AuthzContextInfoGroupsSids检索包含用户所属的组 SID 及其属性 的TOKEN_GROUPS 结构。 |
AuthzContextInfoRestrictedSids检索包含上下文中受限组 SID 及其属性的 TOKEN_GROUPS 结构。 |
AuthzContextInfoPrivileges检索包含用户拥有的权限 的TOKEN_PRIVILEGES 结构。 |
AuthzContextInfoExpirationTime检索在上下文中设置的过期时间。 |
AuthzContextInfoServerContext此常量是保留的。 请勿使用。 |
AuthzContextInfoIdentifier检索资源管理器用于标识上下文的 LUID 结构。 |
AuthzContextInfoSource此常量是保留的。 请勿使用。 |
AuthzContextInfoAll此常量是保留的。 请勿使用。 |
AuthzContextInfoAuthenticationId此常量是保留的。 请勿使用。 |
AuthzContextInfoSecurityAttributes检索包含安全属性 的AUTHZ_SECURITY_ATTRIBUTES_INFORMATION 结构。 Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
AuthzContextInfoDeviceSids检索包含设备 SID 及其属性 的TOKEN_GROUPS 结构。 Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
AuthzContextInfoUserClaims检索包含用户声明 的AUTHZ_SECURITY_ATTRIBUTES_INFORMATION 结构。 Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
AuthzContextInfoDeviceClaims检索包含设备声明 的AUTHZ_SECURITY_ATTRIBUTES_INFORMATION 结构。 Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
AuthzContextInfoAppContainerSid检索包含应用容器 SID 的TOKEN_APPCONTAINER_INFORMATION 结构。 Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
AuthzContextInfoCapabilitySids检索包含功能 SID 的TOKEN_GROUPS 结构。 Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 不支持此值。 |
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 | Windows XP [仅限桌面应用] |
| 最低受支持的服务器 | Windows Server 2003 [仅限桌面应用] |
| 标头 | authz.h |
| 可再发行组件 | Windows XP 上的 Windows Server 2003 管理工具包 |
另请参阅
AuthzGetInformationFromContext