s3: re-run make samba3-idl.
[samba.git] / librpc / gen_ndr / eventlog.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/lsa.h"
6 #include "librpc/gen_ndr/security.h"
7 #ifndef _HEADER_eventlog
8 #define _HEADER_eventlog
9
10 /* bitmap eventlogReadFlags */
11 #define EVENTLOG_SEQUENTIAL_READ ( 0x0001 )
12 #define EVENTLOG_SEEK_READ ( 0x0002 )
13 #define EVENTLOG_FORWARDS_READ ( 0x0004 )
14 #define EVENTLOG_BACKWARDS_READ ( 0x0008 )
15
16 /* bitmap eventlogEventTypes */
17 #define EVENTLOG_SUCCESS ( 0x0000 )
18 #define EVENTLOG_ERROR_TYPE ( 0x0001 )
19 #define EVENTLOG_WARNING_TYPE ( 0x0002 )
20 #define EVENTLOG_INFORMATION_TYPE ( 0x0004 )
21 #define EVENTLOG_AUDIT_SUCCESS ( 0x0008 )
22 #define EVENTLOG_AUDIT_FAILURE ( 0x0010 )
23
24 struct eventlog_OpenUnknown0 {
25         uint16_t unknown0;
26         uint16_t unknown1;
27 };
28
29 struct eventlog_Record {
30         uint32_t size;
31         uint32_t reserved;/* [value(0x654c664C)] */
32         uint32_t record_number;
33         time_t time_generated;
34         time_t time_written;
35         uint32_t event_id;
36         uint16_t event_type;
37         uint16_t num_of_strings;
38         uint16_t event_category;
39         uint16_t reserved_flags;
40         uint32_t closing_record_number;
41         uint32_t stringoffset;
42         uint32_t sid_size;/* [value(ndr_size_dom_sid0(&sid,ndr->flags))] */
43         uint32_t sid_offset;
44         uint32_t data_length;
45         uint32_t data_offset;
46         const char * source_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
47         const char * computer_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
48         struct dom_sid0 sid;/* [subcontext_size(sid_size),subcontext(0)] */
49         const char * *strings;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
50         const char * raw_data;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
51         DATA_BLOB _padding;/* [flag(LIBNDR_FLAG_ALIGN4)] */
52         uint32_t size2;/* [value(size)] */
53 }/* [public] */;
54
55
56 struct eventlog_ClearEventLogW {
57         struct {
58                 struct policy_handle *handle;/* [ref] */
59                 struct lsa_String *backupfile;/* [unique] */
60         } in;
61
62         struct {
63                 NTSTATUS result;
64         } out;
65
66 };
67
68
69 struct eventlog_BackupEventLogW {
70         struct {
71                 NTSTATUS result;
72         } out;
73
74 };
75
76
77 struct eventlog_CloseEventLog {
78         struct {
79                 struct policy_handle *handle;/* [ref] */
80         } in;
81
82         struct {
83                 struct policy_handle *handle;/* [ref] */
84                 NTSTATUS result;
85         } out;
86
87 };
88
89
90 struct eventlog_DeregisterEventSource {
91         struct {
92                 NTSTATUS result;
93         } out;
94
95 };
96
97
98 struct eventlog_GetNumRecords {
99         struct {
100                 struct policy_handle *handle;/* [ref] */
101         } in;
102
103         struct {
104                 uint32_t *number;/* [ref] */
105                 NTSTATUS result;
106         } out;
107
108 };
109
110
111 struct eventlog_GetOldestRecord {
112         struct {
113                 struct policy_handle *handle;/* [ref] */
114         } in;
115
116         struct {
117                 uint32_t *oldest_entry;/* [ref] */
118                 NTSTATUS result;
119         } out;
120
121 };
122
123
124 struct eventlog_ChangeNotify {
125         struct {
126                 NTSTATUS result;
127         } out;
128
129 };
130
131
132 struct eventlog_OpenEventLogW {
133         struct {
134                 struct eventlog_OpenUnknown0 *unknown0;/* [unique] */
135                 struct lsa_String *logname;/* [ref] */
136                 struct lsa_String *servername;/* [ref] */
137                 uint32_t major_version;
138                 uint32_t minor_version;
139         } in;
140
141         struct {
142                 struct policy_handle *handle;/* [ref] */
143                 NTSTATUS result;
144         } out;
145
146 };
147
148
149 struct eventlog_RegisterEventSourceW {
150         struct {
151                 NTSTATUS result;
152         } out;
153
154 };
155
156
157 struct eventlog_OpenBackupEventLogW {
158         struct {
159                 NTSTATUS result;
160         } out;
161
162 };
163
164
165 struct eventlog_ReadEventLogW {
166         struct {
167                 struct policy_handle *handle;/* [ref] */
168                 uint32_t flags;
169                 uint32_t offset;
170                 uint32_t number_of_bytes;/* [range(0,0x7FFFF)] */
171         } in;
172
173         struct {
174                 uint8_t *data;/* [ref,size_is(number_of_bytes)] */
175                 uint32_t *sent_size;/* [ref] */
176                 uint32_t *real_size;/* [ref] */
177                 NTSTATUS result;
178         } out;
179
180 };
181
182
183 struct eventlog_ReportEventW {
184         struct {
185                 NTSTATUS result;
186         } out;
187
188 };
189
190
191 struct eventlog_ClearEventLogA {
192         struct {
193                 NTSTATUS result;
194         } out;
195
196 };
197
198
199 struct eventlog_BackupEventLogA {
200         struct {
201                 NTSTATUS result;
202         } out;
203
204 };
205
206
207 struct eventlog_OpenEventLogA {
208         struct {
209                 NTSTATUS result;
210         } out;
211
212 };
213
214
215 struct eventlog_RegisterEventSourceA {
216         struct {
217                 NTSTATUS result;
218         } out;
219
220 };
221
222
223 struct eventlog_OpenBackupEventLogA {
224         struct {
225                 NTSTATUS result;
226         } out;
227
228 };
229
230
231 struct eventlog_ReadEventLogA {
232         struct {
233                 NTSTATUS result;
234         } out;
235
236 };
237
238
239 struct eventlog_ReportEventA {
240         struct {
241                 NTSTATUS result;
242         } out;
243
244 };
245
246
247 struct eventlog_RegisterClusterSvc {
248         struct {
249                 NTSTATUS result;
250         } out;
251
252 };
253
254
255 struct eventlog_DeregisterClusterSvc {
256         struct {
257                 NTSTATUS result;
258         } out;
259
260 };
261
262
263 struct eventlog_WriteClusterEvents {
264         struct {
265                 NTSTATUS result;
266         } out;
267
268 };
269
270
271 struct eventlog_GetLogIntormation {
272         struct {
273                 NTSTATUS result;
274         } out;
275
276 };
277
278
279 struct eventlog_FlushEventLog {
280         struct {
281                 struct policy_handle *handle;/* [ref] */
282         } in;
283
284         struct {
285                 NTSTATUS result;
286         } out;
287
288 };
289
290 #endif /* _HEADER_eventlog */