Source code of Windows XP (NT5)
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.

49 lines
1.4 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bmcomm.hxx
  7. //
  8. // Contents: definitions for benchmark test
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 30-June-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef __BMCOMM_HXX__
  18. #define __BMCOMM_HXX__
  19. #define NOTAVAIL 0xffffffff
  20. #define TEST_FAILED 0xfffffffe
  21. #define TEST_MAX_ITERATIONS 200
  22. #define INIT_RESULTS(array) \
  23. { for (int xx=0; xx<TEST_MAX_ITERATIONS; xx++) { array[xx]=NOTAVAIL; }; }
  24. #define ZERO_RESULTS(array) \
  25. { for (int xx=0; xx<TEST_MAX_ITERATIONS; xx++) { array[xx]=0; }; }
  26. // count of class contexts
  27. #define CNT_CLSCTX 2
  28. // static externals
  29. extern DWORD g_fFullInfo; // print full execution info
  30. extern DWORD dwaClsCtx[]; // class contexts
  31. extern LPTSTR apszClsCtx[]; // names of class contexts
  32. extern LPTSTR apszClsIDName[]; // .ini names for each class for each ctx
  33. extern LPOLESTR apszPerstName[]; // ptr to name for persistent instances
  34. extern LPOLESTR apszPerstNameNew[]; // ptr to name for persistent instances
  35. extern OLECHAR aszPerstName[2][80]; // actual name for persistent instances
  36. extern OLECHAR aszPerstNameNew[2][80]; // actual name for persistent instances
  37. extern DWORD dwaModes[];
  38. extern LPTSTR saModeNames[];
  39. #endif // __BMCOMM_HXX__