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.

56 lines
901 B

  1. //*************************************************************
  2. //
  3. // Debugging functions header file
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1995
  7. // All rights reserved
  8. //
  9. //*************************************************************
  10. //
  11. // Debug Levels
  12. //
  13. #define DL_NONE 0x00000000
  14. #define DL_NORMAL 0x00000001
  15. #define DL_VERBOSE 0x00000002
  16. #define DL_LOGFILE 0x00010000
  17. //
  18. // Debug message types
  19. //
  20. #define DM_WARNING 0
  21. #define DM_ASSERT 1
  22. #define DM_VERBOSE 2
  23. //
  24. // Debug macros
  25. //
  26. #if DBG
  27. #define DebugMsg(x) _DebugMsg x
  28. #define DebugReportFailure(x, y) if (FAILED(x)) DebugMsg(y)
  29. #else
  30. #define DebugMsg(x)
  31. #define DebugReportFailure(x, y)
  32. #endif // DBG
  33. //
  34. // Debug function proto-types
  35. //
  36. void __cdecl _DebugMsg(UINT mask, LPCTSTR pszMsg, ...);
  37. void InitDebugSupport(void);