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.

32 lines
1.4 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: DfsLogMacros.hxx
  6. //
  7. // Contents: This file contains the functionality to generate WMI Logging Macros
  8. //
  9. //
  10. // History: March 12 2001, Authors: RohanP
  11. //
  12. //-----------------------------------------------------------------------------
  13. #include "dfswmi.h"
  14. extern PVOID pReferralControl;
  15. #define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) (((WPP_CB_TYPE *)pReferralControl)->Control.Logger),
  16. #define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) \
  17. (pReferralControl && (((WPP_CB_TYPE *)pReferralControl)->Control.Flags[WPP_FLAG_NO(WPP_BIT_ ## flags)] & WPP_MASK(WPP_BIT_ ## flags)) && \
  18. ( ((WPP_CB_TYPE *)pReferralControl)->Control.Level >= lvl))
  19. #define WPP_LEVEL_ERROR_FLAGS_LOGGER(lvl, error, flags) (((WPP_CB_TYPE *)pReferralControl)->Control.Logger),
  20. #define WPP_LEVEL_ERROR_FLAGS_ENABLED_DFSPRIVATE(lvl, flags, extraflags) \
  21. (pReferralControl && (((WPP_CB_TYPE *)pReferralControl)->Control.Flags[WPP_FLAG_NO(WPP_BIT_ ## flags)] & (WPP_MASK(WPP_BIT_ ## flags) | WPP_MASK(extraflags))) && \
  22. ( ((WPP_CB_TYPE *)pReferralControl)->Control.Level >= lvl))
  23. #define WPP_LEVEL_ERROR_FLAGS_ENABLED(lvl, error, flags) WPP_LEVEL_ERROR_FLAGS_ENABLED_DFSPRIVATE(lvl, flags, ((error == 0) ? 0 : WPP_BIT_ALL_ERRORS))