Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
12-10
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 12      Helper Classes
Arg Class
Return Values
C++
Methods taking no parameters, if successful, will return the value in the object; 
otherwise, they will raise a CCtiosException with iCode set to 
E_CTIOS_INVALID_ARGUMENT.
The methods taking a pointer to the variable receiving the result will return true, 
if the method was able to get the value, otherwise, false.
Java 
Returns null if method failed.
.NET
Returns false if method failed.
COM 
If the method was able to set the variant type of the value (i.e., value->vt) to any 
of the types listed in 
, it returns the value in the appropriate field of the 
variant. Otherwise it returns VT_EMPTY. 
Release
The Release method decrements the reference count for the data item. It is 
necessary to call Release when you are finished with a data item that has had its 
reference count incremented via CreateInstance or AddRef; otherwise, a memory 
leak will result.
Syntax
C++: 
unsigned long Release()
COM:
HRESULT Release()
VB, Java, .NET: 
Not used
Parameters
None.