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.

101 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1994-2000 Microsoft Corporation
  3. Module Name:
  4. dbgutil.h
  5. Abstract:
  6. This module declares the macros to wrap around DEBUG_PRINTS class
  7. defined in pudebug.h
  8. This is the exported header file, that the users are allowed to modify.
  9. If there are no custom definitions, please use the templated version
  10. in the root iisrearc\inc\dbgutil.h
  11. Author:
  12. Murali R. Krishnan (MuraliK) 22-Sept-1994
  13. --*/
  14. # ifndef _DBGUTIL_H_
  15. # define _DBGUTIL_H_
  16. // begin_user_modifiable
  17. //
  18. // Modify the following flags if necessary
  19. //
  20. # define DEFAULT_OUTPUT_FLAGS ( DbgOutputStderr | DbgOutputKdb )
  21. // end_user_modifiable
  22. //
  23. // include standard debug support
  24. //
  25. // note: define DEFAULT_OUTPUT_FLAGS before including pudebug.h
  26. //
  27. # include <pudebug.h>
  28. // begin_user_modifiable
  29. // Use the default constants from pudebug.h: 0x00000001 to 0x00000100
  30. //
  31. // Define the debugging constants as bit-flag values
  32. // Example: # define DEBUG_FOOBAR 0x00010000
  33. // Note: All debugging bit-values below 0x00001000 are reserved!
  34. //
  35. // DEBUG_WEB_ADMIN_SERVICE turns on all the spew. While
  36. // the rest of these can be used if you want to turn on
  37. // just one section of the spew. This was done this way
  38. // because WEB_ADMIN_SERVICE was the original flag and the
  39. // rest were broken out later in an attempt to quite the spew.
  40. #define DEBUG_WEB_ADMIN_SERVICE 0x00010000
  41. #define DEBUG_WEB_ADMIN_SERVICE_GENERAL 0x00030000 // Use 0x00020000 to turn on only
  42. #define DEBUG_WEB_ADMIN_SERVICE_DUMP 0x00050000 // Use 0x00040000 to turn on only
  43. #define DEBUG_WEB_ADMIN_SERVICE_REFCOUNT 0x00090000 // Use 0x00080000 to turn on only
  44. #define DEBUG_WEB_ADMIN_SERVICE_TIMER_QUEUE 0x00110000 // Use 0x00100000 to turn on only
  45. #define DEBUG_WEB_ADMIN_SERVICE_IPM 0x00210000 // Use 0x00200000 to turn on only
  46. #define DEBUG_WEB_ADMIN_SERVICE_WP 0x00410000 // Use 0x00400000 to turn on only
  47. #define DEBUG_WEB_ADMIN_SERVICE_LOW_MEM 0x00810000 // Use 0x00800000 to turn on only
  48. #define DEBUG_WEB_ADMIN_SERVICE_LOGGING 0x01010000 // Use 0x01000000 to turn on only
  49. #define DEBUG_WEB_ADMIN_SERVICE_PERFCOUNT 0x02000000 // Use 0x02000000 to turn on only
  50. #define DEBUG_WEB_ADMIN_SERVICE_CONTROL 0x04010000 // Use 0x04000000 to turn on only
  51. #define DEBUG_WEB_ADMIN_SERVICE_QOS 0x08000000 // Use 0x08000000 to turn on only
  52. #define DEBUG_WEB_ADMIN_SERVICE_WMS 0x10000000 // Use 0x10000000 to turn on only
  53. // end_user_modifiable
  54. // begin_user_modifiable
  55. //
  56. // Local debugging definitions
  57. //
  58. // check if we are on the main worker thread
  59. #define ON_MAIN_WORKER_THREAD \
  60. ( GetCurrentThreadId() == GetWebAdminService()->GetMainWorkerThreadId() )
  61. // check if we are on the main worker thread
  62. #define ON_CONFIG_WORKER_THREAD \
  63. ( GetCurrentThreadId() == GetWebAdminService()->GetConfigWorkerThreadId() )
  64. // end_user_modifiable
  65. # endif /* _DBGUTIL_H_ */