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.

85 lines
1.5 KiB

  1. extern int iGMessageLevel;
  2. extern int iTest1;
  3. extern HANDLE hMonitorSemaphore;
  4. extern HANDLE hReadWriteSemaphore;
  5. extern int iTest2;
  6. UINT AtoI(PUCHAR pStr, UINT Radix, PUINT pResult);
  7. #ifdef DBG
  8. #define OutputDebugStringD(_x_) \
  9. {\
  10. OutputDebugStringA("Old OutputDebugStringD\n");\
  11. OutputDebugStringA(_x_); \
  12. }
  13. #define OutputDebugStringD0(_x_) \
  14. OutputDebugStringA(_x_);
  15. #define OutputDebugStringD1(_x_) \
  16. {\
  17. if(iGMessageLevel>=1) \
  18. OutputDebugStringA(_x_); \
  19. }
  20. #define OutputDebugStringD2(_x_) \
  21. {\
  22. if(iGMessageLevel>=2) \
  23. OutputDebugStringA(_x_);\
  24. }
  25. #define OutputDebugStringD3(_x_) \
  26. {\
  27. if(iGMessageLevel>=3) \
  28. OutputDebugStringA(_x_);\
  29. }
  30. #define OutputDebugStringWD0(_x_) \
  31. OutputDebugStringW(_x_);
  32. #define OutputDebugStringWD1(_x_) \
  33. {\
  34. if(iGMessageLevel>=1) \
  35. OutputDebugStringW(_x_);\
  36. }
  37. #define OutputDebugStringWD2(_x_) \
  38. { \
  39. if(iGMessageLevel>=2) \
  40. OutputDebugStringW(_x_);\
  41. }
  42. #define OutputDebugStringWD3(_x_) \
  43. { \
  44. if(iGMessageLevel>=3) \
  45. OutputDebugStringW(_x_);\
  46. }
  47. #define printfD wsprintf
  48. #define OuptutDebigStringWD(_x_) \
  49. { \
  50. OutputDebugStringW("Old OutputDebugStringWD\n"); \
  51. OutputDebugStringW(_x_); \
  52. }
  53. #else
  54. #define OutputDebugStringWD0
  55. #define OutputDebugStringWD1
  56. #define OutputDebugStringWD2
  57. #define OutputDebugStringWD3
  58. #define OutputDebugStringD0
  59. #define OutputDebugStringD
  60. #define OutputDebugStringD1
  61. #define OutputDebugStringD2
  62. #define OutputDebugStringD3
  63. #define printfD
  64. #endif