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.

95 lines
2.4 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: debug.h
  6. //
  7. // Contents: Debugging define in license server
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __DEBUG_H__
  13. #define __DEBUG_H__
  14. //------------------------------------------------------
  15. #define DEBUG_LEVEL 0x000003FF
  16. #define DEBUG_SEVERITY 0x00000C00
  17. #define DEBUG_MODULE 0xFFFFF000
  18. //
  19. //
  20. // Debug level : Bit 0 to 13 (total of 14 debug level)
  21. //
  22. //
  23. // severity code : Bit 30 and 31
  24. //
  25. #define DBG_SUCCESS 0x00
  26. #define DBG_INFORMATION 0x01
  27. #define DBG_WARNING 0x10
  28. #define DBG_ERROR 0x11
  29. //
  30. // Facility Code : Bit 14 - 29
  31. //
  32. #define DBG_FACILITY_JETBLUE 0x00001
  33. #define DBG_FACILITY_RPC 0x00002
  34. #define DBG_FACILITY_KEYPACK 0x00004
  35. #define DBG_FACILITY_LICENSED 0x00008
  36. #define DBG_FACILITY_KEYPACKDESC 0x00010
  37. #define DBG_FACILITY_ALLOCATELICENSE 0x00020
  38. #define DBG_FACILITY_INIT 0x00040
  39. #define DBG_FACILITY_LOCK 0x00080
  40. #define DBG_FACILITY_HANDLEPOOL 0x00100
  41. #define DBG_FACILITY_RETURN 0x00200
  42. #define DBG_FACILITY_UPGRADE 0x00400
  43. #define DBG_FACILITY_POLICY 0x00800
  44. #define DBG_FACILITY_WORKMGR 0x01000
  45. #define DBG_FACILITY_WKSTORAGE 0x02000
  46. #define DBG_FACILITY_SRVLIST 0x04000
  47. #define DBG_FACILITY_JOB 0x08000
  48. //
  49. // All level
  50. //
  51. #define DBG_ALL_LEVEL DEBUG_LEVEL
  52. //
  53. // Debug Level
  54. //
  55. #define DBGLEVEL_FUNCTION_ERROR 0x0001
  56. #define DBGLEVEL_FUNCTION_TRACE 0x0001
  57. #define DBGLEVEL_FUNCTION_DETAILSIMPLE 0x0002
  58. #define DBGLEVEL_FUNCTION_DETAILFULL 0x0004
  59. #define DBGLEVEL_FUNCTION_ALL DBG_ALL_LEVEL
  60. //-------------------------------------------------------------
  61. #ifdef __cplusplus
  62. extern "C" {
  63. #endif
  64. void
  65. InitDBGPrintf(
  66. IN BOOL bConsole,
  67. IN LPTSTR DbgEventSrc, // unuse for now
  68. IN DWORD dwDebug
  69. );
  70. void
  71. DBGPrintf(
  72. DWORD dwSeverityCode,
  73. DWORD dwModule,
  74. DWORD dwLevel,
  75. LPTSTR format, ...
  76. );
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif