Index Topic Contents | |||
Previous Topic: Error Message Function Next Topic: INonDelegatingUnknown Interface |
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.
Function Description DECLARE_IUNKNOWN Declares the three methods of the base interface for a new interface. IUnknown Macro
DECLARE_IUNKNOWNDeclares the three methods of the base interface for a new interface.
#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.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.