7cpp_quote(
"#if !defined(__EVENTLOG_H__) && !defined(__ADVAPI32_H)")
11#define MAX_STRINGS 0x00000100
12#define MAX_SINGLE_EVENT 0x0003FFFF // On Vista+ this is reduced to 0x0000F000
13#define MAX_BATCH_BUFF 0x0007FFFF
15typedef [range(0, MAX_BATCH_BUFF)] unsigned long RULONG;
16typedef struct _RPC_STRING {
19 [size_is(MaximumLength), length_is(Length)] LPSTR Buffer;
20} RPC_STRING, *PRPC_STRING;
22typedef [context_handle] PVOID IELF_HANDLE;
23typedef IELF_HANDLE *PIELF_HANDLE;
24typedef [handle, unique] LPWSTR EVENTLOG_HANDLE_W;
25typedef [handle, unique] LPSTR EVENTLOG_HANDLE_A;
27typedef struct _RPC_CLIENT_ID {
30} RPC_CLIENT_ID, *PRPC_CLIENT_ID;
33 uuid(82273FDC-E32A-18C3-3F78-827929DC23EA),
35 pointer_default(unique),
36 endpoint("ncacn_np:[\\pipe\\EventLog]")
48 [in] IELF_HANDLE LogHandle,
49 [in, unique] PRPC_UNICODE_STRING BackupFileName);
55 [in] IELF_HANDLE LogHandle,
56 [in, unique] PRPC_UNICODE_STRING BackupFileName);
62 [in, out] PIELF_HANDLE LogHandle);
67 ElfrDeregisterEventSource(
68 [in, out] PIELF_HANDLE LogHandle);
74 [in] IELF_HANDLE LogHandle,
75 [out] PULONG NumberOfRecords);
81 [in] IELF_HANDLE LogHandle,
82 [out] PULONG OldestRecordNumber);
88 [in] IELF_HANDLE LogHandle,
89 [in] RPC_CLIENT_ID ClientId,
96 [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
97 [in] PRPC_UNICODE_STRING ModuleName,
98 [in] PRPC_UNICODE_STRING RegModuleName,
99 [in] ULONG MajorVersion,
100 [in] ULONG MinorVersion,
101 [out] PIELF_HANDLE LogHandle);
106 ElfrRegisterEventSourceW(
107 [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
108 [in] PRPC_UNICODE_STRING ModuleName,
109 [in] PRPC_UNICODE_STRING RegModuleName,
110 [in] ULONG MajorVersion,
111 [in] ULONG MinorVersion,
112 [out] PIELF_HANDLE LogHandle);
118 [in, unique] EVENTLOG_HANDLE_W UNCServerName, /* FIXME */
119 [in] PRPC_UNICODE_STRING BackupFileName,
120 [in] ULONG MajorVersion,
121 [in] ULONG MinorVersion,
122 [out] PIELF_HANDLE LogHandle);
128 [in] IELF_HANDLE LogHandle,
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);
140 [in] IELF_HANDLE LogHandle,
142 [in] USHORT EventType,
143 [in] USHORT EventCategory,
145 [in, range(0, MAX_STRINGS)] USHORT NumStrings,
146 [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize,
147 [in] PRPC_UNICODE_STRING ComputerName,
148 [in, unique] PRPC_SID UserSID,
149 [in, size_is(NumStrings), unique] PRPC_UNICODE_STRING Strings[*],
150 [in, size_is(DataSize), unique] PBYTE Data,
152 [in, out, unique] PULONG RecordNumber,
153 [in, out, unique] PULONG TimeWritten);
159 [in] IELF_HANDLE LogHandle,
160 [in, unique] PRPC_STRING BackupFileName);
166 [in] IELF_HANDLE LogHandle,
167 [in, unique] PRPC_STRING BackupFileName);
173 [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
174 [in] PRPC_STRING ModuleName,
175 [in] PRPC_STRING RegModuleName,
176 [in] ULONG MajorVersion,
177 [in] ULONG MinorVersion,
178 [out] PIELF_HANDLE LogHandle);
183 ElfrRegisterEventSourceA(
184 [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
185 [in] PRPC_STRING ModuleName,
186 [in] PRPC_STRING RegModuleName,
187 [in] ULONG MajorVersion,
188 [in] ULONG MinorVersion,
189 [out] PIELF_HANDLE LogHandle);
195 [in, unique] EVENTLOG_HANDLE_A UNCServerName, /* FIXME */
196 [in] PRPC_STRING BackupFileName,
197 [in] ULONG MajorVersion,
198 [in] ULONG MinorVersion,
199 [out] PIELF_HANDLE LogHandle);
205 [in] IELF_HANDLE LogHandle,
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);
217 [in] IELF_HANDLE LogHandle,
219 [in] USHORT EventType,
220 [in] USHORT EventCategory,
222 [in, range(0, MAX_STRINGS)] USHORT NumStrings,
223 [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize,
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,
229 [in, out, unique] PULONG RecordNumber,
230 [in, out, unique] PULONG TimeWritten);
235 ElfrRegisterClusterSvc(
236 [in] handle_t BindingHandle);
241 ElfrDeregisterClusterSvc(
242 [in] handle_t BindingHandle);
247 ElfrWriteClusterEvents(
248 [in] handle_t BindingHandle);
253 ElfrGetLogInformation(
254 [in] IELF_HANDLE LogHandle,
255 [in] ULONG InfoLevel,
256 [out, size_is(cbBufSize)] PBYTE Buffer,
257 [in, range(0, 1024)] ULONG cbBufSize,
258 [out] PULONG pcbBytesNeeded);
264 [in] IELF_HANDLE LogHandle);
269 ElfrReportEventAndSourceW(
270 [in] IELF_HANDLE LogHandle,
272 [in] USHORT EventType,
273 [in] USHORT EventCategory,
275 [in] PRPC_UNICODE_STRING SourceName,
276 [in, range(0, MAX_STRINGS)] USHORT NumStrings,
277 [in, range(0, MAX_SINGLE_EVENT)] ULONG DataSize,
278 [in] PRPC_UNICODE_STRING ComputerName,
279 [in, unique] PRPC_SID UserSID,
280 [in, size_is(NumStrings), unique] PRPC_UNICODE_STRING Strings[*],
281 [in, size_is(DataSize), unique] PBYTE Data,
283 [in, out, unique] PULONG RecordNumber,
284 [in, out, unique] PULONG TimeWritten);
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const