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.

38 lines
1.3 KiB

  1. // WMIObjectBrokerRegistration.h : Declaration of the CWMIObjectBrokerRegistration
  2. #ifndef __WMIOBJECTBROKERREGISTRATION_H_
  3. #define __WMIOBJECTBROKERREGISTRATION_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CWMIObjectBrokerRegistration
  7. class ATL_NO_VTABLE CWMIObjectBrokerRegistration :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CWMIObjectBrokerRegistration, &CLSID_WMIObjectBrokerRegistration2>,
  10. public IDispatchImpl<IWMIObjectBrokerRegistration, &IID_IWMIObjectBrokerRegistration, &LIBID_WMISCRIPTUTILSLib2>,
  11. public IObjectWithSiteImpl<CWMIObjectBrokerRegistration>
  12. {
  13. public:
  14. CWMIObjectBrokerRegistration()
  15. {
  16. }
  17. DECLARE_REGISTRY_RESOURCEID(IDR_WMIOBJECTBROKERREGISTRATION)
  18. DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CWMIObjectBrokerRegistration)
  20. COM_INTERFACE_ENTRY(IWMIObjectBrokerRegistration)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. COM_INTERFACE_ENTRY(IObjectWithSite)
  23. END_COM_MAP()
  24. // IWMIObjectBrokerRegistration
  25. public:
  26. STDMETHOD(UnRegister)(/*[in]*/ BSTR strProgId, /*[out, retval]*/ VARIANT_BOOL *bResult);
  27. STDMETHOD(Register)(/*[in]*/ BSTR strProgId, /*[out, retval]*/ VARIANT_BOOL *bResult);
  28. STDMETHOD(SetDevEnvironment)(/*[in]*/ IDispatch *pEnv);
  29. };
  30. #endif //__WMIOBJECTBROKERREGISTRATION_H_