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.

86 lines
1.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. tcpdebug.h
  7. This file contains a number of debug-dependent definitions for
  8. the TCP Services.
  9. FILE HISTORY:
  10. KeithMo 07-Mar-1993 Created.
  11. MuraliK 12-Oct-1993 Stripped this down to simplify things
  12. */
  13. #ifndef _DEBUG_H_
  14. #define _DEBUG_H_
  15. #if DBG
  16. //
  17. // TCP DLL Debug control flags.
  18. //
  19. // TCP_DEBUG_SVC_RESERVED is the set of flags individual service DLLs
  20. // may use
  21. //
  22. #define TCP_DEBUG_SVC_RESERVED 0xf00fffffL
  23. //
  24. // Common definitions for debug output (still used in each service DLL)
  25. //
  26. #define TCP_DEBUG_OUTPUT_TO_DEBUGGER 0x40000000L
  27. #define TCP_DEBUG_OUTPUT_TO_LOG_FILE 0x80000000L
  28. //
  29. // Used by common DLL
  30. //
  31. #define TCP_DEBUG_GATEWAY 0x00010000L
  32. #define TCP_DEBUG_INETLOG 0x00020000L
  33. #define TCP_DEBUG_DLL_EVENT_LOG 0x00100000L
  34. #define TCP_DEBUG_DLL_SERVICE_INFO 0x00200000L
  35. #define TCP_DEBUG_DLL_SECURITY 0x00400000L
  36. #define TCP_DEBUG_DLL_CONNECTION 0x00800000L
  37. #define TCP_DEBUG_DLL_SOCKETS 0x01000000L
  38. #define TCP_DEBUG_HEAP_FILL 0x02000000L
  39. #define TCP_DEBUG_HEAP_MSG 0x04000000L
  40. #define TCP_DEBUG_HEAP_CHECK 0x08000000L
  41. #define TCP_DEBUG_MIME_MAP 0x10000000L
  42. #define TCP_DEBUG_VIRTUAL_ROOTS 0x20000000L
  43. #else // !DBG
  44. //
  45. // Null assert & require.
  46. //
  47. #ifndef TCP_ASSERT
  48. #define TCP_ASSERT(exp)
  49. #define TCP_REQUIRE(exp) ((VOID)(exp))
  50. #define DBG_CONTEXT ( NULL)
  51. #endif
  52. #endif // DBG
  53. //
  54. // Heap Routines
  55. //
  56. #define TCP_ALLOC(cb) (VOID *)LocalAlloc( LPTR, cb )
  57. #define TCP_FREE(p) LocalFree( (HLOCAL) p )
  58. #define TCP_DUMP_RESIDUE() /* NOTHING */
  59. #endif // _DEBUG_H_