Submits a Trusted Platform Module (TPM) command to TPM Base Services (TBS) for processing.
TBS_RESULT Tbsip_Submit_Command( TBS_HCONTEXT hContext, TBS_COMMAND_LOCALITY Locality, TBS_COMMAND_PRIORITY Priority, PCBYTE pabCommand, UINT32 cbCommand, PBYTE pabResult, PUINT32 pcbResult );
The handle of the context that is submitting the command.
Used to set the locality for the TPM command. This must be one of the following values.
The priority level that the command should have. This parameter can be one of the following values.
A pointer to a buffer that contains the TPM command to process.
The length, in bytes, of the command.
A pointer to a buffer to receive the result of the TPM command. This buffer can be the same as pabCommand.
An integer that, on input, specifies the size, in bytes, of the result buffer. This value is set when the submit command returns. If the supplied buffer is too small, this parameter, on output, is set to the required size, in bytes, for the result.
If the function succeeds, the function returns TBS_SUCCESS.
A command can be submitted successfully and still fail at the TPM. In this case, the failure code is returned as a standard TPM error in the result buffer.
If the function fails, it returns a TBS return code that indicates the error.
||The function was successful.|
||One or more parameter values are not valid.|
||The input or output buffer is too large.|
||An internal software error occurred.|
||The specified output buffer is too small.|
||The specified context handle does not refer to a valid context.|
||A specified output pointer is not valid.|
||An error occurred while communicating with the TPM.|
|Windows version||Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]|