d2d1/tests: Fix stroke style object leak (Valgrind).
[wine.git] / include / evntprov.h
bloba49fa79d9ada1c821b9e2e4155c65ea0b8f849c0
1 /*
2 * Copyright 2010 Hans Leidekker for CodeWeavers
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
19 #ifndef _EVNTPROV_H_
20 #define _EVNTPROV_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #define EVENT_LEVEL_MIN 0x00
27 #define EVENT_LEVEL_MAX 0xff
29 typedef ULONGLONG REGHANDLE, *PREGHANDLE;
31 typedef struct _EVENT_DATA_DESCRIPTOR
33 ULONGLONG Ptr;
34 ULONG Size;
35 ULONG Reserved;
36 } EVENT_DATA_DESCRIPTOR, *PEVENT_DATA_DESCRIPTOR;
38 typedef struct _EVENT_DESCRIPTOR
40 USHORT Id;
41 UCHAR Version;
42 UCHAR Channel;
43 UCHAR Level;
44 UCHAR Opcode;
45 USHORT Task;
46 ULONGLONG Keyword;
47 } EVENT_DESCRIPTOR;
49 typedef EVENT_DESCRIPTOR *PEVENT_DESCRIPTOR;
50 typedef const EVENT_DESCRIPTOR *PCEVENT_DESCRIPTOR;
52 typedef struct _EVENT_FILTER_DESCRIPTOR
54 ULONGLONG Ptr;
55 ULONG Size;
56 ULONG Type;
58 } EVENT_FILTER_DESCRIPTOR, *PEVENT_FILTER_DESCRIPTOR;
60 typedef VOID (NTAPI *PENABLECALLBACK)(LPCGUID,ULONG,UCHAR,ULONGLONG,ULONGLONG,PEVENT_FILTER_DESCRIPTOR,PVOID);
62 typedef enum _EVENT_INFO_CLASS
64 EventProviderBinaryTrackInfo = 0,
65 EventProviderSetTraits,
66 EventProviderUseDescriptorType,
67 MaxEventInfo
68 } EVENT_INFO_CLASS;
70 BOOLEAN WINAPI EventEnabled(REGHANDLE, PCEVENT_DESCRIPTOR);
71 BOOLEAN WINAPI EventProviderEnabled(REGHANDLE, UCHAR, ULONGLONG);
72 ULONG WINAPI EventRegister(LPCGUID,PENABLECALLBACK,PVOID,PREGHANDLE);
73 ULONG WINAPI EventSetInformation(REGHANDLE, EVENT_INFO_CLASS, PVOID, ULONG);
74 ULONG WINAPI EventUnregister(REGHANDLE);
75 ULONG WINAPI EventWrite(REGHANDLE,PCEVENT_DESCRIPTOR,ULONG,PEVENT_DATA_DESCRIPTOR);
76 ULONG WINAPI EventWriteTransfer(REGHANDLE,PCEVENT_DESCRIPTOR,LPCGUID,LPCGUID,ULONG,PEVENT_DATA_DESCRIPTOR);
78 #ifdef __cplusplus
80 #endif
82 #endif /* _EVNTPROV_H_ */