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.

37 lines
1003 B

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: utils.hxx
  7. //
  8. //
  9. // History: SanjayK Created
  10. //
  11. //--------------------------------------------------------------------------
  12. #ifndef _UTILS_HXX_
  13. #define _UTILS_HXX_
  14. #ifdef STRESS
  15. #define GetTimerVal(var)
  16. #else
  17. #define GetTimerVal(var) var = sw.Read()
  18. #endif //STRESS
  19. #define STRESSCOUNT 50
  20. #define OutlineClassName L"OLE2SvrOutl32"
  21. #define lpszTab TEXT("\t")
  22. #define lpszSUCCESS TEXT("returned SUCCESS")
  23. #define lpszFAIL TEXT("returned FAIL")
  24. extern TCHAR vlpScratchBuf[];
  25. #define LOGRESULTS(lpstr, hres) \
  26. if (hres == NOERROR) \
  27. wsprintf(vlpScratchBuf, TEXT("%s %s, hres = "), lpstr, lpszSUCCESS);\
  28. else \
  29. wsprintf(vlpScratchBuf, TEXT("%s %s"), lpstr, lpszFAIL); \
  30. Log(vlpScratchBuf, hres);
  31. #endif //UTILS_HXX