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.

61 lines
1.4 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_mrsh2.hxx
  7. //
  8. // Contents: test class definition
  9. //
  10. // Classes: COleMarshalTest2
  11. //
  12. // Functions:
  13. //
  14. // History: 29-July-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_MRSH2_HXX_
  18. #define _BM_MRSH2_HXX_
  19. #include <bm_base.hxx>
  20. // # times to marshal consecutively
  21. #undef REPS
  22. #define REPS 16
  23. class COleMarshalTest2 : public CTestBase
  24. {
  25. public:
  26. virtual TCHAR *Name ();
  27. virtual SCODE Setup (CTestInput *input);
  28. virtual SCODE Run ();
  29. virtual SCODE Report (CTestOutput &OutputFile);
  30. virtual SCODE Cleanup ();
  31. SCODE Run2();
  32. private:
  33. DWORD m_dwTID1; // tid of main thread
  34. DWORD m_dwTID2; // tid of worker thread
  35. HANDLE m_hThrd; // handle of worker thread
  36. ULONG m_ulIterations;
  37. DWORD m_dwClsCtx;
  38. CLSID m_ClsID;
  39. IUnknown *m_punk[TEST_MAX_ITERATIONS];
  40. IStream *m_pStm[REPS];
  41. ULONG m_ulMarshalTime[REPS][TEST_MAX_ITERATIONS];
  42. ULONG m_ulUnmarshalTime[REPS][TEST_MAX_ITERATIONS];
  43. ULONG m_ulReleaseTime[REPS][TEST_MAX_ITERATIONS];
  44. ULONG m_ulMarshalTime2[REPS][TEST_MAX_ITERATIONS];
  45. ULONG m_ulUnmarshalTime2[REPS][TEST_MAX_ITERATIONS];
  46. ULONG m_ulReleaseTime2[REPS][TEST_MAX_ITERATIONS];
  47. };
  48. #endif
  49.