AllegianceController.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // AllegianceController.h : Declaration of the CAllegianceController
  2. #ifndef __ALLEGIANCECONTROLLER_H_
  3. #define __ALLEGIANCECONTROLLER_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CAllegianceController
  7. class ATL_NO_VTABLE CAllegianceController :
  8. public CComObjectRootEx<CComMultiThreadModel>,
  9. public CComCoClass<CAllegianceController, &CLSID_AllegianceController>,
  10. public ISupportErrorInfo,
  11. public IDispatchImpl<IAllegianceController, &IID_IAllegianceController, &LIBID_FEDSRVLib>
  12. {
  13. public:
  14. CAllegianceController()
  15. {
  16. }
  17. DECLARE_REGISTRY_RESOURCEID(IDR_ALLEGIANCECONTROLLER)
  18. DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CAllegianceController)
  20. COM_INTERFACE_ENTRY(IAllegianceController)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  23. END_COM_MAP()
  24. // ISupportsErrorInfo
  25. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  26. // IAllegianceController
  27. public:
  28. STDMETHOD(KillService)();
  29. STDMETHOD(QueryService)();
  30. STDMETHOD(RemoveService)();
  31. STDMETHOD(InstallService)(BSTR bstrUser, BSTR bstrPassword);
  32. STDMETHOD(StopService)();
  33. STDMETHOD(StartService)();
  34. };
  35. #endif //__ALLEGIANCECONTROLLER_H_