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.

30 lines
989 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: ReferralServerLog.hxx
  6. //
  7. // Contents: This file contains the functionality to generate WMI Logging Macros
  8. //
  9. //
  10. // History: Marc 12 2001, Authors: RohanP
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef __REFERRAL_SERVER_LOG_H__
  14. #define __REFERRAL_SERVER_LOG_H__
  15. #include "dfswmi.h"
  16. #define WPP_BIT_CLI_DRV 0x01
  17. #define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) WPP_LEVEL_LOGGER(flags)
  18. #define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_CLI_DRV ).Level >= lvl)
  19. #define WPP_LEVEL_ERROR_FLAGS_LOGGER(lvl, error, flags) WPP_LEVEL_LOGGER(flags)
  20. #define WPP_LEVEL_ERROR_FLAGS_ENABLED(lvl, error, flags) \
  21. ((!NT_SUCCESS(error) || WPP_LEVEL_ENABLED(flags)) && WPP_CONTROL(WPP_BIT_CLI_DRV ).Level >= lvl)
  22. #endif // DFSLOG