Win32_EncryptableVolume 类的 IsNumericalPasswordValid 方法

Win32_EncryptableVolume 类的 IsNumericalPasswordValid 方法指示数字密码是否满足此身份验证值的特殊格式要求。

语法

uint32 IsNumericalPasswordValid(
  [in]  string  NumericalPassword,
  [out] boolean IsNumericalPasswordValid
);

parameters

NumericalPassword [in]

类型: 字符串

一个指定数字密码的字符串。

数字密码必须包含 48 位数字。 这些数字可划分为 8 组(6 位数字),每个组中的最后一位数字表示该组的校验和值。 每组 6 位数字必须可被 11 除,并且必须小于 720896。 假设一组 6 位数字标记为 x1、x2、x3、x4、x5 和 x6,则校验和 x6 数字的计算方式为 –x1+x2–x3+x4–x5 mod 11。

可以选择用空格或连字符分隔数字组。 因此,“xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxxxx”或“xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx”也可能包含有效的数字密码。

IsNumericalPasswordValid [out]

类型: 布尔值

如果数字密码满足此身份验证值的特殊格式要求,则为 true 的布尔值,否则值为 false。

返回值

类型: uint32

此方法返回以下代码之一,如果失败,则返回另一个错误代码。

返回代码/值 说明
S_OK
0 (0x0)
方法成功。

 

备注

托管对象格式 (MOF) 文件包含 Windows Management Instrumentation (WMI) 类的定义。 MOF 文件未作为 Windows SDK 的一部分安装。 使用 服务器管理器添加关联角色时,它们安装在服务器上。 有关 MOF 文件的详细信息,请参阅 托管对象格式 (MOF)

要求

要求
最低受支持的客户端
Windows Vista 企业版,Windows Vista 旗舰版 [仅限桌面应用]
最低受支持的服务器
Windows Server 2008 [仅限桌面应用]
命名空间
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

请参阅

Win32_EncryptableVolume