2 * Copyright (C) 2005 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 typedef ULONG64 TRACEHANDLE
, *PTRACEHANDLE
;
26 struct _EVENT_TRACE_LOGFILEA
;
27 struct _EVENT_TRACE_LOGFILEW
;
29 typedef struct _EVENT_TRACE_LOGFILEA EVENT_TRACE_LOGFILEA
, *PEVENT_TRACE_LOGFILEA
;
30 typedef struct _EVENT_TRACE_LOGFILEW EVENT_TRACE_LOGFILEW
, *PEVENT_TRACE_LOGFILEW
;
32 typedef ULONG (WINAPI
* PEVENT_TRACE_BUFFER_CALLBACKA
)( PEVENT_TRACE_LOGFILEA
);
33 typedef ULONG (WINAPI
* PEVENT_TRACE_BUFFER_CALLBACKW
)( PEVENT_TRACE_LOGFILEW
);
35 typedef ULONG (WINAPI
* WMIDPREQUEST
)( WMIDPREQUESTCODE
, PVOID
, ULONG
*, PVOID
);
37 typedef struct _TRACE_GUID_REGISTRATION
41 } TRACE_GUID_REGISTRATION
, *PTRACE_GUID_REGISTRATION
;
43 typedef struct _EVENT_TRACE_HEADER
48 USHORT FieldTypeFlags
;
67 LARGE_INTEGER TimeStamp
;
86 } EVENT_TRACE_HEADER
, *PEVENT_TRACE_HEADER
;
88 typedef struct _EVENT_TRACE
90 EVENT_TRACE_HEADER Header
;
92 ULONG ParentInstanceId
;
97 } EVENT_TRACE
, *PEVENT_TRACE
;
99 typedef VOID (WINAPI
* PEVENT_CALLBACK
)( PEVENT_TRACE
);
101 typedef struct _TRACE_LOGFILE_HEADER
112 UCHAR SubMinorVersion
;
115 ULONG ProviderVersion
;
116 ULONG NumberOfProcessors
;
117 LARGE_INTEGER EndTime
;
118 ULONG TimerResolution
;
119 ULONG MaximumFileSize
;
121 ULONG BuffersWritten
;
124 GUID LogInstanceGuid
;
135 TIME_ZONE_INFORMATION TimeZone
;
136 LARGE_INTEGER BootTime
;
137 LARGE_INTEGER PerfFreq
;
138 LARGE_INTEGER StartTime
;
141 } TRACE_LOGFILE_HEADER
, *PTRACE_LOGFILE_HEADER
;
143 struct _EVENT_TRACE_LOGFILEW
147 LONGLONG CurrentTime
;
149 EVENT_TRACE CurrentEvent
;
150 TRACE_LOGFILE_HEADER LogfileHeader
;
151 PEVENT_TRACE_BUFFER_CALLBACKW BufferCallback
;
155 PEVENT_CALLBACK EventCallback
;
159 struct _EVENT_TRACE_LOGFILEA
163 LONGLONG CurrentTime
;
165 EVENT_TRACE CurrentEvent
;
166 TRACE_LOGFILE_HEADER LogfileHeader
;
167 PEVENT_TRACE_BUFFER_CALLBACKA BufferCallback
;
171 PEVENT_CALLBACK EventCallback
;
175 ULONG WINAPI
CloseTrace(TRACEHANDLE
);
176 ULONG WINAPI
EnableTrace(ULONG
,ULONG
,ULONG
,LPCGUID
,TRACEHANDLE
);
177 ULONG WINAPI
RegisterTraceGuidsA(WMIDPREQUEST
,PVOID
,LPCGUID
,ULONG
,PTRACE_GUID_REGISTRATION
,LPCSTR
,LPCSTR
,PTRACEHANDLE
);
178 ULONG WINAPI
RegisterTraceGuidsW(WMIDPREQUEST
,PVOID
,LPCGUID
,ULONG
,PTRACE_GUID_REGISTRATION
,LPCWSTR
,LPCWSTR
,PTRACEHANDLE
);
179 #define RegisterTraceGuids WINELIB_NAME_AW(RegisterTraceGuids)
181 #endif /* _EVNTRACE_ */