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

指向包含 SecurityInformation 参数中请求的安全项的SECURITY_DESCRIPTOR结构列表的指针。

注意 必须通过调用 NetApiBufferFree 函数来释放此缓冲区。
 

[out] lpcbSecurityDescriptor

ppSecurityDescriptor 指向的缓冲区的大小(以字节为单位)。

返回值

如果函数成功,则返回值 NERR_Success

如果函数失败,则返回值为系统错误代码。 有关错误代码的列表,请参阅 系统错误代码

注解

安全描述符是从在 MachineName 参数中指定的服务器注册表中由 HKLM\Software\Microsoft\Dfs\独立键指定的对象检索的。

要求

要求
最低受支持的客户端 Windows Vista
最低受支持的服务器 Windows Server 2008
目标平台 Windows
标头 lmdfs.h (包括 LmDfs.h、Lm.h)
Library Netapi32.lib
DLL Netapi32.dll

另请参阅

分布式文件系统 (DFS) 函数

网络管理功能

网络管理概述