SID 結構 (winnt.h)

安全性標識子 (SID) 結構是用來唯一識別使用者或群組的可變長度結構。

應用程式不應該直接修改 SID。 若要建立及操作安全性標識碼,請使用一節中列出的函式。

語法

typedef struct _SID {
  BYTE                     Revision;
  BYTE                     SubAuthorityCount;
  SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
#if ...
  DWORD                    *SubAuthority[];
#else
  DWORD                    SubAuthority[ANYSIZE_ARRAY];
#endif
} SID, *PISID;

成員

Revision

SubAuthorityCount

IdentifierAuthority

SubAuthority[*]

SubAuthority[ANYSIZE_ARRAY]

規格需求

需求
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
標頭 winnt.h (包括 Windows.h)

另請參閱

AllocateAndInitializeSid

ConvertSidToStringSid

ConvertStringSidToSid

CopySid

EqualSid

FreeSid

GetLengthSid

GetSidIdentifierAuthority

GetSidLengthRequired

GetSidSubAuthority

GetSidSubAuthorityCount

InitializeSid

IsValidSid

LookupAccountName

LookupAccountSid

SID 元件