Tbsi_GetDeviceInfo function

Obtains the version of the TPM on the computer.

Syntax


TBS_RESULT WINAPI Tbsi_GetDeviceInfo(
  _In_  UINT32 Size,
  _Out_ PVOID  Info
);

Parameters

Size [in]

Size of the memory location.

Info [out]

A pointer to a TPM_DEVICE_INFO structure is returned containing the version information about the TPM. The location must be large enough to hold four 32-bit values.

Return value

If the function succeeds, the function returns TBS_SUCCESS.

If the function fails, it returns a TBS return code that indicates the error.

Return code/valueDescription
TBS_SUCCESS
0 (0x0)

The function was successful.

TBS_E_BAD_PARAMETER
2150121474 (0x80284002)

One or more parameter values are not valid.

TBS_E_TPM_NOT_FOUND
2150121487 (0x8028400F)

A compatible Trusted Platform Module (TPM) Security Device cannot be found on this computer.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tbs.h

Library

Tbs.lib

DLL

Tbs.dll

 

 

Show: