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.

157 lines
3.9 KiB

  1. /*++
  2. Copyright (c) 1990-1993 Microsoft Corporation
  3. Module Name:
  4. DebugLib.h
  5. Abstract:
  6. This include file defines the portable NetLib's debug stuff.
  7. Author:
  8. John Rogers (JohnRo) 03-Apr-1991
  9. Revision History:
  10. 03-Apr-1991 JohnRo
  11. Created (copied stuff from LarryO's rdr/debug.h).
  12. 13-Apr-1991 JohnRo
  13. Added debug flag for CONVSRV routine.
  14. 16-Apr-1991 JohnRo
  15. Added NETLIB_DEBUG_ALL for use by RxTest.
  16. 01-May-1991 JohnRo
  17. Added NETLIB_DEBUG_PACKSTR.
  18. 02-May-1991 JohnRo
  19. Added NETLIB_DEBUG_PREFMAX.
  20. 25-Jul-1991 JohnRo
  21. Quiet DLL stub debug output. Delete unused DEBUG equate.
  22. 26-Jul-1991 JohnRo
  23. Added NETLIB_DEBUG_SUPPORTS (this "API" is mostly used in DLL stubs).
  24. 15-Aug-1991 JohnRo
  25. Implement downlevel NetWksta APIs.
  26. 18-Oct-1991 JohnRo
  27. Implement remote NetSession APIs.
  28. 30-Dec-1991 JohnRo
  29. Implemented NetLock helpers.
  30. 06-May-1992 JohnRo
  31. Added NetpGetLocalDomainId() for PortUAS.
  32. 10-May-1992 JohnRo
  33. Added debug prints to mem alloc code.
  34. 10-May-1992 JohnRo
  35. Added debug output to translate service name routine.
  36. 10-Jun-1992 JohnRo
  37. RAID 10324: net print vs. UNICODE.
  38. Added separate bit for RPC cache dumps.
  39. 17-Aug-1992 JohnRo
  40. RAID 2920: Support UTC timezone in net code.
  41. 09-Oct-1992 JohnRo
  42. Do full syntax checks in NetpIsUncComputerName etc.
  43. Help PC-LINT a little with different IF_DEBUG() macros.
  44. 08-Feb-1993 JohnRo
  45. Made changes suggested by PC-LINT 5.0
  46. --*/
  47. #ifndef _DEBUGLIB_
  48. #define _DEBUGLIB_
  49. #include <windef.h>
  50. // Debug trace level bits:
  51. // NetpNtStatusToApiStatus:
  52. #define NETLIB_DEBUG_NTSTATUS 0x00000001
  53. // NetpRdrFsControlTree:
  54. #define NETLIB_DEBUG_RDRFSCTL 0x00000002
  55. // NetpConvertServerInfo:
  56. #define NETLIB_DEBUG_CONVSRV 0x00000004
  57. // NetpPackStr, NetpCopyStringToBuffer, NetpCopyDataToBuffer:
  58. #define NETLIB_DEBUG_PACKSTR 0x00000008
  59. // NetpAdjustPreferedMaximum:
  60. #define NETLIB_DEBUG_PREFMAX 0x00000010
  61. // RPC trace output (see also _RPCCACHE below)
  62. #define NETLIB_DEBUG_RPC 0x00000020
  63. // Security object helpers trace output
  64. #define NETLIB_DEBUG_SECURITY 0x00000040
  65. // Config file helpers trace output
  66. #define NETLIB_DEBUG_CONFIG 0x00000080
  67. // All net API DLL stubs (used by NetRpc.h):
  68. #define NETLIB_DEBUG_DLLSTUBS 0x00000100
  69. // NetRemoteComputerSupports ("API" mostly used by DLL stubs):
  70. #define NETLIB_DEBUG_SUPPORTS 0x00000200
  71. // NetBIOS helpers trace output
  72. #define NETLIB_DEBUG_NETBIOS 0x00000400
  73. // NetpConvertWkstaInfo:
  74. #define NETLIB_DEBUG_CONVWKS 0x00000800
  75. // Netp routines in accessp.c
  76. #define NETLIB_DEBUG_ACCESSP 0x00001000
  77. // NetpXxxxxStructureInfo:
  78. #define NETLIB_DEBUG_STRUCINF 0x00002000
  79. // NetpXxxxxLock routines:
  80. #define NETLIB_DEBUG_NETLOCK 0x00004000
  81. // NetpLogon routines:
  82. #define NETLIB_DEBUG_LOGON 0x00008000
  83. // NetpGetLocalDomainId:
  84. #define NETLIB_DEBUG_DOMAINID 0x00010000
  85. // NetpMemory{Allocate,Free,Reallocate}:
  86. #define NETLIB_DEBUG_MEMALLOC 0x00020000
  87. // NetpTranslateServiceName
  88. #define NETLIB_DEBUG_XLATESVC 0x00040000
  89. // RPC cache dump output (see also _RPC above)
  90. #define NETLIB_DEBUG_RPCCACHE 0x00080000
  91. // Print structure char set conversion
  92. #define NETLIB_DEBUG_CONVPRT 0x00100000
  93. // time_now and other time.c functions:
  94. #define NETLIB_DEBUG_TIME 0x00200000
  95. // NetpIsUncComputerNameValid etc:
  96. #define NETLIB_DEBUG_NAMES 0x00400000
  97. #define NETLIB_DEBUG_ALL 0xFFFFFFFF
  98. /*lint -save -e767 */ // Don't complain about different definitions
  99. #if DBG
  100. extern DWORD NetlibpTrace;
  101. #define IF_DEBUG(Function) if (NetlibpTrace & NETLIB_DEBUG_ ## Function)
  102. #else
  103. #define IF_DEBUG(Function) \
  104. /*lint -save -e506 */ /* don't complain about constant values here */ \
  105. if (FALSE) \
  106. /*lint -restore */
  107. #endif // DBG
  108. /*lint -restore */ // Resume checking for different macro definitions
  109. #endif // _DEBUGLIB_