1 /* header auto-generated by pidl */
5 #include "librpc/gen_ndr/lsa.h"
6 #include "librpc/gen_ndr/security.h"
7 #ifndef _HEADER_eventlog
8 #define _HEADER_eventlog
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 )
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 )
24 struct eventlog_OpenUnknown0 {
29 struct eventlog_Record {
31 uint32_t reserved;/* [value(0x654c664C)] */
32 uint32_t record_number;
33 time_t time_generated;
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))] */
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)] */
56 struct eventlog_ClearEventLogW {
58 struct policy_handle *handle;/* [ref] */
59 struct lsa_String *backupfile;/* [unique] */
69 struct eventlog_BackupEventLogW {
77 struct eventlog_CloseEventLog {
79 struct policy_handle *handle;/* [ref] */
83 struct policy_handle *handle;/* [ref] */
90 struct eventlog_DeregisterEventSource {
98 struct eventlog_GetNumRecords {
100 struct policy_handle *handle;/* [ref] */
104 uint32_t *number;/* [ref] */
111 struct eventlog_GetOldestRecord {
113 struct policy_handle *handle;/* [ref] */
117 uint32_t *oldest_entry;/* [ref] */
124 struct eventlog_ChangeNotify {
132 struct eventlog_OpenEventLogW {
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;
142 struct policy_handle *handle;/* [ref] */
149 struct eventlog_RegisterEventSourceW {
157 struct eventlog_OpenBackupEventLogW {
165 struct eventlog_ReadEventLogW {
167 struct policy_handle *handle;/* [ref] */
170 uint32_t number_of_bytes;/* [range(0,0x7FFFF)] */
174 uint8_t *data;/* [ref,size_is(number_of_bytes)] */
175 uint32_t *sent_size;/* [ref] */
176 uint32_t *real_size;/* [ref] */
183 struct eventlog_ReportEventW {
191 struct eventlog_ClearEventLogA {
199 struct eventlog_BackupEventLogA {
207 struct eventlog_OpenEventLogA {
215 struct eventlog_RegisterEventSourceA {
223 struct eventlog_OpenBackupEventLogA {
231 struct eventlog_ReadEventLogA {
239 struct eventlog_ReportEventA {
247 struct eventlog_RegisterClusterSvc {
255 struct eventlog_DeregisterClusterSvc {
263 struct eventlog_WriteClusterEvents {
271 struct eventlog_GetLogIntormation {
279 struct eventlog_FlushEventLog {
281 struct policy_handle *handle;/* [ref] */
290 #endif /* _HEADER_eventlog */