MSFT_Volume 类的 GetCorruptionCount 方法

检索卷的损坏计数。

语法

UInt32 GetCorruptionCount(
  [out] UInt32 CorruptionCount,
  [out] String ExtendedStatus
);

参数

CorruptionCount [out]

卷的损坏计数。

ExtendedStatus [out]

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

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

返回值

成功 (0)

不支持 (1)

未指定的错误 (2)

超时 (3)

失败 (4)

参数 (5) 无效

拒绝访问 (40001)

要求

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

另请参阅

MSFT_Volume