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.

95 lines
2.7 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_load.hxx
  7. // It contains the definition for COleLoadTest class.
  8. //
  9. //
  10. // History: SanjayK Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef _BM_LOAD_HXX_
  14. #define _BM_LOAD_HXX_
  15. #include <bm_base.hxx>
  16. class COleLoadTest : public CTestBase
  17. {
  18. public:
  19. virtual TCHAR *Name ();
  20. virtual SCODE Setup (CTestInput *input);
  21. virtual SCODE Run ();
  22. virtual SCODE Report (CTestOutput &OutputFile);
  23. virtual SCODE Cleanup ();
  24. private:
  25. ULONG m_ulIterations;
  26. #ifdef STRESS
  27. CSimpleSite* m_pSite[STRESSCOUNT];
  28. #else
  29. CSimpleSite* m_pSite[TEST_MAX_ITERATIONS];
  30. #endif
  31. CSimpleDoc* m_lpDoc;
  32. CLSID m_clsidOutl;
  33. ULONG m_ulEmbedLoadOutl[TEST_MAX_ITERATIONS];
  34. ULONG m_ulEmbedSaveOutl[TEST_MAX_ITERATIONS];
  35. ULONG m_ulEmbedLoadRenderDrawOutl[TEST_MAX_ITERATIONS];
  36. ULONG m_ulEmbedSaveRenderDrawOutl[TEST_MAX_ITERATIONS];
  37. ULONG m_ulEmbedLoadRenderAsisOutl[TEST_MAX_ITERATIONS];
  38. ULONG m_ulEmbedSaveRenderAsisOutl[TEST_MAX_ITERATIONS];
  39. ULONG m_ulEmbedLoadRenderBMOutl[TEST_MAX_ITERATIONS];
  40. ULONG m_ulEmbedSaveRenderBMOutl[TEST_MAX_ITERATIONS];
  41. ULONG m_ulLinkLoadOutl[TEST_MAX_ITERATIONS];
  42. ULONG m_ulLinkAndSaveOutl[TEST_MAX_ITERATIONS];
  43. ULONG m_ulLinkLoadRenderDrawOutl[TEST_MAX_ITERATIONS];
  44. ULONG m_ulLinkAndSaveRenderDrawOutl[TEST_MAX_ITERATIONS];
  45. ULONG m_ulStaticAndLoadRenderDrawOutl[TEST_MAX_ITERATIONS];
  46. ULONG m_ulStaticAndSaveRenderDrawOutl[TEST_MAX_ITERATIONS];
  47. ULONG m_ulStaticAndLoadRenderBMOutl[TEST_MAX_ITERATIONS];
  48. ULONG m_ulStaticAndSaveRenderBMOutl[TEST_MAX_ITERATIONS];
  49. };
  50. BOOL CallCreateLoadAndSave(REFCLSID rclsid, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  51. LPFORMATETC pFormatEtc, ULONG ulIterations,
  52. ULONG uOleLoadtime[], ULONG uOleSavetime[]);
  53. BOOL CallLinkLoadAndSave(LPCOLESTR lpFileName, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  54. LPFORMATETC pFormatEtc, ULONG ulIterations,
  55. ULONG uOleLoadtime[], ULONG uOleSavetime[]);
  56. BOOL LoadAndSave(CSimpleSite * pSite[], ULONG ulIterations,
  57. ULONG uOleLoadtime[], ULONG uOleSavetime[]);
  58. BOOL CallStaticLoadAndSave(REFCLSID rclsid, CSimpleDoc FAR * m_lpDoc, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  59. LPFORMATETC pFormatEtc, ULONG ulIterations,
  60. ULONG uOleLoadtime[], ULONG uOleSavetime[]);
  61. #endif