# COMAddObjectReference (W*S)

COM Function: Adds a reference to an object's interface.

## Module

USE IFCOM

result = COMAddObjectReference (iunknown)

iunknown | An IUnKnown interface pointer. Must be of type INTEGER(INT_PTR_KIND()).

## Results

The result type is INTEGER(4). It is the object's current reference count.

Parent topic: Automation Server (AUTO) and Component Object Model (COM) Library Routines