Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fd6e23e5
Commit
fd6e23e5
authored
Feb 09, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add relogger.idl file.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b362f07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
0 deletions
+185
-0
Makefile.in
include/Makefile.in
+1
-0
relogger.idl
include/relogger.idl
+184
-0
No files found.
include/Makefile.in
View file @
fd6e23e5
...
...
@@ -593,6 +593,7 @@ SOURCES = \
raserror.h
\
reason.h
\
regstr.h
\
relogger.idl
\
restartmanager.h
\
restrictederrorinfo.idl
\
richedit.h
\
...
...
include/relogger.idl
0 → 100644
View file @
fd6e23e5
/*
*
Copyright
2021
Jacek
Caban
for
CodeWeavers
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
import
"unknwn.idl"
;
import
"oaidl.idl"
;
import
"ocidl.idl"
;
#
ifndef
__WIDL__
#
define
threading
(
model
)
#
endif
typedef
struct
_EVENT_DESCRIPTOR
{
USHORT
Id
;
UCHAR
Version
;
UCHAR
Channel
;
UCHAR
Level
;
UCHAR
Opcode
;
USHORT
Task
;
ULONGLONG
Keyword
;
}
EVENT_DESCRIPTOR
,
*
PEVENT_DESCRIPTOR
;
typedef
const
EVENT_DESCRIPTOR
*
PCEVENT_DESCRIPTOR
;
typedef
struct
_EVENT_HEADER
{
USHORT
Size
;
USHORT
HeaderType
;
USHORT
Flags
;
USHORT
EventProperty
;
ULONG
ThreadId
;
ULONG
ProcessId
;
LARGE_INTEGER
TimeStamp
;
GUID
ProviderId
;
EVENT_DESCRIPTOR
EventDescriptor
;
union
{
struct
{
ULONG
KernelTime
;
ULONG
UserTime
;
}
DUMMYSTRUCTNAME
;
ULONG64
ProcessorTime
;
}
DUMMYUNIONNAME
;
GUID
ActivityId
;
}
EVENT_HEADER
,
*
PEVENT_HEADER
;
typedef
struct
_ETW_BUFFER_CONTEXT
{
union
{
struct
{
UCHAR
ProcessorNumber
;
UCHAR
Alignment
;
}
DUMMYSTRUCTNAME
;
USHORT
ProcessorIndex
;
}
DUMMYUNIONNAME
;
USHORT
LoggerId
;
}
ETW_BUFFER_CONTEXT
,
*
PETW_BUFFER_CONTEXT
;
typedef
struct
_EVENT_HEADER_EXTENDED_DATA_ITEM
{
USHORT
Reserved1
;
USHORT
ExtType
;
USHORT
Linkage
;
USHORT
DataSize
;
ULONGLONG
DataPtr
;
}
EVENT_HEADER_EXTENDED_DATA_ITEM
,
*
PEVENT_HEADER_EXTENDED_DATA_ITEM
;
typedef
struct
_EVENT_RECORD
{
EVENT_HEADER
EventHeader
;
ETW_BUFFER_CONTEXT
BufferContext
;
USHORT
ExtendedDataCount
;
USHORT
UserDataLength
;
EVENT_HEADER_EXTENDED_DATA_ITEM
*
ExtendedData
;
void
*
UserData
;
void
*
UserContext
;
}
EVENT_RECORD
,
*
PEVENT_RECORD
;
typedef
ULONG64
TRACEHANDLE
,
*
PTRACEHANDLE
;
[
object
,
uuid
(
8
cc97f40
-
9028
-
4
ff3
-
9b62
-
7
d1f79ca7bcb
),
local
]
interface
ITraceEvent
:
IUnknown
{
HRESULT
Clone
(
[
out
,
retval
]
ITraceEvent
**
NewEvent
)
;
HRESULT
GetUserContext
(
[
out
,
retval
]
void
**
UserContext
)
;
HRESULT
GetEventRecord
(
[
out
,
retval
]
PEVENT_RECORD
*
EventRecord
)
;
HRESULT
SetPayload
(
[
in
,
size_is
(
PayloadSize
)
]
BYTE
*
Payload
,
[
in
]
ULONG
PayloadSize
)
;
HRESULT
SetEventDescriptor
(
[
in
]
PCEVENT_DESCRIPTOR
EventDescriptor
)
;
HRESULT
SetProcessId
(
[
in
]
ULONG
ProcessId
)
;
HRESULT
SetProcessorIndex
(
[
in
]
ULONG
ProcessorIndex
)
;
HRESULT
SetThreadId
(
[
in
]
ULONG
ThreadId
)
;
HRESULT
SetThreadTimes
(
[
in
]
ULONG
KernelTime
,
[
in
]
ULONG
UserTime
)
;
HRESULT
SetActivityId
(
[
in
]
LPCGUID
ActivityId
)
;
HRESULT
SetTimeStamp
(
[
in
]
LARGE_INTEGER
*
TimeStamp
)
;
HRESULT
SetProviderId
(
[
in
]
LPCGUID
ProviderId
)
;
}
interface
ITraceRelogger
;
[
object
,
uuid
(
3
ed25501
-
593
f
-
43
e9
-
8
f38
-
3
ab46f5a4a52
)
]
interface
ITraceEventCallback
:
IUnknown
{
HRESULT
OnBeginProcessTrace
(
[
in
]
ITraceEvent
*
HeaderEvent
,
[
in
]
ITraceRelogger
*
Relogger
)
;
HRESULT
OnFinalizeProcessTrace
(
[
in
]
ITraceRelogger
*
Relogger
)
;
HRESULT
OnEvent
(
[
in
]
ITraceEvent
*
Event
,
[
in
]
ITraceRelogger
*
Relogger
)
;
}
[
object
,
uuid
(
f754ad43
-
3b
cc
-
4286
-
8009
-
9
c5da214e84e
),
local
]
interface
ITraceRelogger
:
IUnknown
{
HRESULT
AddLogfileTraceStream
(
[
in
]
BSTR
LogfileName
,
[
in
]
void
*
UserContext
,
[
out
,
retval
]
TRACEHANDLE
*
TraceHandle
)
;
HRESULT
AddRealtimeTraceStream
(
[
in
]
BSTR
LoggerName
,
[
in
]
void
*
UserContext
,
[
out
,
retval
]
TRACEHANDLE
*
TraceHandle
)
;
HRESULT
RegisterCallback
(
[
in
]
ITraceEventCallback
*
Callback
)
;
HRESULT
Inject
(
[
in
]
ITraceEvent
*
Event
)
;
HRESULT
CreateEventInstance
(
[
in
]
TRACEHANDLE
TraceHandle
,
[
in
]
ULONG
Flags
,
[
out
,
retval
]
ITraceEvent
**
Event
)
;
HRESULT
ProcessTrace
()
;
HRESULT
SetOutputFilename
(
[
in
]
BSTR
LogfileName
)
;
HRESULT
SetCompressionMode
(
[
in
]
BOOLEAN
CompressionMode
)
;
HRESULT
Cancel
()
;
}
[
uuid
(
7b
40792d-05
ff
-
44
c4
-
9058
-
f440c71f17d4
),
threading
(
both
)
]
coclass
CTraceRelogger
{
[
default
]
interface
ITraceRelogger
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment