SetSecurityDescriptorRMControl 函式 (securitybaseapi.h)

SetSecurityDescriptorRMControl 函式會在 SECURITY_DESCRIPTOR 結構中設定資源管理員控制位。

語法

DWORD SetSecurityDescriptorRMControl(
  [in, out]      PSECURITY_DESCRIPTOR SecurityDescriptor,
  [in, optional] PUCHAR               RMControl
);

參數

[in, out] SecurityDescriptor

包含 Resource Manager 控制項位之SECURITY_DESCRIPTOR結構的指標。

[in, optional] RMControl

資源管理員控制 SECURITY_DESCRIPTOR 結構中位的位值指標將會設定為 。 如果此參數的值是 NULL,則會清除 Resource Manager 控件位。

傳回值

傳回值ERROR_SUCCESS。

備註

資源管理員控制位是 SECURITY_INFORMATION 結構之 Sbz1 成員中的八個位,其中包含存取結構之資源管理員特有的資訊。 這些位只能透過 GetSecurityDescriptorRMControlSetSecurityDescriptorRMControl 函式來存取。

規格需求

需求
最低支援的用戶端 Windows XP [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2003 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 securitybaseapi.h (包括 Windows.h)
程式庫 Advapi32.lib
Dll Advapi32.dll

另請參閱

存取控制 概觀

基本 存取控制 函式

GetSecurityDescriptorRMControl

SECURITY_DESCRIPTOR

SECURITY_INFORMATION