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 enum eventlogEventTypes
17 #ifndef USE_UINT_ENUMS
19 EVENTLOG_SUCCESS=0x0000,
20 EVENTLOG_ERROR_TYPE=0x0001,
21 EVENTLOG_WARNING_TYPE=0x0002,
22 EVENTLOG_INFORMATION_TYPE=0x0004,
23 EVENTLOG_AUDIT_SUCCESS=0x0008,
24 EVENTLOG_AUDIT_FAILURE=0x0010
27 { __donnot_use_enum_eventlogEventTypes=0x7FFFFFFF}
28 #define EVENTLOG_SUCCESS ( 0x0000 )
29 #define EVENTLOG_ERROR_TYPE ( 0x0001 )
30 #define EVENTLOG_WARNING_TYPE ( 0x0002 )
31 #define EVENTLOG_INFORMATION_TYPE ( 0x0004 )
32 #define EVENTLOG_AUDIT_SUCCESS ( 0x0008 )
33 #define EVENTLOG_AUDIT_FAILURE ( 0x0010 )
37 struct eventlog_OpenUnknown0 {
42 struct eventlog_Record {
44 const char *reserved;/* [value("eLfL"),charset(DOS)] */
45 uint32_t record_number;
46 time_t time_generated;
49 enum eventlogEventTypes event_type;
50 uint16_t num_of_strings;/* [max(256)] */
51 uint16_t event_category;
52 uint16_t reserved_flags;
53 uint32_t closing_record_number;
54 uint32_t stringoffset;
55 uint32_t sid_size;/* [value(ndr_size_dom_sid0(&sid,ndr->flags))] */
59 const char * source_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
60 const char * computer_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
61 struct dom_sid0 sid;/* [subcontext_size(sid_size),subcontext(0)] */
62 const char * *strings;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
63 const char * raw_data;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
64 DATA_BLOB _padding;/* [flag(LIBNDR_FLAG_ALIGN4)] */
65 uint32_t size2;/* [value(size)] */
66 }/* [public,flag(LIBNDR_FLAG_NOALIGN)] */;
69 struct eventlog_ClearEventLogW {
71 struct policy_handle *handle;/* [ref] */
72 struct lsa_String *backupfile;/* [unique] */
82 struct eventlog_BackupEventLogW {
90 struct eventlog_CloseEventLog {
92 struct policy_handle *handle;/* [ref] */
96 struct policy_handle *handle;/* [ref] */
103 struct eventlog_DeregisterEventSource {
111 struct eventlog_GetNumRecords {
113 struct policy_handle *handle;/* [ref] */
117 uint32_t *number;/* [ref] */
124 struct eventlog_GetOldestRecord {
126 struct policy_handle *handle;/* [ref] */
130 uint32_t *oldest_entry;/* [ref] */
137 struct eventlog_ChangeNotify {
145 struct eventlog_OpenEventLogW {
147 struct eventlog_OpenUnknown0 *unknown0;/* [unique] */
148 struct lsa_String *logname;/* [ref] */
149 struct lsa_String *servername;/* [ref] */
150 uint32_t major_version;
151 uint32_t minor_version;
155 struct policy_handle *handle;/* [ref] */
162 struct eventlog_RegisterEventSourceW {
170 struct eventlog_OpenBackupEventLogW {
178 struct eventlog_ReadEventLogW {
180 struct policy_handle *handle;/* [ref] */
183 uint32_t number_of_bytes;/* [range(0,0x7FFFF)] */
187 uint8_t *data;/* [ref,size_is(number_of_bytes)] */
188 uint32_t *sent_size;/* [ref] */
189 uint32_t *real_size;/* [ref] */
196 struct eventlog_ReportEventW {
204 struct eventlog_ClearEventLogA {
212 struct eventlog_BackupEventLogA {
220 struct eventlog_OpenEventLogA {
228 struct eventlog_RegisterEventSourceA {
236 struct eventlog_OpenBackupEventLogA {
244 struct eventlog_ReadEventLogA {
252 struct eventlog_ReportEventA {
260 struct eventlog_RegisterClusterSvc {
268 struct eventlog_DeregisterClusterSvc {
276 struct eventlog_WriteClusterEvents {
284 struct eventlog_GetLogIntormation {
292 struct eventlog_FlushEventLog {
294 struct policy_handle *handle;/* [ref] */
303 #endif /* _HEADER_eventlog */