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.

48 lines
1.3 KiB

  1. // Suites.h: interface for the CSuites class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SUITES_H__50063540_1265_4B9D_AB5E_579294044F0B__INCLUDED_)
  5. #define AFX_SUITES_H__50063540_1265_4B9D_AB5E_579294044F0B__INCLUDED_
  6. #include "resource.h" // main symbols
  7. #include "testdata.h" // for CTSTestData
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. class ATL_NO_VTABLE CSuites :
  12. public CComObjectRootEx<CComSingleThreadModel>,
  13. // public CComCoClass<CTest, &CLSID_TSDiagnosis>,
  14. public IDispatchImpl<ITestSuites, &IID_ITestSuites, &LIBID_TSDIAGLib>
  15. {
  16. public:
  17. CSuites();
  18. virtual ~CSuites();
  19. DECLARE_NO_REGISTRY()
  20. DECLARE_PROTECT_FINAL_CONSTRUCT()
  21. BEGIN_COM_MAP(CSuites)
  22. COM_INTERFACE_ENTRY(ITestSuites)
  23. COM_INTERFACE_ENTRY2(IDispatch, ITestSuites)
  24. END_COM_MAP()
  25. // ITestSuites
  26. public:
  27. STDMETHOD(get_Count)(/*[out, retval]*/ long *pVal);
  28. STDMETHOD(get__NewEnum)(/*[out, retval]*/ LPUNKNOWN *pVal);
  29. STDMETHOD(get_Item)(/*[in]*/ VARIANT Index, /*[out, retval]*/ VARIANT *pVal);
  30. private:
  31. static bool SuiteIndexFromVarient(const VARIANT &pIndex, DWORD *pdwIndex);
  32. // our data and private functions, declared here.
  33. };
  34. #endif // !defined(AFX_SUITES_H__50063540_1265_4B9D_AB5E_579294044F0B__INCLUDED_)