MSFT_Volume 类的 SetFileSystemLabel 方法

设置卷的文件系统标签。

语法

UInt32 SetFileSystemLabel(
  [in]  String FileSystemLabel,
  [out] String ExtendedStatus
);

参数

FileSystemLabel [in]

文件系统标签。

ExtendedStatus [out]

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

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

返回值

成功 (0)

不支持 (1)

未指定的错误 (2)

超时 (3)

失败 (4)

参数 (5) 无效

要求

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

另请参阅

MSFT_Volume