Msvm_SecurityService 类的 GetKeyProtector 方法

检索虚拟系统的密钥保护程序。

语法

uint32 GetKeyProtector(
  [in]  string SecuritySettingData,
  [out] uint8  KeyProtector[]
);

参数

SecuritySettingData [in]

字符串包含表示虚拟系统安全设置的 Msvm_SecuritySettingData 类的嵌入实例。

KeyProtector [out]

接收包含当前正在使用的密钥保护程序的原始字节数组。

返回值

成功后,返回 0 或 4096。 否则,将返回错误。

已完成,无错误 (0)

方法参数已选中 - 作业已启动 (4096)

( 32768) 失败

拒绝访问 (32769)

不支持 (32770)

状态未知 (32771)

超时 (32772)

参数 (32773) 无效

系统正在使用 (32774)

此操作的无效状态 (32775)

数据类型 (32776) 不正确

系统 ( 32777) 不可用

内存不足 (32778)

要求

要求
最低受支持的客户端
Windows 10版本 1703 [仅限桌面应用]
最低受支持的服务器
Windows Server 2016
命名空间
Root\virtualization\v2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

另请参阅

Msvm_SecurityService