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.

61 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dbg.hxx
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __DBG_HXX
  11. #define __DBG_HXX
  12. //
  13. // Debug output is filtered at two levels: A global level and a component
  14. // specific level.
  15. //
  16. // Each debug output request specifies a component id and a filter level
  17. // or mask. These variables are used to access the debug print filter
  18. // database maintained by the system. The component id selects a 32-bit
  19. // mask value and the level either specified a bit within that mask or is
  20. // as mask value itself.
  21. //
  22. // If any of the bits specified by the level or mask are set in either the
  23. // component mask or the global mask, then the debug output is permitted.
  24. // Otherwise, the debug output is filtered and not printed.
  25. //
  26. // The component mask for filtering the debug output of this component is
  27. // Kd_RPCPROXY_Mask and may be set via the registry or the kernel debugger.
  28. //
  29. // The global mask for filtering the debug output of all components is
  30. // Kd_WIN2000_Mask and may be set via the registry or the kernel debugger.
  31. //
  32. // The registry key for setting the mask value for this component is:
  33. //
  34. // HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\
  35. // Session Manager\Debug Print Filter\RPCPROXY
  36. //
  37. // The key "Debug Print Filter" may have to be created in order to create
  38. // the component key.
  39. //
  40. // Common macros
  41. //
  42. #define RPCTRANS "RPCLT1: "
  43. #if DBG
  44. #define TransDbgPrint(X) DbgPrintEx X
  45. #define DEBUG_MIN(x,y) min((x),(y))
  46. #else
  47. #define TransDbgPrint(X)
  48. #define DEBUG_MIN(x,y) max((x),(y))
  49. #endif
  50. #ifdef DBG_DETAIL
  51. #define TransDbgDetail(X) DbgPrintEx X
  52. #else
  53. #define TransDbgDetail(X)
  54. #endif
  55. #endif // __DBG_HXX