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

  1. // WMIObjectBroker.h : Declaration of the CWMIObjectBroker
  2. #ifndef __WMIOBJECTBROKER_H_
  3. #define __WMIOBJECTBROKER_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CWMIObjectBroker
  7. class ATL_NO_VTABLE CWMIObjectBroker :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CWMIObjectBroker, &CLSID_WMIObjectBroker2>,
  10. public IDispatchImpl<IWMIObjectBroker, &IID_IWMIObjectBroker, &LIBID_WMISCRIPTUTILSLib2>,
  11. public IObjectSafetyImpl<CWMIObjectBroker, INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_SECURITY_MANAGER>,
  12. public IObjectWithSiteImpl<CWMIObjectBroker>
  13. {
  14. public:
  15. CWMIObjectBroker()
  16. {
  17. }
  18. DECLARE_REGISTRY_RESOURCEID(IDR_WMIOBJECTBROKER)
  19. DECLARE_PROTECT_FINAL_CONSTRUCT()
  20. BEGIN_COM_MAP(CWMIObjectBroker)
  21. COM_INTERFACE_ENTRY(IWMIObjectBroker)
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. COM_INTERFACE_ENTRY(IObjectSafety)
  24. COM_INTERFACE_ENTRY(IObjectWithSite)
  25. END_COM_MAP()
  26. // IWMIObjectBroker
  27. public:
  28. STDMETHOD(CanCreateObject)(/*[in]*/ BSTR strProgId, /*[out, retval]*/ VARIANT_BOOL *bResult);
  29. STDMETHOD(CreateObject)(BSTR strProgId, IDispatch **obj);
  30. STDMETHOD(SetDevEnvironment)(/*[in]*/ IDispatch *pEnv);
  31. };
  32. #endif //__WMIOBJECTBROKER_H_