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.

126 lines
2.0 KiB

  1. #ifndef _LOGGING_H_
  2. #define _LOGGING_H_
  3. #define MAX_NUMBER_OF_LOGS 10
  4. // d58c126e-b309-11d1-969e-0000f875a5bc
  5. #define RASL2TP_GUID \
  6. {0xd58c126e, 0xb309, 0x11d1, {0x96, 0x9e, 0x00, 0x00, 0xf8, 0x75, 0xa5, 0xbc}}
  7. // d58c126f-b309-11d1-969e-0000f875a5bc
  8. #define RASPPTP_GUID \
  9. {0xd58c126f, 0xb309, 0x11d1, {0x96, 0x9e, 0x00, 0x00, 0xf8, 0x75, 0xa5, 0xbc}}
  10. // 6537b295-83c9-4811-b7fe-e7dbf2f22cec
  11. #define IPSEC_GUID \
  12. {0x6537b295, 0x83c9, 0x4811, {0xb7, 0xfe, 0xe7, 0xdb, 0xf2, 0xf2, 0x2c, 0xec}}
  13. FN_HANDLE_CMD HandleTraceSet;
  14. FN_HANDLE_CMD HandleTraceShow;
  15. typedef struct _TRACING_DATA
  16. {
  17. BOOL fOneOk;
  18. BOOL fData;
  19. HKEY hKey;
  20. REPORT_INFO* pInfo;
  21. } TRACING_DATA;
  22. typedef struct _WPP_LOG_INFO
  23. {
  24. DWORD dwActive;
  25. DWORD dwEnableFlag;
  26. DWORD dwEnableLevel;
  27. GUID ControlGuid;
  28. PEVENT_TRACE_PROPERTIES pProperties;
  29. WCHAR wszLogFileName[MAX_PATH + 1];
  30. WCHAR wszSessionName[MAX_PATH + 1];
  31. } WPP_LOG_INFO;
  32. VOID
  33. DiagInitWppTracing();
  34. DWORD
  35. DiagClearAll(
  36. IN BOOL fDisplay);
  37. BOOL
  38. DiagGetState();
  39. DWORD
  40. DiagSetAll(
  41. IN BOOL fEnable,
  42. IN BOOL fDisplay);
  43. DWORD
  44. DiagSetAllRas(
  45. IN BOOL fEnable);
  46. BOOL
  47. WriteTracingLogsToc(
  48. IN REPORT_INFO* pInfo);
  49. DWORD
  50. TraceCollectAll(
  51. IN REPORT_INFO* pInfo);
  52. DWORD
  53. TraceDumpConfig();
  54. DWORD
  55. TraceDumpModem();
  56. DWORD
  57. TraceDumpCm();
  58. DWORD
  59. TraceDumpAuditing();
  60. VOID
  61. TraceShowAll();
  62. BOOL
  63. TraceEnableDisableModem(
  64. IN BOOL fEnable);
  65. BOOL
  66. TraceShowModem();
  67. BOOL
  68. TraceEnableDisableCm(
  69. IN BOOL fEnable);
  70. BOOL
  71. TraceShowCm();
  72. BOOL
  73. TraceEnableDisableAuditing(
  74. IN BOOL fShowOnly,
  75. IN BOOL fEnable);
  76. BOOL
  77. InitWppData(
  78. IN WPP_LOG_INFO* pWppLog);
  79. VOID
  80. CleanupWppData(
  81. IN WPP_LOG_INFO* pWppLog);
  82. BOOL
  83. StopWppTracing(
  84. IN WPP_LOG_INFO* pWppLog);
  85. DWORD
  86. EnumWppTracing(
  87. IN RAS_REGKEY_ENUM_FUNC_CB pCallback,
  88. IN HANDLE hData);
  89. BOOL
  90. TraceEnableDisableAllWpp(
  91. IN BOOL fEnable);
  92. #endif // _LOGGING_H_