Tbsi_GetDeviceInfo function (tbs.h)

Obtains the version of the TPM on the computer.


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


[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
0 (0x0)
The function was successful.
2150121474 (0x80284002)
One or more parameter values are not valid.
2150121487 (0x8028400F)
A compatible Trusted Platform Module (TPM) Security Device cannot be found on this computer.


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