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.

147 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. RxpDebug.h
  5. Abstract:
  6. This is a private header file for the NT version of RpcXlate.
  7. This file contains equates and related items for debugging use only.
  8. Author:
  9. John Rogers (JohnRo) 17-Jul-1991
  10. Environment:
  11. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. 17-Jul-1991 JohnRo
  15. Extracted RxpDebug.h from Rxp.h.
  16. 30-Jul-1991 JohnRo
  17. Implement downlevel NetWksta APIs.
  18. 21-Aug-1991 JohnRo
  19. Downlevel NetFile APIs.
  20. 10-Sep-1991 JohnRo
  21. Downlevel NetService APIs. Deleted unused DEBUG equate.
  22. 15-Oct-1991 JohnRo
  23. Implement remote NetSession APIs.
  24. 22-Oct-1991 JohnRo
  25. Implement remote NetConfig APIs.
  26. 05-Nov-1991 JohnRo
  27. Implement remote NetAudit APIs.
  28. 12-Nov-1991 JohnRo
  29. Implement remote NetErrorLog APIs.
  30. --*/
  31. #ifndef _RXPDEBUG_
  32. #define _RXPDEBUG_
  33. #include <windef.h> // DWORD, FALSE, TRUE, etc.
  34. //
  35. // Debug trace level bits for RxCommon routines:
  36. //
  37. // RxpConvertArgs:
  38. #define RPCXLATE_DEBUG_CONVARGS 0x00000001
  39. // RxpConvertBlock:
  40. #define RPCXLATE_DEBUG_CONVBLK 0x00000002
  41. // RxpConvertDataStructures:
  42. #define RPCXLATE_DEBUG_CONVDATA 0x00000004
  43. // RxpPackSendBuffer:
  44. #define RPCXLATE_DEBUG_PACK 0x00000010
  45. // RxpReceiveBufferConvert:
  46. #define RPCXLATE_DEBUG_RCVCONV 0x00000020
  47. // RxRemoteApi:
  48. #define RPCXLATE_DEBUG_REMOTE 0x00000040
  49. // RxpComputeRequestBufferSize:
  50. #define RPCXLATE_DEBUG_REQSIZE 0x00000100
  51. // RxpSetField:
  52. #define RPCXLATE_DEBUG_SETFIELD 0x00000800
  53. // RxpStartBuildingTransaction:
  54. #define RPCXLATE_DEBUG_START 0x00001000
  55. // RxpTransactSmb:
  56. #define RPCXLATE_DEBUG_TRANSACT 0x00008000
  57. //
  58. // Debug trace level bits for RxApi routines:
  59. //
  60. // RxpNetAudit APIs:
  61. #define RPCXLATE_DEBUG_AUDIT 0x00010000
  62. // RxpNetConfig APIs:
  63. #define RPCXLATE_DEBUG_CONFIG 0x00020000
  64. // Domain APIs (RxNetGetDCName, RxNetLogonEnum):
  65. #define RPCXLATE_DEBUG_DOMAIN 0x00040000
  66. // RxNetErrorLog APIs:
  67. #define RPCXLATE_DEBUG_ERRLOG 0x00080000
  68. // RxNetFile APIs:
  69. #define RPCXLATE_DEBUG_FILE 0x00100000
  70. // RxNetPrintJob APIs:
  71. #define RPCXLATE_DEBUG_PRTJOB 0x00200000
  72. // RxNetPrintQ APIs:
  73. #define RPCXLATE_DEBUG_PRTQ 0x00400000
  74. // RxNetRemote APIs:
  75. #define RPCXLATE_DEBUG_REMUTL 0x01000000
  76. // RxNetServer APIs:
  77. #define RPCXLATE_DEBUG_SERVER 0x02000000
  78. // RxNetService APIs:
  79. #define RPCXLATE_DEBUG_SERVICE 0x04000000
  80. // RxNetSession APIs:
  81. #define RPCXLATE_DEBUG_SESSION 0x08000000
  82. // RxNetUse APIs:
  83. #define RPCXLATE_DEBUG_USE 0x10000000
  84. // RxNetWksta APIs:
  85. #define RPCXLATE_DEBUG_WKSTA 0x40000000
  86. //
  87. // All debug flags on:
  88. //
  89. #define RPCXLATE_DEBUG_ALL 0xFFFFFFFF
  90. #if DBG
  91. extern DWORD RxpTrace;
  92. #define IF_DEBUG(Function) if (RxpTrace & RPCXLATE_DEBUG_ ## Function)
  93. #else
  94. #define IF_DEBUG(Function) if (FALSE)
  95. #endif // DBG
  96. #endif // ndef _RXPDEBUG_