ReactOS  0.4.12-dev-916-gffc4e30
eventlogrpc.idl
Go to the documentation of this file.
1 /*
2  * Event Log RPC interface definition
3  */
4 
5 #include <ms-dtyp.idl>
6 
7 cpp_quote("#if !defined(__EVENTLOG_H__) && !defined(__ADVAPI32_H)")
8 typedef long NTSTATUS;
9 cpp_quote("#endif")
10 
11 #define MAX_STRINGS 0x00000100
12 #define MAX_SINGLE_EVENT 0x0003FFFF // On Vista+ this is reduced to 0x0000F000
13 #define MAX_BATCH_BUFF 0x0007FFFF
14 
15 typedef [range(0, MAX_BATCH_BUFF)] unsigned long RULONG;
16 typedef struct _RPC_STRING {
19  [size_is(MaximumLength), length_is(Length)] LPSTR Buffer;
21 
22 typedef [context_handle] PVOID IELF_HANDLE;
26 
27 typedef struct _RPC_CLIENT_ID {
31 
32 [
33  uuid(82273FDC-E32A-18C3-3F78-827929DC23EA),
34  version(0.0),
36  endpoint("ncacn_np:[\\pipe\\EventLog]")
37 #ifndef __midl
38  ,explicit_handle
39 #endif
40 ]
41 
42 interface eventlog
43 {
44  /* Function 0 */
45  NTSTATUS
46  __stdcall
49  [in, unique] PRPC_UNICODE_STRING BackupFileName);
50 
51  /* Function 1 */
52  NTSTATUS
53  __stdcall
56  [in, unique] PRPC_UNICODE_STRING BackupFileName);
57 
58  /* Function 2 */
59  NTSTATUS
60  __stdcall
63 
64  /* Function 3 */
65  NTSTATUS
66  __stdcall
69 
70  /* Function 4 */
71  NTSTATUS
72  __stdcall
75  [out] PULONG NumberOfRecords);
76 
77  /* Function 5 */
78  NTSTATUS
79  __stdcall
82  [out] PULONG OldestRecordNumber);
83 
84  /* Function 6 */
85  NTSTATUS
86  __stdcall
90  [in] ULONG Event);
91 
92  /* Function 7 */
93  NTSTATUS
94  __stdcall
96  [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
98  [in] PRPC_UNICODE_STRING RegModuleName,
102 
103  /* Function 8 */
104  NTSTATUS
105  __stdcall
107  [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
109  [in] PRPC_UNICODE_STRING RegModuleName,
113 
114  /* Function 9 */
115  NTSTATUS
116  __stdcall
117  ElfrOpenBELW(
118  [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
119  [in] PRPC_UNICODE_STRING BackupFileName,
123 
124  /* Function 10 */
125  NTSTATUS
126  __stdcall
127  ElfrReadELW(
129  [in] ULONG ReadFlags,
130  [in] ULONG RecordOffset,
131  [in] RULONG NumberOfBytesToRead,
132  [out, size_is(NumberOfBytesToRead)] PBYTE Buffer,
133  [out] PULONG NumberOfBytesRead,
134  [out] PULONG MinNumberOfBytesNeeded);
135 
136  /* Function 11 */
137  NTSTATUS
138  __stdcall
141  [in] ULONG Time,
142  [in] USHORT EventType,
143  [in] USHORT EventCategory,
144  [in] ULONG EventID,
147  [in] PRPC_UNICODE_STRING ComputerName,
148  [in, unique] PRPC_SID UserSID,
150  [in, size_is(DataSize), unique] PBYTE Data,
151  [in] USHORT Flags,
152  [in, out, unique] PULONG RecordNumber,
153  [in, out, unique] PULONG TimeWritten);
154 
155  /* Function 12 */
156  NTSTATUS
157  __stdcall
160  [in, unique] PRPC_STRING BackupFileName);
161 
162  /* Function 13 */
163  NTSTATUS
164  __stdcall
167  [in, unique] PRPC_STRING BackupFileName);
168 
169  /* Function 14 */
170  NTSTATUS
171  __stdcall
172  ElfrOpenELA(
173  [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
175  [in] PRPC_STRING RegModuleName,
179 
180  /* Function 15 */
181  NTSTATUS
182  __stdcall
184  [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
186  [in] PRPC_STRING RegModuleName,
190 
191  /* Function 16 */
192  NTSTATUS
193  __stdcall
194  ElfrOpenBELA(
195  [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
196  [in] PRPC_STRING BackupFileName,
200 
201  /* Function 17 */
202  NTSTATUS
203  __stdcall
204  ElfrReadELA(
206  [in] ULONG ReadFlags,
207  [in] ULONG RecordOffset,
208  [in] RULONG NumberOfBytesToRead,
209  [out, size_is(NumberOfBytesToRead)] PBYTE Buffer,
210  [out] PULONG NumberOfBytesRead,
211  [out] PULONG MinNumberOfBytesNeeded);
212 
213  /* Function 18 */
214  NTSTATUS
215  __stdcall
218  [in] ULONG Time,
219  [in] USHORT EventType,
220  [in] USHORT EventCategory,
221  [in] ULONG EventID,
224  [in] PRPC_STRING ComputerName,
225  [in, unique] PRPC_SID UserSID,
226  [in, size_is(NumStrings), unique] PRPC_STRING Strings[*],
227  [in, size_is(DataSize), unique] PBYTE Data,
228  [in] USHORT Flags,
229  [in, out, unique] PULONG RecordNumber,
230  [in, out, unique] PULONG TimeWritten);
231 
232  /* Function 19 */
233  NTSTATUS
234  __stdcall
237 
238  /* Function 20 */
239  NTSTATUS
240  __stdcall
243 
244  /* Function 21 */
245  NTSTATUS
246  __stdcall
249 
250  /* Function 22 */
251  NTSTATUS
252  __stdcall
255  [in] ULONG InfoLevel,
256  [out, size_is(cbBufSize)] PBYTE Buffer,
257  [in, range(0, 1024)] ULONG cbBufSize,
259 
260  /* Function 23 */
261  NTSTATUS
262  __stdcall
263  ElfrFlushEL(
265 
266  /* Function 24 */
267  NTSTATUS
268  __stdcall
271  [in] ULONG Time,
272  [in] USHORT EventType,
273  [in] USHORT EventCategory,
274  [in] ULONG EventID,
278  [in] PRPC_UNICODE_STRING ComputerName,
279  [in, unique] PRPC_SID UserSID,
281  [in, size_is(DataSize), unique] PBYTE Data,
282  [in] USHORT Flags,
283  [in, out, unique] PULONG RecordNumber,
284  [in, out, unique] PULONG TimeWritten);
285 }
LPWSTR EVENTLOG_HANDLE_W
Definition: eventlogrpc.idl:24
_In_ DWORD _In_ DWORD _Out_ LPDWORD pcbBytesNeeded
Definition: winsvc.h:424
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
Definition: sock.c:82
ULONG MinorVersion
Definition: ros_glue.cpp:5
NTSTATUS __stdcall ElfrOpenELW([in, unique] EVENTLOG_HANDLE_W UNCServerName, [in] PRPC_UNICODE_STRING ModuleName, [in] PRPC_UNICODE_STRING RegModuleName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
ULONG MajorVersion
Definition: ros_glue.cpp:4
USHORT Length
Definition: eventlogrpc.idl:17
NTSTATUS __stdcall ElfrReportEventAndSourceW([in] IELF_HANDLE LogHandle, [in] ULONG Time, [in] USHORT EventType, [in] USHORT EventCategory, [in] ULONG EventID, [in] PRPC_UNICODE_STRING SourceName, [in, range(0, MAX_STRINGS)] USHORT NumStrings, [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize, [in] PRPC_UNICODE_STRING ComputerName, [in, unique] PRPC_SID UserSID, [in, size_is(NumStrings), unique] PRPC_UNICODE_STRING Strings[*], [in, size_is(DataSize), unique] PBYTE Data, [in] USHORT Flags, [in, out, unique] PULONG RecordNumber, [in, out, unique] PULONG TimeWritten)
NTSTATUS __stdcall ElfrReportEventW([in] IELF_HANDLE LogHandle, [in] ULONG Time, [in] USHORT EventType, [in] USHORT EventCategory, [in] ULONG EventID, [in, range(0, MAX_STRINGS)] USHORT NumStrings, [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize, [in] PRPC_UNICODE_STRING ComputerName, [in, unique] PRPC_SID UserSID, [in, size_is(NumStrings), unique] PRPC_UNICODE_STRING Strings[*], [in, size_is(DataSize), unique] PBYTE Data, [in] USHORT Flags, [in, out, unique] PULONG RecordNumber, [in, out, unique] PULONG TimeWritten)
NTSTATUS __stdcall ElfrCloseEL([in, out] PIELF_HANDLE LogHandle)
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS __stdcall ElfrFlushEL([in] IELF_HANDLE LogHandle)
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
unsigned long RULONG
Definition: eventlogrpc.idl:15
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1252
struct _RPC_CLIENT_ID RPC_CLIENT_ID
char * LPSTR
Definition: xmlstorage.h:182
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
NTSTATUS __stdcall ElfrNumberOfRecords([in] IELF_HANDLE LogHandle, [out] PULONG NumberOfRecords)
NTSTATUS __stdcall ElfrOpenBELW([in, unique] EVENTLOG_HANDLE_W UNCServerName, [in] PRPC_UNICODE_STRING BackupFileName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
NTSTATUS __stdcall ElfrDeregisterEventSource([in, out] PIELF_HANDLE LogHandle)
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT NumStrings
Definition: ndis.h:4733
NTSTATUS __stdcall ElfrChangeNotify([in] IELF_HANDLE LogHandle, [in] RPC_CLIENT_ID ClientId, [in] ULONG Event)
USHORT MaximumLength
Definition: eventlogrpc.idl:18
NTSTATUS __stdcall ElfrClearELFW([in] IELF_HANDLE LogHandle, [in, unique] PRPC_UNICODE_STRING BackupFileName)
static const WCHAR version[]
Definition: asmname.c:64
#define MAX_BATCH_BUFF
Definition: eventlogrpc.idl:13
NTSTATUS __stdcall ElfrOpenELA([in, unique] EVENTLOG_HANDLE_A UNCServerName, [in] PRPC_STRING ModuleName, [in] PRPC_STRING RegModuleName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
Definition: bufpool.h:45
#define MAX_SINGLE_EVENT
Definition: eventlogrpc.idl:12
struct _RPC_CLIENT_ID * PRPC_CLIENT_ID
NTSTATUS __stdcall ElfrClearELFA([in] IELF_HANDLE LogHandle, [in, unique] PRPC_STRING BackupFileName)
IELF_HANDLE * PIELF_HANDLE
Definition: eventlogrpc.idl:23
struct _RPC_STRING * PRPC_STRING
NTSTATUS __stdcall ElfrRegisterClusterSvc([in] handle_t BindingHandle)
_Out_ PCLIENT_ID ClientId
Definition: kefuncs.h:1176
NTSTATUS __stdcall ElfrReadELA([in] IELF_HANDLE LogHandle, [in] ULONG ReadFlags, [in] ULONG RecordOffset, [in] RULONG NumberOfBytesToRead, [out, size_is(NumberOfBytesToRead)] PBYTE Buffer, [out] PULONG NumberOfBytesRead, [out] PULONG MinNumberOfBytesNeeded)
struct endpoint endpoint
Definition: nis.h:15
static FILE * out
Definition: regtests2xml.c:44
_In_ DWORD _In_ DWORD cbBufSize
Definition: winsvc.h:424
#define __stdcall
Definition: typedefs.h:25
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
static const WCHAR Strings[]
Definition: reg.c:35
NTSTATUS __stdcall ElfrReportEventA([in] IELF_HANDLE LogHandle, [in] ULONG Time, [in] USHORT EventType, [in] USHORT EventCategory, [in] ULONG EventID, [in, range(0, MAX_STRINGS)] USHORT NumStrings, [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize, [in] PRPC_STRING ComputerName, [in, unique] PRPC_SID UserSID, [in, size_is(NumStrings), unique] PRPC_STRING Strings[*], [in, size_is(DataSize), unique] PBYTE Data, [in] USHORT Flags, [in, out, unique] PULONG RecordNumber, [in, out, unique] PULONG TimeWritten)
NTSTATUS __stdcall ElfrOldestRecord([in] IELF_HANDLE LogHandle, [out] PULONG OldestRecordNumber)
NTSTATUS __stdcall ElfrWriteClusterEvents([in] handle_t BindingHandle)
NTSTATUS __stdcall ElfrRegisterEventSourceW([in, unique] EVENTLOG_HANDLE_W UNCServerName, [in] PRPC_UNICODE_STRING ModuleName, [in] PRPC_UNICODE_STRING RegModuleName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
NTSTATUS __stdcall ElfrReadELW([in] IELF_HANDLE LogHandle, [in] ULONG ReadFlags, [in] ULONG RecordOffset, [in] RULONG NumberOfBytesToRead, [out, size_is(NumberOfBytesToRead)] PBYTE Buffer, [out] PULONG NumberOfBytesRead, [out] PULONG MinNumberOfBytesNeeded)
NTSTATUS __stdcall ElfrBackupELFA([in] IELF_HANDLE LogHandle, [in, unique] PRPC_STRING BackupFileName)
struct _RPC_STRING RPC_STRING
PVOID IELF_HANDLE
Definition: eventlogrpc.idl:22
GLenum GLint * range
Definition: glext.h:7539
NTSTATUS __stdcall ElfrOpenBELA([in, unique] EVENTLOG_HANDLE_A UNCServerName, [in] PRPC_STRING BackupFileName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
NTSTATUS __stdcall ElfrRegisterEventSourceA([in, unique] EVENTLOG_HANDLE_A UNCServerName, [in] PRPC_STRING ModuleName, [in] PRPC_STRING RegModuleName, [in] ULONG MajorVersion, [in] ULONG MinorVersion, [out] PIELF_HANDLE LogHandle)
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
WCHAR SourceName[256]
Definition: arping.c:28
_ForwardIter unique(_ForwardIter __first, _ForwardIter __last)
Definition: _algo.h:298
unsigned int ULONG
Definition: retypes.h:1
NTSTATUS __stdcall ElfrDeregisterClusterSvc([in] handle_t BindingHandle)
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
Definition: exfuncs.h:165
_In_ UINT _Out_ PNDIS_HANDLE LogHandle
Definition: ndis.h:5363
WCHAR * LPWSTR
Definition: xmlstorage.h:184
NTSTATUS __stdcall ElfrBackupELFW([in] IELF_HANDLE LogHandle, [in, unique] PRPC_UNICODE_STRING BackupFileName)
NTSTATUS __stdcall ElfrGetLogInformation([in] IELF_HANDLE LogHandle, [in] ULONG InfoLevel, [out, size_is(cbBufSize)] PBYTE Buffer, [in, range(0, 1024)] ULONG cbBufSize, [out] PULONG pcbBytesNeeded)
LPSTR EVENTLOG_HANDLE_A
Definition: eventlogrpc.idl:25
BYTE * PBYTE
Definition: pedump.c:66
#define MAX_STRINGS
Definition: eventlogrpc.idl:11
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4733
static PLARGE_INTEGER Time
Definition: time.c:105