Win32_EncryptableVolume 类的 GetKeyProtectorFriendlyName 方法

Win32_EncryptableVolume 类的 GetKeyProtectorFriendlyName 方法检索用于标识给定密钥保护程序的显示名称。

语法

uint32 GetKeyProtectorFriendlyName(
  [in]  string VolumeKeyProtectorID,
  [out] string FriendlyName
);

parameters

VolumeKeyProtectorID [in]

类型: 字符串

用于管理加密卷密钥保护程序的唯一字符串标识符。

FriendlyName [out]

类型: 字符串

一个字符串,其中包含用于标识给定密钥保护程序的用户指定名称。

返回值

类型: uint32

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

返回代码/值 说明
S_OK
0 (0x0)
方法成功。
E_INVALIDARG
2147942487 (0x80070057)
VolumeKeyProtectorID 参数不引用有效的密钥保护程序。
FVE_E_NOT_ACTIVATED
2150694920 (0x80310008)
未在卷上启用 BitLocker。 添加密钥保护程序以启用 BitLocker。

 

备注

托管对象格式 (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