#define TPM_E_ERROR_MASK _HRESULT_TYPEDEF_(0x80280000L)
===============================
TPM Services and TPM Software Error Messages
===============================
The TPM services and TPM software facilities are used by the various
TPM software components. There are two facilities because the services
errors are within the TCG-defined error space and the software errors
are not.
The following are the subranges within the TPM Services facility.
The TPM hardware errors are defined in the document
TPM Main Specification 1.2 Part 2 TPM Structures.
The TBS errors are slotted into the TCG error namespace at the TBS layer.
0x0000 - 0x08ff TPM hardware errors
0x4000 - 0x40ff TPM Base Services errors (tbssvc.dll)
The following are the subranges within the TPM Software facility. The TBS
has two classes of errors - those that can be returned (the public errors,
defined in the TBS spec), which are in the TPM services facility, and
those that are internal or implementation specific, which are here in the
TPM software facility.
0x0000 - 0x00ff TPM device driver errors (tpm.sys)
0x0100 - 0x01ff TPM API errors (tpmapi.lib)
0x0200 - 0x02ff TBS internal errors (tbssvc.dll)
0x0300 - 0x03ff TPM Physical Presence errors
TPM hardware error codes {0x0000..0x08ff}
This space is further subdivided into hardware errors, vendor-specific
errors, and non-fatal errors.
TPM hardware errors {0x0000..0x003ff}
MessageId: TPM_E_ERROR_MASK
MessageText:
This is an error mask to convert TPM hardware errors to win errors.