Source code of Windows XP (NT5)
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.

120 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name :
  4. dbgutil.h
  5. Abstract:
  6. This module declares the macros to wrap around DEBUG_PRINTS class.
  7. This is the exported header file, which the client is allowed to
  8. modify for each application the accompanying pgmutils.dll/obj is used.
  9. Author:
  10. Murali R. Krishnan ( MuraliK ) 21-Feb-1995
  11. Project:
  12. W3 Server DLL
  13. Revision History:
  14. --*/
  15. # ifndef _DBGUTIL_H_
  16. # define _DBGUTIL_H_
  17. // begin_user_modifiable
  18. //
  19. // Modify the following flags if necessary
  20. //
  21. # define DEFAULT_OUTPUT_FLAGS ( DbgOutputKdb | DbgOutputLogFile )
  22. // end_user_modifiable
  23. /************************************************************
  24. * Include Headers
  25. ************************************************************/
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. # include <nt.h>
  30. # include <ntrtl.h>
  31. # include <nturtl.h>
  32. # include <windows.h>
  33. #ifdef __cplusplus
  34. };
  35. #endif // __cplusplus
  36. # include <pudebug.h>
  37. //
  38. // Define the debugging constants
  39. //
  40. # define DEBUG_CONNECTION 0x00001000L
  41. # define DEBUG_SOCKETS 0x00002000L
  42. # define DEBUG_RPC 0x00004000L
  43. # define DEBUG_JOB_OBJECTS 0x00010000L
  44. # define DEBUG_INSTANCE 0x00020000L
  45. # define DEBUG_ENDPOINT 0x00040000L
  46. # define DEBUG_METABASE 0x00080000L
  47. # define DEBUG_CGI 0x00100000L
  48. # define DEBUG_BGI 0x00200000L
  49. # define DEBUG_SSI 0x00400000L
  50. # define DEBUG_SERVICE_CTRL 0x00800000L
  51. # define DEBUG_PARSING 0x01000000L
  52. # define DEBUG_REQUEST 0x02000000L
  53. # define DEBUG_OPLOCKS 0x04000000L
  54. # define DEBUG_MODULEINIT (DEBUG_INIT_CLEAN)
  55. # define DEBUG_CLEANUP (DEBUG_INIT_CLEAN)
  56. # define DEBUG_OBJECT 0x10000000
  57. # define DEBUG_IID 0x20000000
  58. # define DEBUG_MISC 0x40000000
  59. # define DEBUG_WAM_ISA_CALLS 0x80000000
  60. //
  61. // Specific macros for W3 svcs module
  62. //
  63. # define TCP_PRINT DBGPRINTF
  64. # define TCP_REQUIRE( exp) DBG_REQUIRE( exp)
  65. //
  66. // Following macros are useful for formatting and printing out GUIDs
  67. //
  68. # define GUID_FORMAT "{%08x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x}"
  69. # define GUID_EXPAND(pg) \
  70. (((GUID *) (pg))->Data1), (((GUID *) (pg))->Data2), (((GUID *) (pg))->Data3), \
  71. (((GUID *) (pg))->Data4[0]), (((GUID *) (pg))->Data4[1]), \
  72. (((GUID *) (pg))->Data4[2]), (((GUID *) (pg))->Data4[3]), \
  73. (((GUID *) (pg))->Data4[4]), (((GUID *) (pg))->Data4[5]), \
  74. (((GUID *) (pg))->Data4[6]), (((GUID *) (pg))->Data4[7])
  75. // Usage: DBGPRINTF(( DBG_CONTEXT, " My Guid: " GUID_FORMAT " \n",
  76. // GUID_EXPAND( pMyGuid)));
  77. # endif /* _DBGUTIL_H_ */
  78. /************************ End of File ***********************/