Win32_EncryptableVolume 类的 IsAutoUnlockEnabled 方法

Win32_EncryptableVolume 类的 IsAutoUnlockEnabled 方法指示卷装载 (例如,当可移动内存设备连接到计算机) 时,卷是否自动解锁。

语法

uint32 IsAutoUnlockEnabled(
  [out] boolean IsAutoUnlockEnabled,
  [out] string  VolumeKeyProtectorID
);

parameters

IsAutoUnlockEnabled [out]

类型: 布尔值

一个布尔值,如果用于自动解锁卷的外部键存在并且已存储在当前运行的操作系统卷中,则为 true,否则为 false。

VolumeKeyProtectorID [out]

类型: 字符串

包含关联的加密卷密钥保护程序 ID(如果 IsAutoUnlockEnabled 为 true)的唯一字符串标识符。

如果 IsAutoUnlockEnabled 为 false, 则 VolumeKeyProtectorID 为空字符串。

返回值

类型: uint32

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

返回代码/值 说明
S_OK
0 (0x0)
方法成功。
FVE_E_NOT_ACTIVATED
2150694920 (0x80310008)
未在卷上启用 BitLocker。 添加密钥保护程序以启用 BitLocker。
FVE_E_NOT_DATA_VOLUME
2150694937 (0x80310019)
无法对当前运行的操作系统卷运行 方法。

 

备注

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