winnt.h) (SECURITY_DESCRIPTOR 結構

SECURITY_DESCRIPTOR 結構包含與 對象相關聯的安全性資訊。 應用程式會使用此結構來設定和查詢物件的安全性狀態。

由於 安全性描述元 的內部格式可能會有所不同,因此建議應用程式不要直接修改 SECURITY_DESCRIPTOR 結構。 若要建立及操作安全性描述元,請使用另請參閱中所列的函式。

語法

typedef struct _SECURITY_DESCRIPTOR {
  BYTE                        Revision;
  BYTE                        Sbz1;
  SECURITY_DESCRIPTOR_CONTROL Control;
  PSID                        Owner;
  PSID                        Group;
  PACL                        Sacl;
  PACL                        Dacl;
} SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR;

成員

Revision

Sbz1

Control

Owner

Group

Sacl

Dacl

備註

安全性描述項包含指定物件安全性下列元件的資訊:

使用 SECURITY_DESCRIPTOR 結構的數個函式,要求此結構必須對齊記憶體中有效的指標界限。 這些界限會根據所使用的處理器類型而有所不同。 mallocLocalAlloc 等記憶體配置函式會傳回正確對齊的指標。

規格需求

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

另請參閱

GetSecurityDescriptorControl

GetSecurityDescriptorDacl

GetSecurityDescriptorGroup

GetSecurityDescriptorLength

GetSecurityDescriptorOwner

GetSecurityDescriptorRMControl

GetSecurityDescriptorSacl

InitializeSecurityDescriptor

IsValidSecurityDescriptor

SetSecurityDescriptorDacl

SetSecurityDescriptorGroup

SetSecurityDescriptorOwner

SetSecurityDescriptorRMControl

SetSecurityDescriptorSacl