Les på engelsk Rediger

Del via


IsOwnershipAllowed method of the Win32_Tpm class

The IsOwnershipAllowed method of the Win32_Tpm class indicates whether the ability to install an owner for the device is permitted.

Syntax

uint32 IsOwnershipAllowed(
  [out] boolean IsOwnershipAllowed
);

Parameters

IsOwnershipAllowed [out]

Type: boolean

If true, the ability to install an owner for the device is permitted. If false, the method TakeOwnership will fail to install an owner for the device.

This value can be changed with the SetPhysicalPresenceRequest method. The value is reset to true after the Clear method is run.

Return value

Type: uint32

All TPM errors as well as errors specific to TPM Base Services can be returned.

Common return codes are listed below.

Return code/value Description
S_OK
0 (0x0)
The method was successful.

 

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\CIMV2\Security\MicrosoftTpm
MOF
Win32_tpm.mof
DLL
Win32_tpm.dll

See also

Win32_Tpm