Tbsip_Cancel_Commands function (tbs.h)
Cancels all outstanding commands for the specified context.
Syntax
TBS_RESULT Tbsip_Cancel_Commands(
[in] TBS_HCONTEXT hContext
);
Parameters
[in] hContext
A TBS handle to the context whose commands are to be canceled and that was obtained from previous call to the Tbsi_Context_Create function.
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 |
---|---|
|
The function was successful. |
|
An internal software error occurred. |
|
The specified context handle does not refer to a valid context. |
|
An error occurred while communicating with the TPM. |
Remarks
When a command is canceled, TBS sends a message to the command that indicates that the command was canceled.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | tbs.h |
Library | Tbs.lib |
DLL | Tbs.dll |