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.

41 lines
1.1 KiB

  1. // CfgMntAdmin.h : Declaration of the CCfgMntAdmin
  2. #ifndef __CFGMNTADMIN_H_
  3. #define __CFGMNTADMIN_H_
  4. #include "resource.h" // main symbols
  5. #include "VerEngine.h"
  6. #include "CfgMntModule.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CCfgMntAdmin
  9. class ATL_NO_VTABLE CCfgMntAdmin :
  10. public CComObjectRootEx<CComSingleThreadModel>,
  11. public CComCoClass<CCfgMntAdmin, &CLSID_CfgMntAdmin>,
  12. public IDispatchImpl<ICfgMntAdmin, &IID_ICfgMntAdmin, &LIBID_CFGMNTLib>
  13. {
  14. public:
  15. CCfgMntAdmin()
  16. {
  17. _ASSERTE(g_pCfgMntModule);
  18. m_pVerEngine = &g_pCfgMntModule->m_VerEngine;
  19. }
  20. DECLARE_REGISTRY_RESOURCEID(IDR_CFGMNTADMIN)
  21. BEGIN_COM_MAP(CCfgMntAdmin)
  22. COM_INTERFACE_ENTRY(ICfgMntAdmin)
  23. COM_INTERFACE_ENTRY(IDispatch)
  24. END_COM_MAP()
  25. // ICfgMntAdmin
  26. public:
  27. STDMETHOD(ShutDown)();
  28. STDMETHOD(Rollback)(/*[in]*/BSTR bstrMDPath,/*[in]*/BSTR bstrDateTime);
  29. STDMETHOD(GetVersions)(/*[in]*/BSTR bstrMDPath, /*[out,retval]*/IUnknown **hICfgMntVersions);
  30. STDMETHOD(GetHistory)(/*[in]*/BSTR bstrMDPath);
  31. private:
  32. CVerEngine * m_pVerEngine;
  33. };
  34. #endif //__CFGMNTADMIN_H_