// WMIObjectBroker.h : Declaration of the CWMIObjectBroker #ifndef __WMIOBJECTBROKER_H_ #define __WMIOBJECTBROKER_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CWMIObjectBroker class ATL_NO_VTABLE CWMIObjectBroker : public CComObjectRootEx, public CComCoClass, public IDispatchImpl, public IObjectSafetyImpl, public IObjectWithSiteImpl { public: CWMIObjectBroker() { } DECLARE_REGISTRY_RESOURCEID(IDR_WMIOBJECTBROKER) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CWMIObjectBroker) COM_INTERFACE_ENTRY(IWMIObjectBroker) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY(IObjectSafety) COM_INTERFACE_ENTRY(IObjectWithSite) END_COM_MAP() // IWMIObjectBroker public: STDMETHOD(CanCreateObject)(/*[in]*/ BSTR strProgId, /*[out, retval]*/ VARIANT_BOOL *bResult); STDMETHOD(CreateObject)(BSTR strProgId, IDispatch **obj); STDMETHOD(SetDevEnvironment)(/*[in]*/ IDispatch *pEnv); }; #endif //__WMIOBJECTBROKER_H_