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.8 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_crtl.hxx
  7. //
  8. // Contents: test creation apis
  9. //
  10. // Classes: CCreateLinkApis
  11. //
  12. // Functions:
  13. //
  14. // History:
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_CRTL_HXX_
  18. #define _BM_CRTL_HXX_
  19. #include <bm_base.hxx>
  20. class CCreateLinkTest : 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. // CreateLink Apis
  39. ULONG m_ulOleCreateLinkSr32[TEST_MAX_ITERATIONS];
  40. ULONG m_ulOleCreateLinkOutl[TEST_MAX_ITERATIONS];
  41. ULONG m_ulOleCreateLinkRenderDrawSr32[TEST_MAX_ITERATIONS];
  42. ULONG m_ulOleCreateLinkRenderDrawOutl[TEST_MAX_ITERATIONS];
  43. ULONG m_ulOleCreateLinkRenderFormatMFSr32[TEST_MAX_ITERATIONS];
  44. ULONG m_ulOleCreateLinkRenderFormatMFOutl[TEST_MAX_ITERATIONS];
  45. ULONG m_ulOleCreateLinkRenderFormatBMSr32[TEST_MAX_ITERATIONS];
  46. ULONG m_ulOleCreateLinkRenderFormatBMOutl[TEST_MAX_ITERATIONS];
  47. ULONG m_ulOleCreateLinkRenderFormatTextSr32[TEST_MAX_ITERATIONS];
  48. ULONG m_ulOleCreateLinkRenderFormatTextOutl[TEST_MAX_ITERATIONS];
  49. };
  50. BOOL CallOleCreateLink(LPCOLESTR lpszFileName, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  51. LPFORMATETC pFormatEtc, ULONG ulIterations, ULONG uOleCreateLinktime[]);
  52. #endif