...
1
2
3
4
5 package etw
6
7 import (
8 "github.com/Microsoft/go-winio/pkg/guid"
9 "golang.org/x/sys/windows"
10 )
11
12 func eventUnregister(providerHandle providerHandle) (win32err error) {
13 return eventUnregister_64(providerHandle)
14 }
15
16 func eventWriteTransfer(
17 providerHandle providerHandle,
18 descriptor *eventDescriptor,
19 activityID *windows.GUID,
20 relatedActivityID *windows.GUID,
21 dataDescriptorCount uint32,
22 dataDescriptors *eventDataDescriptor) (win32err error) {
23 return eventWriteTransfer_64(
24 providerHandle,
25 descriptor,
26 activityID,
27 relatedActivityID,
28 dataDescriptorCount,
29 dataDescriptors)
30 }
31
32 func eventSetInformation(
33 providerHandle providerHandle,
34 class eventInfoClass,
35 information uintptr,
36 length uint32) (win32err error) {
37 return eventSetInformation_64(
38 providerHandle,
39 class,
40 information,
41 length)
42 }
43
44
45
46
47
48 func providerCallbackAdapter(
49 sourceID *guid.GUID,
50 state uintptr,
51 level uintptr,
52 matchAnyKeyword uintptr,
53 matchAllKeyword uintptr,
54 filterData uintptr,
55 i uintptr,
56 ) uintptr {
57 providerCallback(*sourceID,
58 ProviderState(state),
59 Level(level),
60 uint64(matchAnyKeyword),
61 uint64(matchAllKeyword),
62 filterData,
63 i)
64 return 0
65 }
66
View as plain text