MSFT_StorageProvider 类的 GetSecurityDescriptor 方法

检索控制对存储提供程序对象实例的访问的安全描述符。

语法

UInt32 GetSecurityDescriptor(
  [out] String SecurityDescriptor,
  [out] String ExtendedStatus
);

参数

SecurityDescriptor [out]

安全描述符定义语言 (SDDL) 描述对象的访问控制列表的格式化字符串。

ExtendedStatus [out]

包含嵌入 MSFT_StorageExtendedStatus 对象的字符串。

此参数允许存储提供程序返回特定于实现的扩展 () 错误信息。

返回值

成功 (0)

不支持 (1)

未指定的错误 (2)

超时 (3)

失败 (4)

参数 (5) 无效

拒绝访问 (40001)

没有足够的资源来完成操作。 (40002)

无法连接到存储提供程序。 (46000)

存储提供程序无法连接到存储子系统。 (46001)

要求

要求
最低受支持的客户端 Windows 8 [仅限桌面应用]
最低受支持的服务器 Windows Server 2012 [仅限桌面应用]
命名空间 Root\Microsoft\Windows\Storage
MOF Storagewmi.mof

另请参阅

MSFT_StorageProvider