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.

71 lines
1.3 KiB

  1. // SsrCore.h : Declaration of the CSsrCore
  2. #pragma once
  3. #include "resource.h"
  4. #include <vector>
  5. using namespace std;
  6. class CSsrMembership;
  7. class CSsrActionData;
  8. class CSsrEngine;
  9. class CSafeArray;
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSSRTEngine
  12. class ATL_NO_VTABLE CSsrCore :
  13. public CComObjectRootEx<CComSingleThreadModel>,
  14. public CComCoClass<CSsrCore, &CLSID_SsrCore>,
  15. public IDispatchImpl<ISsrCore, &IID_ISsrCore, &LIBID_SSRLib>
  16. {
  17. protected:
  18. CSsrCore();
  19. virtual ~CSsrCore();
  20. //
  21. // we don't want anyone (include self) to be able to do an assignment
  22. // or invoking copy constructor.
  23. //
  24. CSsrCore (const CSsrCore& );
  25. void operator = (const CSsrCore& );
  26. public:
  27. DECLARE_REGISTRY_RESOURCEID(IDR_SSRTENGINE)
  28. DECLARE_PROTECT_FINAL_CONSTRUCT()
  29. BEGIN_COM_MAP(CSsrCore)
  30. COM_INTERFACE_ENTRY(ISsrCore)
  31. COM_INTERFACE_ENTRY(IDispatch)
  32. END_COM_MAP()
  33. // ISsrCore
  34. public:
  35. STDMETHOD(get_ActionData)(
  36. OUT VARIANT * pVal // [out, retval]
  37. );
  38. STDMETHOD(get_Engine)(
  39. OUT VARIANT * pVal // [out, retval]
  40. );
  41. STDMETHOD(get_SsrLog)(
  42. OUT VARIANT * pVal // [out, retval]
  43. );
  44. private:
  45. CComObject<CSsrEngine> * m_pEngine;
  46. };