NetDfsSetFtContainerSecurity 函式 (lmdfs.h)
為指定 Active Directory 網域中網域型 DFS 命名空間設定容器物件的安全性描述元。
語法
NET_API_STATUS NET_API_FUNCTION NetDfsSetFtContainerSecurity(
[in] LPWSTR DomainName,
[in] SECURITY_INFORMATION SecurityInformation,
[in] PSECURITY_DESCRIPTOR pSecurityDescriptor
);
參數
[in] DomainName
指定 Active Directory 功能變數名稱之字串的指標。
[in] SecurityInformation
SECURITY_INFORMATION 結構,其中包含指出要設定之安全性資訊類型的位旗標。
[in] pSecurityDescriptor
SECURITY_DESCRIPTOR結構的指標,其中包含要如SecurityInformation參數中所指定設定的安全性屬性。
傳回值
如果函式成功,傳回值會 NERR_Success。
如果函式失敗,則傳回值是系統錯誤碼。 如需錯誤碼的清單,請參閱 系統錯誤碼。
備註
安全性描述項是在 Active Directory 中,從主要網域控制站的 「CN=DFS-Configuration,CN=System,DC=domain」 物件上設定, (DomainName 參數中所指定之網域的 PDC) ,其中 < domain > 是 DomainName 參數中所指定之網域的辨別名稱。
需求
最低支援的用戶端 | Windows Vista |
最低支援的伺服器 | Windows Server 2008、Windows Server 2008 |
目標平台 | Windows |
標頭 | lmdfs.h (包括 LmDfs.h、Lm.h) |
程式庫 | Netapi32.lib |
Dll | Netapi32.dll |