Admin Production ni-theme
Current Publication

CA_ServerAddRef

LabWindows/CVI

CA_ServerAddRef

unsigned int CA_ServerAddRef (IUnknown *thisInterfacePtr);

Purpose

Implementation of the IUnknown::AddRef method used in the ActiveX servers generated by the ActiveX Server Wizard. This function controls the lifetime of a COM object. CA_ServerAddRef increments the internal reference count of the object.

Parameters

Input
Name Type Description
thisInterfacePtr IUnknown * The IUnknown interface pointer of your ActiveX object.

Return Value

Name Type Description
referenceCount unsigned int The value of the new reference count on the object.

Use this information for diagnostic/testing purposes only, because in certain situations the value might be unstable.

Additional Information

Library: ActiveX Library

Include file: cviauto.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later