template< const CLSID* pcoclsid, const IID* psrcid, const GUID* plibid, WORD wMajor = 1, WORD wMinor = 0, class tihclass =
CComTypeInfoHolder >
class IProvideClassInfo2Impl : public IProvideClassInfo2
Parameters
pcoclsid A pointer to the coclass' identifier.
psrcid A pointer to the identifier for the coclass' default outgoing dispinterface.
plibid A pointer to the identifier of the coclass' type library.
wMajor The major version of the type library. The default value is 1.
wMinor The minor version of the type library. The default value is 0.
tihclass The class used to manage the coclass' type information. The default value is CComTypeInfoHolder.
The IProvideClassInfo2 interface extends IProvideClassInfo by adding the GetGUID method. This method allows a client to retrieve an objects outgoing interface IID for its default event set. Class IProvideClassInfo2Impl provides a default implementation of the IProvideClassInfo and IProvideClassInfo2 methods.
IProvideClassInfo2Impl contains a static member of type CComTypeInfoHolder that manages the type information for the coclass.
#include <atlcom.h>
See Also IProvideClassInfo and IProvideClassInfo2 in the Win32 SDK
Class Methods | |
IProvideClassInfo2Impl | Constructor. |
IProvideClassInfo Methods | |
GetClassInfo | Retrieves a pointer to the ITypeInfo interface that describes the interface specified by the template parameter, psrcid. |
IProvideClassInfo2 Methods | |
GetGUID | Retrieves the GUID for the object's outgoing dispinterface. |
Data Members | |
_tih | Manages the type information for the coclass. |
IProvideClassInfo2Impl Overview
HRESULT GetClassInfo( ITypeInfo** pptinfo );
See IProvideClassInfo2::GetClassInfo in the Win32 SDK.
Remarks
Retrieves an ITypeInfo pointer to the coclass type information.
IProvideClassInfo2Impl Overview | Class Members
See Also ITypeInfo in the Win32 SDK
HRESULT GetGUID( DWORD dwGuidKind, GUID* pGUID );
See IProvideClassInfo2::GetGUID in the Win32 SDK.
Remarks
Retrieves the GUID for the objects outgoing dispinterface.
IProvideClassInfo2Impl Overview | Class Members
IProvideClassInfo2Impl( );
Remarks
The constructor. Calls AddRef on the _tih member. The destructor calls Release.
IProvideClassInfo2Impl Overview | Class Members
static tihclass _tih;
Remarks
This static data member is an instance of the class template parameter, tihclass, which by default is CComTypeInfoHolder. _tih manages the type information for the coclass.