3 /* import "lsa.idl", "security.idl";*/
6 eventlog interface definition
8 [ uuid("82273fdc-e32a-18c3-3f78-827929dc23ea"),
10 pointer_default(unique),
11 helpstring("Event Logger")
15 EVENTLOG_SEQUENTIAL_READ
= 0x00000001,
16 EVENTLOG_SEEK_READ
= 0x00000002,
17 EVENTLOG_FORWARDS_READ
= 0x00000004,
18 EVENTLOG_BACKWARDS_READ
= 0x00000008
22 EVENTLOG_SUCCESS
= 0x00000000,
23 EVENTLOG_ERROR_TYPE
= 0x00000001,
24 EVENTLOG_WARNING_TYPE
= 0x00000002,
25 EVENTLOG_INFORMATION_TYPE
= 0x00000004,
26 EVENTLOG_AUDIT_SUCCESS
= 0x00000008,
27 EVENTLOG_AUDIT_FAILURE
= 0x00000010
33 } eventlog_OpenUnknown0
;
35 typedef [public] struct {
39 uint32 time_generated
;
43 uint16 num_of_strings
;
44 uint16 event_category
;
45 uint16 reserved_flags
;
46 uint32 closing_record_number
;
53 nstring computer_name
;
54 nstring strings
[num_of_strings
];
60 NTSTATUS eventlog_ClearEventLogW
(
61 [in] policy_handle
*handle,
62 [in,unique] lsa_String
*backupfilename
67 NTSTATUS eventlog_BackupEventLogW
(
68 [in] policy_handle
*handle,
69 [in,unique] lsa_String
*backupfilename
74 NTSTATUS eventlog_CloseEventLog
(
75 [in,out] policy_handle
*handle
80 NTSTATUS eventlog_DeregisterEventSource
(
81 [in,out] policy_handle
*handle
86 NTSTATUS eventlog_GetNumRecords
(
87 [in] policy_handle
*handle,
88 [out,ref] uint32
*number
93 NTSTATUS eventlog_GetOldestRecord
(
94 [in] policy_handle
*handle,
95 [out,ref] uint32
*oldest
103 } eventlog_ChangeUnknown0
;
105 NTSTATUS eventlog_ChangeNotify
(
106 [in] policy_handle
*handle,
107 [in, ref] eventlog_ChangeUnknown0
*unknown2
,
113 NTSTATUS eventlog_OpenEventLogW
(
114 [in,unique] eventlog_OpenUnknown0
*unknown0
,
115 [in] lsa_String
Module,
116 [in] lsa_String RegModuleName
,
117 [in] uint32 MajorVersion
,
118 [in] uint32 MinorVersion
,
119 [out] policy_handle
*handle
124 NTSTATUS eventlog_RegisterEventSourceW
(
125 [in,unique] eventlog_OpenUnknown0
*unknown0
,
126 [in] lsa_String logname
,
127 [in] lsa_String servername
,
128 [in] uint32 unknown2
,
129 [in] uint32 unknown3
,
130 [out] policy_handle
*handle
135 NTSTATUS eventlog_OpenBackupEventLogW
(
136 [in,unique] eventlog_OpenUnknown0
*unknown0
,
137 [in] lsa_String logname
,
138 [in] uint32 unknown2
,
139 [in] uint32 unknown3
,
140 [out] policy_handle
*handle
145 NTSTATUS eventlog_ReadEventLogW
(
146 [in] policy_handle
*handle,
147 [in] eventlogReadFlags flags
,
149 [in] uint32 number_of_bytes
,
150 [out,size_is(number_of_bytes
)] uint8
*data
,
151 [out,ref] uint32
*sent_size
,
152 [out,ref] uint32
*real_size
157 NTSTATUS eventlog_ReportEventW
(
158 [in] policy_handle
*handle,
160 [in] eventlogEventTypes Type
,
161 [in] uint16 event_category
,
162 [in] uint32 event_id
,
163 [in] uint16 num_of_strings
,
164 [in] uint32 data_length
,
165 [in] lsa_String computer_name
171 NTSTATUS eventlog_ClearEventLogA
();
175 NTSTATUS eventlog_BackupEventLogA
();
179 NTSTATUS eventlog_OpenEventLogA
();
183 NTSTATUS eventlog_RegisterEventSourceA
();
187 NTSTATUS eventlog_OpenBackupEventLogA
();
191 NTSTATUS eventlog_ReadEventLogA
();
195 NTSTATUS eventlog_ReportEventA
();
199 NTSTATUS eventlog_RegisterClusterSvc
();
203 NTSTATUS eventlog_DeregisterClusterSvc
();
207 NTSTATUS eventlog_WriteClusterEvents
();
211 NTSTATUS eventlog_GetLogInformation
(
212 [in] policy_handle
*handle,
213 [in] uint32 dwInfoLevel
,
214 [out] [size_is(cbBufSize
)] char lpBuffer
[*],
215 [in] uint32 cbBufSize
,
216 [out,ref] long *cbBytesNeeded
221 NTSTATUS eventlog_FlushEventLog
(
222 [in] policy_handle
*handle