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.

114 lines
4.6 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 2001
  3. Module Name:
  4. Http2Log.hxx
  5. Abstract:
  6. HTTP2 transport-specific logging definitions.
  7. Author:
  8. KamenM 09-25-01 Created
  9. Revision History:
  10. --*/
  11. #if _MSC_VER >= 1200
  12. #pragma once
  13. #endif
  14. #ifndef __HTTP2LOG_HXX__
  15. #define __HTTP2LOG_HXX__
  16. #define HTTP2LOG_OPERATION_SEND 1
  17. #define HTTP2LOG_OPERATION_RECV 2
  18. #define HTTP2LOG_OPERATION_COMPLETE_HELPER 3
  19. #define HTTP2LOG_OPERATION_RECV_COMPLETE 4
  20. #define HTTP2LOG_OPERATION_SEND_COMPLETE 5
  21. #define HTTP2LOG_OPERATION_FREE_OBJECT 6
  22. #define HTTP2LOG_OPERATION_ABORT 7
  23. #define HTTP2LOG_OPERATION_IIS_IO_COMPLETED 8
  24. #define HTTP2LOG_OPERATION_CHANNEL_RECYCLE 9
  25. #define HTTP2LOG_OPERATION_DIRECT_SEND_COMPLETE 10
  26. #define HTTP2LOG_OPERATION_SYNC_RECV 11
  27. #define HTTP2LOG_COMPLEX_T_SEND 12
  28. #define HTTP2LOG_COMPLEX_T_RECV 13
  29. #define HTTP2LOG_OPERATION_DIRECT_RECV_COMPLETE 14
  30. #define HTTP2LOG_OPERATION_WINHTTP_CALLBACK 15
  31. #define HTTP2LOG_OPERATION_WHTTP_DRECV_COMPLETE 16
  32. #define HTTP2LOG_OPERATION_WHTTP_DSEND_COMPLETE 17
  33. #define HTTP2LOG_OPERATION_WHTTP_DELAYED_RECV 18
  34. #define HTTP2LOG_OPERATION_WHTTP_ERROR 19
  35. #define HTTP2LOG_OPERATION_OPEN 20
  36. #define HTTP2LOG_OPERATION_CHECK_RECV_COMPLETE 21
  37. #define HTTP2LOG_OPERATION_CLOSE 22
  38. #define HTTP2LOG_OPERATION_SEND_CANCELLED 23
  39. #define HTTP2LOG_WHTTPRAW_WinHttpOpen 0x80
  40. #define HTTP2LOG_WHTTPRAW_WinHttpSetStatusCallback 0x81
  41. #define HTTP2LOG_WHTTPRAW_WinHttpSetOption 0x82
  42. #define HTTP2LOG_WHTTPRAW_WinHttpConnect 0x83
  43. #define HTTP2LOG_WHTTPRAW_WinHttpOpenRequest 0x84
  44. #define HTTP2LOG_WHTTPRAW_WinHttpQueryOption 0x85
  45. #define HTTP2LOG_WHTTPRAW_WinHttpSendRequest 0x86
  46. #define HTTP2LOG_WHTTPRAW_WinHttpWriteData 0x87
  47. #define HTTP2LOG_WHTTPRAW_WinHttpReceiveResponse 0x88
  48. #define HTTP2LOG_WHTTPRAW_WinHttpReadData 0x89
  49. #define HTTP2LOG_WHTTPRAW_WinHttpCloseHandle 0x8A
  50. #define HTTP2LOG_WHTTPRAW_WinHttpQueryHeaders 0x8B
  51. #define HTTP2LOG_WHTTPRAW_WinHttpQueryDataAvailable 0x8C
  52. #define HTTP2LOG_WHTTPRAW_WinHttpQueryAuthSchemes 0x8D
  53. #define HTTP2LOG_WHTTPRAW_WinHttpSetCredentials 0x8E
  54. #define HTTP2LOG_WHTTPRAW_WinHttpAddRequestHeaders 0x8F
  55. #define HTTP2LOG_OT_SOCKET_CHANNEL 1
  56. #define HTTP2LOG_OT_PROXY_SOCKET_CHANNEL 2
  57. #define HTTP2LOG_OT_CHANNEL 3
  58. #define HTTP2LOG_OT_BOTTOM_CHANNEL 4
  59. #define HTTP2LOG_OT_IIS_CHANNEL 5
  60. #define HTTP2LOG_OT_RAW_CONNECTION 6
  61. #define HTTP2LOG_OT_INITIAL_RAW_CONNECTION 7
  62. #define HTTP2LOG_OT_IIS_SENDER_CHANNEL 8
  63. #define HTTP2LOG_OT_ENDPOINT_RECEIVER 9
  64. #define HTTP2LOG_OT_PLUG_CHANNEL 10
  65. #define HTTP2LOG_OT_CLIENT_VC 11
  66. #define HTTP2LOG_OT_SERVER_VC 12
  67. #define HTTP2LOG_OT_INPROXY_VC 13
  68. #define HTTP2LOG_OT_OUTPROXY_VC 14
  69. #define HTTP2LOG_OT_PROXY_VC 15
  70. #define HTTP2LOG_OT_CDATA_ORIGINATOR 16
  71. #define HTTP2LOG_OT_CLIENT_CHANNEL 17
  72. #define HTTP2LOG_OT_CALLBACK 18
  73. #define HTTP2LOG_OT_FLOW_CONTROL_SENDER 19
  74. #define HTTP2LOG_OT_WINHTTP_CALLBACK 20
  75. #define HTTP2LOG_OT_WINHTTP_CHANNEL 21
  76. #define HTTP2LOG_OT_WINHTTP_RAW 22
  77. #define HTTP2LOG_OT_PROXY_RECEIVER 23
  78. #define HTTP2LOG_OT_SERVER_CHANNEL 24
  79. #define HTTP2LOG_OT_FRAGMENT_RECEIVER 25
  80. #define LOG_OPERATION_ENTRY(Operation,ObjectType,Data) \
  81. LogEvent(SU_HTTPv2, EV_OPER, this, UlongToPtr((1 << 24) | (Operation << 16) | ObjectType), Data, 0, 0);
  82. #define LOG_OPERATION_EXIT(Operation,ObjectType,Data) \
  83. LogEvent(SU_HTTPv2, EV_OPER, this, UlongToPtr((Operation << 16) | ObjectType), Data, 0, 0);
  84. #define LOG_FN_OPERATION_ENTRY(Operation,ObjectType,Data) \
  85. LogEvent(SU_HTTPv2, EV_OPER, 0, UlongToPtr((1 << 24) | (Operation << 16) | ObjectType), Data, 0, 0);
  86. #define LOG_FN_OPERATION_EXIT(Operation,ObjectType,Data) \
  87. LogEvent(SU_HTTPv2, EV_OPER, 0, UlongToPtr((Operation << 16) | ObjectType), Data, 0, 0);
  88. #define LOG_FN_OPERATION_ENTRY2(Operation,ObjectType,Address,Data) \
  89. LogEvent(SU_HTTPv2, EV_OPER, Address, UlongToPtr((1 << 24) | (Operation << 16) | ObjectType), Data, 0, 0);
  90. #define LOG_FN_OPERATION_EXIT2(Operation,ObjectType,Address,Data) \
  91. LogEvent(SU_HTTPv2, EV_OPER, Address, UlongToPtr((Operation << 16) | ObjectType), Data, 0, 0);
  92. #endif // __HTTP2LOG_HXX__