IUnknown Macro

To simplify the creation of new interfaces, the Combase.h header file includes a macro that declares the three methods of the IUnknown interface.

DECLARE_IUNKNOWN Declares the three methods of the base interface for a new interface.

DECLARE_IUNKNOWN

IUnknown Macro

Declares the three methods of the base interface for a new interface.

Syntax

#define DECLARE_IUNKNOWN

Remarks

When you create a new interface, it must derive from IUnknown, which has three methods: QueryInterface, AddRef, and Release. This macro simplifies the declaration process by declaring each of these methods for the new interface.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.