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.

87 lines
2.1 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_clip.hxx
  7. // It contains the definition for CClipbrdTest class.
  8. //
  9. //
  10. // History: SanjayK Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef _BM_CLIP_HXX_
  14. #define _BM_CLIP_HXX_
  15. #include <bm_base.hxx>
  16. class CClipbrdTest : 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. // Clipbrd Apis
  34. ULONG m_ulSetClipEmpty;
  35. ULONG m_ulSetClipOutl;
  36. ULONG m_ulOleGetClipbrd[TEST_MAX_ITERATIONS];
  37. ULONG m_ulOleQueryCreate[TEST_MAX_ITERATIONS];
  38. ULONG m_ulOleQueryLink[TEST_MAX_ITERATIONS];
  39. ULONG m_ulCreateFromClipOutl[TEST_MAX_ITERATIONS];
  40. ULONG m_ulCreateFromClipRenderDrawOutl[TEST_MAX_ITERATIONS];
  41. ULONG m_ulCreateFromClipRenderAsisOutl[TEST_MAX_ITERATIONS];
  42. ULONG m_ulCreateFromClipRenderFormatMFOutl[TEST_MAX_ITERATIONS];
  43. ULONG m_ulCreateLinkFromClipOutl[TEST_MAX_ITERATIONS];
  44. ULONG m_ulCreateLinkFromClipRenderDrawOutl[TEST_MAX_ITERATIONS];
  45. ULONG m_ulCreateStaticFromClipRenderDrawOutl[TEST_MAX_ITERATIONS];
  46. ULONG m_ulCreateStaticFromClipRenderDrawBMOutl[TEST_MAX_ITERATIONS];
  47. };
  48. typedef enum {
  49. OLECREATE,
  50. OLECREATELINK,
  51. OLECREATESTATIC
  52. } CREATE_METHOD;
  53. BOOL CallOleGetClipbrd(LPCOLESTR lpszFileName, ULONG ulIterations, ULONG uOleClipbrdtime[], ULONG uOleQT[], ULONG uOleQLT[]);
  54. BOOL CallCreateFromClip(LPCOLESTR lpszFileName, CSimpleSite * pSite[], REFIID riid, DWORD renderopt,
  55. LPFORMATETC pFormatEtc, ULONG ulIterations, ULONG uOleClipbrdtime[], CREATE_METHOD Method);
  56. #endif