共用方式為


NetDfsGetStdContainerSecurity 函式 (lmdfs.h)

擷取指定之獨立 DFS 命名空間之容器物件的安全性描述元。

語法

NET_API_STATUS NET_API_FUNCTION NetDfsGetStdContainerSecurity(
  [in]  LPWSTR               MachineName,
  [in]  SECURITY_INFORMATION SecurityInformation,
  [out] PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
  [out] LPDWORD              lpcbSecurityDescriptor
);

參數

[in] MachineName

字串的指標,指定裝載獨立 DFS 命名空間的伺服器名稱。

[in] SecurityInformation

SECURITY_INFORMATION 結構,其中包含指出要擷取之安全性資訊類型的位旗標。

[out] ppSecurityDescriptor

SECURITY_DESCRIPTOR 結構的指標 ,其中包含 SecurityInformation 參數中要求的安全性專案。

注意 呼叫 NetApiBufferFree 函式,必須釋放此緩衝區。
 

[out] lpcbSecurityDescriptor

ppSecurityDescriptor 指向的緩衝區大小,以位元組為單位。

傳回值

如果函式成功,傳回值 會NERR_Success

如果函式失敗,則傳回值是系統錯誤碼。 如需錯誤碼的清單,請參閱 系統錯誤碼

備註

HKLM\Software\Microsoft\Dfs\獨立機碼所指定的物件擷取安全性描述元,此物件是在 MachineName 參數中指定的伺服器登錄中擷取。

規格需求

需求
最低支援的用戶端 Windows Vista
最低支援的伺服器 Windows Server 2008
目標平台 Windows
標頭 lmdfs.h (包括 LmDfs.h、Lm.h)
程式庫 Netapi32.lib
Dll Netapi32.dll

另請參閱

分散式文件系統 (DFS) 函式

網路管理功能

網路管理概觀