1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/lsa.h"
8 #include "librpc/gen_ndr/security.h"
9 #ifndef _HEADER_eventlog
10 #define _HEADER_eventlog
12 /* bitmap eventlogReadFlags */
13 #define EVENTLOG_SEQUENTIAL_READ ( 0x0001 )
14 #define EVENTLOG_SEEK_READ ( 0x0002 )
15 #define EVENTLOG_FORWARDS_READ ( 0x0004 )
16 #define EVENTLOG_BACKWARDS_READ ( 0x0008 )
18 enum eventlogEventTypes
19 #ifndef USE_UINT_ENUMS
21 EVENTLOG_SUCCESS
=0x0000,
22 EVENTLOG_ERROR_TYPE
=0x0001,
23 EVENTLOG_WARNING_TYPE
=0x0002,
24 EVENTLOG_INFORMATION_TYPE
=0x0004,
25 EVENTLOG_AUDIT_SUCCESS
=0x0008,
26 EVENTLOG_AUDIT_FAILURE
=0x0010
29 { __donnot_use_enum_eventlogEventTypes
=0x7FFFFFFF}
30 #define EVENTLOG_SUCCESS ( 0x0000 )
31 #define EVENTLOG_ERROR_TYPE ( 0x0001 )
32 #define EVENTLOG_WARNING_TYPE ( 0x0002 )
33 #define EVENTLOG_INFORMATION_TYPE ( 0x0004 )
34 #define EVENTLOG_AUDIT_SUCCESS ( 0x0008 )
35 #define EVENTLOG_AUDIT_FAILURE ( 0x0010 )
39 struct eventlog_OpenUnknown0
{
44 struct eventlog_Record_tdb
{
46 const char *reserved
;/* [value("eLfL"),charset(DOS)] */
47 uint32_t record_number
;
48 time_t time_generated
;
51 enum eventlogEventTypes event_type
;
52 uint16_t num_of_strings
;/* [range(0,256)] */
53 uint16_t event_category
;
54 uint16_t reserved_flags
;
55 uint32_t closing_record_number
;
56 uint32_t stringoffset
;
57 uint32_t sid_length
;/* [value(sid.length)] */
59 uint32_t data_length
;/* [value(data.length)] */
61 uint32_t source_name_len
;/* [value(2*strlen_m_term(source_name))] */
62 const char * source_name
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
63 uint32_t computer_name_len
;/* [value(2*strlen_m_term(computer_name))] */
64 const char * computer_name
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
67 uint32_t strings_len
;/* [value(2*ndr_size_string_array(strings,num_of_strings,LIBNDR_FLAG_STR_NULLTERM))] */
68 const char * *strings
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
71 }/* [public,flag(LIBNDR_FLAG_NOALIGN|LIBNDR_PRINT_ARRAY_HEX)] */;
73 enum EVENTLOG_HEADER_FLAGS
74 #ifndef USE_UINT_ENUMS
76 ELF_LOGFILE_HEADER_DIRTY
=0x0001,
77 ELF_LOGFILE_HEADER_WRAP
=0x0002,
78 ELF_LOGFILE_LOGFULL_WRITTEN
=0x0004,
79 ELF_LOGFILE_ARCHIVE_SET
=0x0008
82 { __donnot_use_enum_EVENTLOG_HEADER_FLAGS
=0x7FFFFFFF}
83 #define ELF_LOGFILE_HEADER_DIRTY ( 0x0001 )
84 #define ELF_LOGFILE_HEADER_WRAP ( 0x0002 )
85 #define ELF_LOGFILE_LOGFULL_WRITTEN ( 0x0004 )
86 #define ELF_LOGFILE_ARCHIVE_SET ( 0x0008 )
90 struct EVENTLOGHEADER
{
91 uint32_t HeaderSize
;/* [value(0x30)] */
92 const char *Signature
;/* [value("LfLe"),charset(DOS)] */
93 uint32_t MajorVersion
;/* [value] */
94 uint32_t MinorVersion
;/* [value] */
97 uint32_t CurrentRecordNumber
;
98 uint32_t OldestRecordNumber
;
100 enum EVENTLOG_HEADER_FLAGS Flags
;
102 uint32_t EndHeaderSize
;/* [value(0x30)] */
105 struct EVENTLOGRECORD
{
107 const char *Reserved
;/* [value("LfLe"),charset(DOS)] */
108 uint32_t RecordNumber
;
109 time_t TimeGenerated
;
112 enum eventlogEventTypes EventType
;
114 uint16_t EventCategory
;
115 uint16_t ReservedFlags
;
116 uint32_t ClosingRecordNumber
;
117 uint32_t StringOffset
;/* [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername))+UserSidLength)] */
118 uint32_t UserSidLength
;/* [value(ndr_size_dom_sid0(&UserSid,ndr->flags))] */
119 uint32_t UserSidOffset
;/* [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername)))] */
121 uint32_t DataOffset
;/* [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername))+UserSidLength+(2*ndr_size_string_array(Strings,NumStrings,LIBNDR_FLAG_STR_NULLTERM)))] */
122 const char * SourceName
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
123 const char * Computername
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
124 struct dom_sid0 UserSid
;/* [subcontext_size(UserSidLength),subcontext(0),flag(LIBNDR_FLAG_ALIGN4)] */
125 const char * *Strings
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
126 uint8_t *Data
;/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */
127 const char * Pad
;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
128 uint32_t Length2
;/* [value(Length)] */
129 }/* [gensize,public] */;
132 uint32_t RecordSizeBeginning
;/* [value(0x28)] */
133 uint32_t One
;/* [value(0x11111111)] */
134 uint32_t Two
;/* [value(0x22222222)] */
135 uint32_t Three
;/* [value(0x33333333)] */
136 uint32_t Four
;/* [value(0x44444444)] */
137 uint32_t BeginRecord
;
139 uint32_t CurrentRecordNumber
;
140 uint32_t OldestRecordNumber
;
141 uint32_t RecordSizeEnd
;/* [value(0x28)] */
144 struct EVENTLOG_EVT_FILE
{
145 struct EVENTLOGHEADER hdr
;
146 struct EVENTLOGRECORD
*records
;
147 struct EVENTLOGEOF eof
;
150 struct EVENTLOG_FULL_INFORMATION
{
155 struct eventlog_ClearEventLogW
{
157 struct policy_handle
*handle
;/* [ref] */
158 struct lsa_String
*backupfile
;/* [unique] */
168 struct eventlog_BackupEventLogW
{
170 struct policy_handle
*handle
;/* [ref] */
171 struct lsa_String
*backup_filename
;/* [ref] */
181 struct eventlog_CloseEventLog
{
183 struct policy_handle
*handle
;/* [ref] */
187 struct policy_handle
*handle
;/* [ref] */
194 struct eventlog_DeregisterEventSource
{
196 struct policy_handle
*handle
;/* [ref] */
200 struct policy_handle
*handle
;/* [ref] */
207 struct eventlog_GetNumRecords
{
209 struct policy_handle
*handle
;/* [ref] */
213 uint32_t *number
;/* [ref] */
220 struct eventlog_GetOldestRecord
{
222 struct policy_handle
*handle
;/* [ref] */
226 uint32_t *oldest_entry
;/* [ref] */
233 struct eventlog_ChangeNotify
{
241 struct eventlog_OpenEventLogW
{
243 struct eventlog_OpenUnknown0
*unknown0
;/* [unique] */
244 struct lsa_String
*logname
;/* [ref] */
245 struct lsa_String
*servername
;/* [ref] */
246 uint32_t major_version
;
247 uint32_t minor_version
;
251 struct policy_handle
*handle
;/* [ref] */
258 struct eventlog_RegisterEventSourceW
{
260 struct eventlog_OpenUnknown0
*unknown0
;/* [unique] */
261 struct lsa_String
*module_name
;/* [ref] */
262 struct lsa_String
*reg_module_name
;/* [ref] */
263 uint32_t major_version
;
264 uint32_t minor_version
;
268 struct policy_handle
*log_handle
;/* [ref] */
275 struct eventlog_OpenBackupEventLogW
{
277 struct eventlog_OpenUnknown0
*unknown0
;/* [unique] */
278 struct lsa_String
*backup_logname
;/* [ref] */
279 uint32_t major_version
;
280 uint32_t minor_version
;
284 struct policy_handle
*handle
;/* [ref] */
291 struct eventlog_ReadEventLogW
{
293 struct policy_handle
*handle
;/* [ref] */
296 uint32_t number_of_bytes
;/* [range(0,0x7FFFF)] */
300 uint8_t *data
;/* [ref,size_is(number_of_bytes)] */
301 uint32_t *sent_size
;/* [ref] */
302 uint32_t *real_size
;/* [ref] */
309 struct eventlog_ReportEventW
{
311 struct policy_handle
*handle
;/* [ref] */
313 enum eventlogEventTypes event_type
;
314 uint16_t event_category
;
316 uint16_t num_of_strings
;/* [range(0,256)] */
317 uint32_t data_size
;/* [range(0,0x3FFFF)] */
318 struct lsa_String
*servername
;/* [ref] */
319 struct dom_sid
*user_sid
;/* [unique] */
320 struct lsa_String
**strings
;/* [unique,size_is(num_of_strings)] */
321 uint8_t *data
;/* [unique,size_is(data_size)] */
323 uint32_t *record_number
;/* [unique] */
324 time_t *time_written
;/* [unique] */
328 uint32_t *record_number
;/* [unique] */
329 time_t *time_written
;/* [unique] */
336 struct eventlog_ClearEventLogA
{
344 struct eventlog_BackupEventLogA
{
352 struct eventlog_OpenEventLogA
{
360 struct eventlog_RegisterEventSourceA
{
368 struct eventlog_OpenBackupEventLogA
{
376 struct eventlog_ReadEventLogA
{
384 struct eventlog_ReportEventA
{
392 struct eventlog_RegisterClusterSvc
{
400 struct eventlog_DeregisterClusterSvc
{
408 struct eventlog_WriteClusterEvents
{
416 struct eventlog_GetLogInformation
{
418 struct policy_handle
*handle
;/* [ref] */
420 uint32_t buf_size
;/* [range(0,1024)] */
424 uint8_t *buffer
;/* [ref,size_is(buf_size)] */
425 uint32_t *bytes_needed
;/* [ref] */
432 struct eventlog_FlushEventLog
{
434 struct policy_handle
*handle
;/* [ref] */
444 struct eventlog_ReportEventAndSourceW
{
446 struct policy_handle
*handle
;/* [ref] */
448 enum eventlogEventTypes event_type
;
449 uint16_t event_category
;
451 struct lsa_String
*sourcename
;/* [ref] */
452 uint16_t num_of_strings
;/* [range(0,256)] */
453 uint32_t data_size
;/* [range(0,0x3FFFF)] */
454 struct lsa_String
*servername
;/* [ref] */
455 struct dom_sid
*user_sid
;/* [unique] */
456 struct lsa_String
**strings
;/* [unique,size_is(num_of_strings)] */
457 uint8_t *data
;/* [unique,size_is(data_size)] */
459 uint32_t *record_number
;/* [unique] */
460 time_t *time_written
;/* [unique] */
464 uint32_t *record_number
;/* [unique] */
465 time_t *time_written
;/* [unique] */
471 #endif /* _HEADER_eventlog */