TBS_CONTEXT_PARAMS2 structure (tbs.h)

Specifies the version of the TBS context implementation. You must use this structure if your application works with both versions of TPM.

Applications interacting with just TPM 2.0 should pass a pointer to a TBS_CONTEXT_PARAMS2 structure, with version set to TPM_VERSION_20, and includeTpm20 set to 1.

Applications interacting with both TPM 1.2 and TPM 2.0 should pass a pointer to a TBS_CONTEXT_PARAMS2 structure, with version set to TPM_VERSION_20, includeTpm20 set to 1, and includeTpm12 set to 1.

Syntax

typedef struct tdTBS_CONTEXT_PARAMS2 {
    UINT32 version;
  union {
    struct {
      UINT32 requestRaw : 1;
      UINT32 includeTpm12 : 1;
      UINT32 includeTpm20 : 1;
    };
      UINT32 asUINT32;
  };
} TBS_CONTEXT_PARAMS2, *PTBS_CONTEXT_PARAMS2;

Members

version

The version of the TBS context implementation. This must be set to TPM_VERSION_20.

requestRaw

includeTpm12

includeTpm20

asUINT32

Used to access all of the bits in one variable.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header tbs.h