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.

91 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1994-1996 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 is used.
  9. Author:
  10. Murali R. Krishnan ( MuraliK ) 22-Sept-1994
  11. Project:
  12. TEMPLATE
  13. Revision History:
  14. MuraliK 16-May-1995 Added macro for reading debug flags.
  15. --*/
  16. # ifndef _DBGUTIL_H_
  17. # define _DBGUTIL_H_
  18. // begin_user_modifiable
  19. //
  20. // Modify the following flags if necessary
  21. //
  22. # define DEFAULT_OUTPUT_FLAGS ( DbgOutputStderr | DbgOutputLogFile | \
  23. DbgOutputKdb | DbgOutputTruncate)
  24. // end_user_modifiable
  25. /************************************************************
  26. * Include Headers
  27. ************************************************************/
  28. # include <pudebug.h>
  29. //
  30. // Define the debugging constants
  31. //
  32. # define DEBUG_INIT (DEBUG_INIT_CLEAN)
  33. # define DEBUG_CLEANUP (DEBUG_INIT_CLEAN)
  34. # define DEBUG_OBJECT 0x00001000
  35. # define DEBUG_IID 0x00002000
  36. # define DEBUG_MISC 0x00004000
  37. # define DEBUG_BGI 0x00008000
  38. # define DEBUG_SETABLE 0x00010000
  39. # define DEBUG_WAM 0x00020000
  40. # define DEBUG_WAM_EXEC 0x00040000
  41. # define DEBUG_WAM_REFCOUNTS 0x00080000
  42. # define DEBUG_WAM_FILENAMES 0x00100000
  43. # define DEBUG_WAM_IWAMREQ_REFS 0x00200000
  44. # define DEBUG_WAM_THREADID 0x00400000
  45. # define DEBUG_WAM_ISA_CALLS 0x80000000
  46. //
  47. // Following macros are useful for formatting and printing out GUIDs
  48. //
  49. # define GUID_FORMAT "{%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x}"
  50. # define GUID_EXPAND(pg) \
  51. (((GUID *) (pg))->Data1), (((GUID *) (pg))->Data2), (((GUID *) (pg))->Data3), \
  52. (((GUID *) (pg))->Data4[0]), (((GUID *) (pg))->Data4[1]), \
  53. (((GUID *) (pg))->Data4[2]), (((GUID *) (pg))->Data4[3]), \
  54. (((GUID *) (pg))->Data4[4]), (((GUID *) (pg))->Data4[5]), \
  55. (((GUID *) (pg))->Data4[6]), (((GUID *) (pg))->Data4[7])
  56. // Usage: DBGPRINTF(( DBG_CONTEXT, " My Guid: " GUID_FORMAT " \n",
  57. // GUID_EXPAND( pMyGuid)));
  58. # endif /* _DBGUTIL_H_ */
  59. /************************ End of File ***********************/