SID 结构 (ntifs.h)
安全标识符 (SID) 结构是一种可变长度结构,用于唯一标识用户或组。
驱动程序不得直接修改 SID 结构。 若要创建和作安全标识符,请使用“另请参阅”部分中列出的支持例程。
语法
typedef struct _SID {
UCHAR Revision;
UCHAR SubAuthorityCount;
SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
#if ...
ULONG *SubAuthority[];
#else
ULONG SubAuthority[ANYSIZE_ARRAY];
#endif
} SID, *PISID;
成员
Revision
分配给 SID 的修订级别。
SubAuthorityCount
SID 中的子授权数。
IdentifierAuthority
表示 SID 顶级颁发机构的 SID_IDENTIFIER_AUTHORITY 结构。
SubAuthority[*]
SubAuthority[ANYSIZE_ARRAY]
要求
要求 | 价值 |
---|---|
标头 | ntifs.h (include Ntifs.h) |