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.

49 lines
987 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. #define DL_DEBUGGER 0x00020000
  18. extern DWORD dwDebugLevel;
  19. //
  20. // Debug message types
  21. //
  22. #define DM_WARNING 0
  23. #define DM_ASSERT 1
  24. #define DM_VERBOSE 2
  25. //
  26. // Debug macros
  27. //
  28. #define DmAssert(x) if (!(x)) \
  29. _DebugMsg(DM_ASSERT,TEXT("Gpedit.dll assertion ") TEXT(#x) TEXT(" failed\n"));
  30. #define DebugMsg(x) if (dwDebugLevel != DL_NONE) \
  31. _DebugMsg x
  32. //
  33. // Debug function proto-types
  34. //
  35. void _DebugMsg(UINT mask, LPCTSTR pszMsg, ...);
  36. void InitDebugSupport(void);