To simplify the creation of new interfaces, the Combase.h header file includes a macro that declares the three methods of the IUnknown interface.
Function | Description |
DECLARE_IUNKNOWN | Declares the three methods of the base interface for a new interface. |
Declares the three methods of the base interface for a new interface.
#define DECLARE_IUNKNOWN
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.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.