Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide
12-3
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
Chapter 12 Helper Classes
Arg Class
In many scenarios, programmers will stick to Arguments (see the preceding
section), which wraps many Arg methods and encapsulates a collection of Arg
objects.
section), which wraps many Arg methods and encapsulates a collection of Arg
objects.
AddRef
The AddRef method increments the reference count for the data item. It is
necessary to call this if you are storing a pointer to the item for some time (for
example, if you plan to store and use Arguments received in an event handler after
the event thread has returned to the calling code). When you are finished with the
item, you must call the Release method or a memory leak will result.
necessary to call this if you are storing a pointer to the item for some time (for
example, if you plan to store and use Arguments received in an event handler after
the event thread has returned to the calling code). When you are finished with the
item, you must call the Release method or a memory leak will result.
Syntax
C++:
unsigned long AddRef()
COM:
HRESULT AddRef()
VB, Java:
Not used
Parameters
None.
Return Values
COM: Default HRESULT return values. See
GetValueInt
GetValueUInt
GetValueUInt
GetValueUShort
GetValueShort
GetValueBool
GetValueString
GetValueUInt
GetValueUInt
GetValueUShort
GetValueShort
GetValueBool
GetValueString
Returns the value stored in the argument.
SetValue
Sets the data in the Arg object.
Table 12-1 Arg Class Methods (continued)