Tbsip_Context_Close function (tbs.h)

Closes a context handle, which releases resources associated with the context in TBS and closes the binding handle used to communicate with TBS.


TBS_RESULT Tbsip_Context_Close(
  [in] TBS_HCONTEXT hContext


[in] hContext

A handle of the context to be closed.

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.
2150121473 (0x80284001)
An internal software error occurred.
2150121476 (0x80284004)
The specified context handle does not refer to a valid context.


When the context handle is closed, the structure associated with the context handle is zeroed, which ensures that subsequent attempts to use the handle will result in an error. All objects that have been created under this context will be flushed.


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