Interface ITcUnknown

ITcUnknown defines the reference count as well as the querying of a reference to a more specific interface.

Syntax

TCOM_DECL_INTERFACE("00000001-0000-0000-e000-000000000064", ITcUnknown)

Declared in: TcInterfaces.h

Required include: -

Interface ITcUnknown 1: Methods

Name

Description

TcAddRef

Increments the reference counter.

TcQueryInterface

Query of the reference to an implemented interface via the IID.

TcRelease

Decrements the reference counter.

Every TcCOM interface is derived directly or indirectly from ITcUnknown. As a result, every TcCOM module class implements ITcUnknown because it is derived from ITComObject.

The standard implementation of ITcUnknown ensures that the object is deleted after the last reference is released. For this reason, an interface pointer must not be dereferenced after calling TcRelease().