Win32_EncryptableVolume 类的 GetExternalKeyFromFile 方法

Win32_EncryptableVolume 类的 GetExternalKeyFromFile 方法返回由 SaveExternalKeyToFile 创建的文件中的外部键,给定该文件的位置。

语法

uint32 GetExternalKeyFromFile(
  [in]  string PathWithFileName,
  [out] uint8  ExternalKey[]
);

parameters

PathWithFileName [in]

类型: 字符串

一个字符串,指定包含外部键的文件的位置。

ExternalKey [out]

类型: uint8[]

字节数组,它是文件中包含的可用于解锁卷的 256 位外部密钥。

返回值

类型: uint32

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

返回代码/值 说明
S_OK
0 (0x0)
方法成功。
E_INVALIDARG
2147942487 (0x80070057)
该文件不包含外部键。
ERROR_FILE_NOT_FOUND
2147942402 (0x80070002)
在指定的位置找不到文件。

 

备注

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