Leaked source code of windows server 2003
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.
 
 
 
 
 
 

42 lines
1.3 KiB

// 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<CComSingleThreadModel>,
public CComCoClass<CWMIObjectBroker, &CLSID_WMIObjectBroker2>,
public IDispatchImpl<IWMIObjectBroker, &IID_IWMIObjectBroker, &LIBID_WMISCRIPTUTILSLib2>,
public IObjectSafetyImpl<CWMIObjectBroker, INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_SECURITY_MANAGER>,
public IObjectWithSiteImpl<CWMIObjectBroker>
{
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_