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.

139 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. traceprt.h
  5. Abstract:
  6. Trace formatting external definitions.
  7. Revision History:
  8. --*/
  9. #ifdef __cplusplus
  10. extern "C"{
  11. #endif
  12. #ifndef _TRACEPRT_
  13. #define _TRACEPRT_
  14. #define MAXLOGFILES 16
  15. #define MAXSTR 1024
  16. #define GUID_FILE _T("default")
  17. #define GUID_EXT _T("tmf")
  18. //
  19. // Now the routines we export
  20. //
  21. #ifndef TRACE_API
  22. #ifdef TRACE_EXPORTS
  23. #define TRACE_API __declspec(dllexport)
  24. #else
  25. #define TRACE_API __declspec(dllimport)
  26. #endif
  27. #endif
  28. #ifdef UNICODE
  29. #define FormatTraceEvent FormatTraceEventW
  30. #define GetTraceGuids GetTraceGuidsW
  31. #define SummaryTraceEventList SummaryTraceEventListW
  32. #else
  33. #define FormatTraceEvent FormatTraceEventA
  34. #define GetTraceGuids GetTraceGuidsA
  35. #define SummaryTraceEventList SummaryTraceEventListA
  36. #endif
  37. TRACE_API SIZE_T
  38. WINAPI
  39. FormatTraceEventA(
  40. PLIST_ENTRY HeadEventList,
  41. PEVENT_TRACE pEvent,
  42. CHAR * EventBuf,
  43. ULONG SizeEventBuf,
  44. CHAR * pszMask
  45. );
  46. TRACE_API ULONG
  47. WINAPI
  48. GetTraceGuidsA(
  49. CHAR * GuidFile,
  50. PLIST_ENTRY * EventListHeader
  51. );
  52. TRACE_API void
  53. WINAPI
  54. SummaryTraceEventListA(
  55. CHAR * SummaryBlock ,
  56. ULONG SizeSummaryBlock ,
  57. PLIST_ENTRY EventListhead
  58. );
  59. TRACE_API SIZE_T
  60. WINAPI
  61. FormatTraceEventW(
  62. PLIST_ENTRY HeadEventList,
  63. PEVENT_TRACE pEvent,
  64. TCHAR * EventBuf,
  65. ULONG SizeEventBuf,
  66. TCHAR * pszMask
  67. );
  68. TRACE_API ULONG
  69. WINAPI
  70. GetTraceGuidsW(
  71. LPTSTR GuidFile,
  72. PLIST_ENTRY * EventListHeader
  73. );
  74. TRACE_API void
  75. WINAPI
  76. SummaryTraceEventListW(
  77. TCHAR * SummaryBlock,
  78. ULONG SizeSummaryBlock,
  79. PLIST_ENTRY EventListhead
  80. );
  81. TRACE_API void
  82. WINAPI
  83. CleanupTraceEventList(
  84. PLIST_ENTRY EventListHead
  85. );
  86. TRACE_API void
  87. WINAPI
  88. GetTraceElapseTime(
  89. __int64 * pElpaseTime
  90. );
  91. typedef enum _PARAM_TYPE
  92. {
  93. ParameterINDENT,
  94. ParameterSEQUENCE,
  95. ParameterGMT,
  96. ParameterTraceFormatSearchPath
  97. } PARAMETER_TYPE ;
  98. TRACE_API ULONG
  99. WINAPI
  100. SetTraceFormatParameter(
  101. PARAMETER_TYPE Parameter ,
  102. PVOID ParameterValue
  103. );
  104. TRACE_API ULONG
  105. WINAPI
  106. GetTraceFormatParameter(
  107. PARAMETER_TYPE Parameter ,
  108. PVOID ParameterValue
  109. );
  110. #endif // #ifndef _TRACEPRT_
  111. #ifdef __cplusplus
  112. }
  113. #endif