Destroying the Usage Intelligence SDK Instance
The ruiDestroyInstance() function destroys an instance of the SDK, created with ruiCreateInstance().
The destructor is a synchronous function, returning when all functionality is completed.
RUIRESULT ruiDestroyInstance(RUIINSTANCE* ruiInstance)
                                        
Returns
The ruiDestroyInstance() function returns one of the return status constants below.
| 
                                                         Return  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         RUI_OK  | 
                                                    
                                                         Function successful.  | 
                                                
| 
                                                         RUI_INVALID_SDK_OBJECT  | 
                                                    
                                                         SDK Instance parameter is NULL or invalid.  | 
                                                
| 
                                                         RUI_SDK_INTERNAL_ERROR_FATAL  | 
                                                    
                                                         Irrecoverable internal fatal error. No further API calls should be made.  |