You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
// CPeerFactory.h : Declaration of the CPeerFactory
|
|
|
|
#ifndef __PEERFACT_H_
|
|
#define __PEERFACT_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPeerFactory
|
|
|
|
class ATL_NO_VTABLE CPeerFactory :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CPeerFactory, &CLSID_PeerFactory>,
|
|
public IElementBehaviorFactory,
|
|
public IElementNamespaceFactory
|
|
{
|
|
public:
|
|
//
|
|
// construction / destruction
|
|
//
|
|
|
|
CPeerFactory();
|
|
~CPeerFactory();
|
|
|
|
//
|
|
// IElementBehaviorFactory
|
|
//
|
|
|
|
STDMETHOD(FindBehavior)(
|
|
BSTR bstrName, BSTR bstrUrl, IElementBehaviorSite * pSite, IElementBehavior ** ppPeer);
|
|
|
|
//
|
|
// IElementNamespaceFactory
|
|
//
|
|
|
|
STDMETHOD(Create)(IElementNamespace * pNamespace);
|
|
|
|
//
|
|
// macros
|
|
//
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_PEERFACTORY)
|
|
|
|
BEGIN_COM_MAP(CPeerFactory)
|
|
COM_INTERFACE_ENTRY(IElementBehaviorFactory)
|
|
COM_INTERFACE_ENTRY(IElementNamespaceFactory)
|
|
END_COM_MAP()
|
|
|
|
};
|
|
|
|
#endif //__PEERFACT_H_
|