Tbsi_GetDeviceInfo function (tbs.h)

Obtains the version of the TPM on the computer.

Syntax

TBS_RESULT Tbsi_GetDeviceInfo(
  [in]  UINT32 Size,
  [out] PVOID  Info
);

Parameters

[in] Size

Size of the memory location.

[out] Info

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/value Description
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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tbs.h
Library Tbs.lib
DLL Tbs.dll