1 | /*
|
---|
2 | * Copyright 2010 Hans Leidekker for CodeWeavers
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _EVNTPROV_H_
|
---|
29 | #define _EVNTPROV_H_
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #define EVENT_LEVEL_MIN 0x00
|
---|
36 | #define EVENT_LEVEL_MAX 0xff
|
---|
37 |
|
---|
38 | typedef ULONGLONG REGHANDLE, *PREGHANDLE;
|
---|
39 |
|
---|
40 | typedef struct _EVENT_DATA_DESCRIPTOR
|
---|
41 | {
|
---|
42 | ULONGLONG Ptr;
|
---|
43 | ULONG Size;
|
---|
44 | ULONG Reserved;
|
---|
45 | } EVENT_DATA_DESCRIPTOR, *PEVENT_DATA_DESCRIPTOR;
|
---|
46 |
|
---|
47 | typedef struct _EVENT_DESCRIPTOR
|
---|
48 | {
|
---|
49 | USHORT Id;
|
---|
50 | UCHAR Version;
|
---|
51 | UCHAR Channel;
|
---|
52 | UCHAR Level;
|
---|
53 | UCHAR Opcode;
|
---|
54 | USHORT Task;
|
---|
55 | ULONGLONG Keyword;
|
---|
56 | } EVENT_DESCRIPTOR;
|
---|
57 |
|
---|
58 | typedef EVENT_DESCRIPTOR *PEVENT_DESCRIPTOR;
|
---|
59 | typedef const EVENT_DESCRIPTOR *PCEVENT_DESCRIPTOR;
|
---|
60 |
|
---|
61 | typedef struct _EVENT_FILTER_DESCRIPTOR
|
---|
62 | {
|
---|
63 | ULONGLONG Ptr;
|
---|
64 | ULONG Size;
|
---|
65 | ULONG Type;
|
---|
66 |
|
---|
67 | } EVENT_FILTER_DESCRIPTOR, *PEVENT_FILTER_DESCRIPTOR;
|
---|
68 |
|
---|
69 | typedef VOID (NTAPI *PENABLECALLBACK)(LPCGUID,ULONG,UCHAR,ULONGLONG,ULONGLONG,PEVENT_FILTER_DESCRIPTOR,PVOID);
|
---|
70 |
|
---|
71 | BOOLEAN WINAPI EventEnabled(REGHANDLE, PCEVENT_DESCRIPTOR);
|
---|
72 | ULONG WINAPI EventRegister(LPCGUID,PENABLECALLBACK,PVOID,PREGHANDLE);
|
---|
73 | ULONG WINAPI EventUnregister(REGHANDLE);
|
---|
74 | ULONG WINAPI EventWrite(REGHANDLE,PCEVENT_DESCRIPTOR,ULONG,PEVENT_DATA_DESCRIPTOR);
|
---|
75 |
|
---|
76 | #ifdef __cplusplus
|
---|
77 | }
|
---|
78 | #endif
|
---|
79 |
|
---|
80 | #endif /* _EVNTPROV_H_ */
|
---|