Win32_Tpm 类的 IsOwnershipAllowed 方法

Win32_Tpm 类的 IsOwnershipAllowed 方法指示是否允许安装设备所有者的功能。

语法

uint32 IsOwnershipAllowed(
  [out] boolean IsOwnershipAllowed
);

parameters

IsOwnershipAllowed [out]

类型: 布尔值

如果 为 true,则允许为设备安装所有者。 如果 为 false,则 TakeOwnership 方法将无法安装设备的所有者。

可以使用 SetPhysicalPresenceRequest 方法更改此值。 运行 Clear 方法后,该值重置为 true

返回值

类型: uint32

可以返回所有 TPM 错误以及特定于 TPM 基本服务的错误。

下面列出了常见的返回代码。

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

 

备注

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

要求

要求
最低受支持的客户端
Windows Vista [仅限桌面应用]
最低受支持的服务器
Windows Server 2008 [仅限桌面应用]
命名空间
Root\CIMV2\Security\MicrosoftTpm
MOF
Win32_tpm.mof
DLL
Win32_tpm.dll

请参阅

Win32_Tpm