OpenAPI User Guide > OpenAPI User Guide > OpenAPI Function Reference > OpenAPI Functions > IIapi_terminate() Function--Terminate OpenAPI
Was this helpful?
IIapi_terminate() Function--Terminate OpenAPI
The IIapi_terminate() function cleans up all OpenAPI resources. This function should be called when OpenAPI functions are no longer used in the application. If multiple calls to IIapi_initialize() have been made, the OpenAPI is shut down only when the last corresponding call to this function is made; a warning status is returned otherwise.
This function has the following syntax:
II_VOID IIapi_terminate (IIAPI_TERMPARM *termParm);
typedef struct _IIAPI_TERMPARM
{
       IIAPI_STATUS   tm_status;
} IIAPI_TERMPARM;
This statement has the following parameter:
tm_status
Type: output
The status of the function upon its return. Its value is one of the following:
IIAPI_ST_SUCCESS
IIAPI_ST_NOT_INITIALIZED
IIAPI_ST_WARNING
Last modified date: 08/28/2024