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.

76 lines
1.5 KiB

  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. extern DWORD dwRsopLoggingLevel; // Rsop logging setting
  20. //
  21. // Debug message types
  22. //
  23. #define DM_WARNING 0
  24. #define DM_ASSERT 1
  25. #define DM_VERBOSE 2
  26. //
  27. // Debug macros
  28. // To avoid certain unexpected problems DebugMsg is changed to this form.
  29. // This will prevent compilation of the construct like "if (!test) DebugMsg(x); else ..."
  30. // unless DebugMsg(x) is enclosed under curly braces.
  31. //
  32. #define DebugMsg(x) { if (dwDebugLevel != DL_NONE) { _DebugMsg x ; } }
  33. //
  34. // Debug function proto-types
  35. //
  36. void _DebugMsg(UINT mask, LPCTSTR pszMsg, ...);
  37. #define SETUP_LOAD 1
  38. #define WINLOGON_LOAD 2
  39. void InitDebugSupport( DWORD dwLoadFlags );
  40. HRESULT DeletePreviousLogFiles();
  41. #if DBG
  42. #define DmAssert(x) if (!(x)) \
  43. _DebugMsg(DM_ASSERT,TEXT("Userenv.dll assertion ") TEXT(#x) TEXT(" failed\n"));
  44. #else
  45. #define DmAssert(x)
  46. #endif // DBG
  47. #if defined(__cplusplus)
  48. extern "C"
  49. #endif
  50. BOOL RsopLoggingEnabled();