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.

67 lines
1.7 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_crt.hxx
  7. //
  8. // Contents: test creation apis
  9. //
  10. // Classes: CCreateApis
  11. //
  12. // Functions:
  13. //
  14. // History:
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_CREATE_HXX_
  18. #define _BM_CREATE_HXX_
  19. #include <bm_base.hxx>
  20. class CCreateTest : public CTestBase
  21. {
  22. public:
  23. virtual TCHAR *Name ();
  24. virtual SCODE Setup (CTestInput *input);
  25. virtual SCODE Run ();
  26. virtual SCODE Report (CTestOutput &OutputFile);
  27. virtual SCODE Cleanup ();
  28. private:
  29. ULONG m_ulIterations;
  30. #ifdef STRESS
  31. CSimpleSite* m_pSite[STRESSCOUNT];
  32. #else
  33. CSimpleSite* m_pSite[TEST_MAX_ITERATIONS];
  34. #endif
  35. CSimpleDoc* m_lpDoc;
  36. CLSID m_clsidSr32;
  37. CLSID m_clsidOutl;
  38. // Create Apis
  39. ULONG m_ulOleCreateSr32[TEST_MAX_ITERATIONS];
  40. ULONG m_ulOleCreateOutl[TEST_MAX_ITERATIONS];
  41. ULONG m_ulOleCreateRenderDrawSr32[TEST_MAX_ITERATIONS];
  42. ULONG m_ulOleCreateRenderDrawOutl[TEST_MAX_ITERATIONS];
  43. ULONG m_ulOleCreateRenderFormatMFSr32[TEST_MAX_ITERATIONS];
  44. ULONG m_ulOleCreateRenderFormatMFOutl[TEST_MAX_ITERATIONS];
  45. ULONG m_ulOleCreateRenderFormatBMSr32[TEST_MAX_ITERATIONS];
  46. ULONG m_ulOleCreateRenderFormatBMOutl[TEST_MAX_ITERATIONS];
  47. ULONG m_ulOleCreateRenderFormatTextSr32[TEST_MAX_ITERATIONS];
  48. ULONG m_ulOleCreateRenderFormatTextOutl[TEST_MAX_ITERATIONS];
  49. };
  50. BOOL CallOleCreate(REFCLSID rclsid, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  51. LPFORMATETC pFormatEtc, ULONG ulIterations, ULONG uOleCreatetime[]);
  52. #endif