1
/* server functions auto-generated by pidl */
2
#include "librpc/gen_ndr/ndr_eventlog6.h"
4
/* eventlog6 - dcerpc server boilerplate generated by pidl */
7
static NTSTATUS eventlog6__op_bind(struct dcesrv_call_state *dce_call, const struct dcesrv_interface *iface, uint32_t if_version)
9
#ifdef DCESRV_INTERFACE_EVENTLOG6_BIND
10
return DCESRV_INTERFACE_EVENTLOG6_BIND(dce_call,iface);
16
static void eventlog6__op_unbind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
18
#ifdef DCESRV_INTERFACE_EVENTLOG6_UNBIND
19
DCESRV_INTERFACE_EVENTLOG6_UNBIND(context, iface);
25
static NTSTATUS eventlog6__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
27
enum ndr_err_code ndr_err;
28
uint16_t opnum = dce_call->pkt.u.request.opnum;
30
dce_call->fault_code = 0;
32
if (opnum >= ndr_table_eventlog6.num_calls) {
33
dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
34
return NT_STATUS_NET_WRITE_FAULT;
37
*r = talloc_named(mem_ctx,
38
ndr_table_eventlog6.calls[opnum].struct_size,
40
ndr_table_eventlog6.calls[opnum].name);
41
NT_STATUS_HAVE_NO_MEMORY(*r);
43
/* unravel the NDR for the packet */
44
ndr_err = ndr_table_eventlog6.calls[opnum].ndr_pull(pull, NDR_IN, *r);
45
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
46
dcerpc_log_packet(dce_call->conn->packet_log_dir,
47
&ndr_table_eventlog6, opnum, NDR_IN,
48
&dce_call->pkt.u.request.stub_and_verifier);
49
dce_call->fault_code = DCERPC_FAULT_NDR;
50
return NT_STATUS_NET_WRITE_FAULT;
56
static NTSTATUS eventlog6__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
58
uint16_t opnum = dce_call->pkt.u.request.opnum;
62
struct eventlog6_EvtRpcRegisterRemoteSubscription *r2 = (struct eventlog6_EvtRpcRegisterRemoteSubscription *)r;
63
if (DEBUGLEVEL >= 10) {
64
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterRemoteSubscription, NDR_IN, r2);
66
r2->out.result = dcesrv_eventlog6_EvtRpcRegisterRemoteSubscription(dce_call, mem_ctx, r2);
67
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
68
DEBUG(5,("function eventlog6_EvtRpcRegisterRemoteSubscription will reply async\n"));
73
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *)r;
74
if (DEBUGLEVEL >= 10) {
75
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNextAsync, NDR_IN, r2);
77
r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionNextAsync(dce_call, mem_ctx, r2);
78
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
79
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNextAsync will reply async\n"));
84
struct eventlog6_EvtRpcRemoteSubscriptionNext *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNext *)r;
85
if (DEBUGLEVEL >= 10) {
86
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNext, NDR_IN, r2);
88
r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionNext(dce_call, mem_ctx, r2);
89
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
90
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNext will reply async\n"));
95
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *)r;
96
if (DEBUGLEVEL >= 10) {
97
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionWaitAsync, NDR_IN, r2);
99
r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionWaitAsync(dce_call, mem_ctx, r2);
100
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
101
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionWaitAsync will reply async\n"));
106
struct eventlog6_EvtRpcRegisterControllableOperation *r2 = (struct eventlog6_EvtRpcRegisterControllableOperation *)r;
107
if (DEBUGLEVEL >= 10) {
108
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterControllableOperation, NDR_IN, r2);
110
r2->out.result = dcesrv_eventlog6_EvtRpcRegisterControllableOperation(dce_call, mem_ctx, r2);
111
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
112
DEBUG(5,("function eventlog6_EvtRpcRegisterControllableOperation will reply async\n"));
117
struct eventlog6_EvtRpcRegisterLogQuery *r2 = (struct eventlog6_EvtRpcRegisterLogQuery *)r;
118
if (DEBUGLEVEL >= 10) {
119
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterLogQuery, NDR_IN, r2);
121
r2->out.result = dcesrv_eventlog6_EvtRpcRegisterLogQuery(dce_call, mem_ctx, r2);
122
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
123
DEBUG(5,("function eventlog6_EvtRpcRegisterLogQuery will reply async\n"));
128
struct eventlog6_EvtRpcClearLog *r2 = (struct eventlog6_EvtRpcClearLog *)r;
129
if (DEBUGLEVEL >= 10) {
130
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClearLog, NDR_IN, r2);
132
r2->out.result = dcesrv_eventlog6_EvtRpcClearLog(dce_call, mem_ctx, r2);
133
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
134
DEBUG(5,("function eventlog6_EvtRpcClearLog will reply async\n"));
139
struct eventlog6_EvtRpcExportLog *r2 = (struct eventlog6_EvtRpcExportLog *)r;
140
if (DEBUGLEVEL >= 10) {
141
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcExportLog, NDR_IN, r2);
143
r2->out.result = dcesrv_eventlog6_EvtRpcExportLog(dce_call, mem_ctx, r2);
144
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
145
DEBUG(5,("function eventlog6_EvtRpcExportLog will reply async\n"));
150
struct eventlog6_EvtRpcLocalizeExportLog *r2 = (struct eventlog6_EvtRpcLocalizeExportLog *)r;
151
if (DEBUGLEVEL >= 10) {
152
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcLocalizeExportLog, NDR_IN, r2);
154
r2->out.result = dcesrv_eventlog6_EvtRpcLocalizeExportLog(dce_call, mem_ctx, r2);
155
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
156
DEBUG(5,("function eventlog6_EvtRpcLocalizeExportLog will reply async\n"));
161
struct eventlog6_EvtRpcMessageRender *r2 = (struct eventlog6_EvtRpcMessageRender *)r;
162
if (DEBUGLEVEL >= 10) {
163
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRender, NDR_IN, r2);
165
r2->out.result = dcesrv_eventlog6_EvtRpcMessageRender(dce_call, mem_ctx, r2);
166
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
167
DEBUG(5,("function eventlog6_EvtRpcMessageRender will reply async\n"));
172
struct eventlog6_EvtRpcMessageRenderDefault *r2 = (struct eventlog6_EvtRpcMessageRenderDefault *)r;
173
if (DEBUGLEVEL >= 10) {
174
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRenderDefault, NDR_IN, r2);
176
r2->out.result = dcesrv_eventlog6_EvtRpcMessageRenderDefault(dce_call, mem_ctx, r2);
177
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
178
DEBUG(5,("function eventlog6_EvtRpcMessageRenderDefault will reply async\n"));
183
struct eventlog6_EvtRpcQueryNext *r2 = (struct eventlog6_EvtRpcQueryNext *)r;
184
if (DEBUGLEVEL >= 10) {
185
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQueryNext, NDR_IN, r2);
187
r2->out.result = dcesrv_eventlog6_EvtRpcQueryNext(dce_call, mem_ctx, r2);
188
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
189
DEBUG(5,("function eventlog6_EvtRpcQueryNext will reply async\n"));
194
struct eventlog6_EvtRpcQuerySeek *r2 = (struct eventlog6_EvtRpcQuerySeek *)r;
195
if (DEBUGLEVEL >= 10) {
196
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQuerySeek, NDR_IN, r2);
198
r2->out.result = dcesrv_eventlog6_EvtRpcQuerySeek(dce_call, mem_ctx, r2);
199
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
200
DEBUG(5,("function eventlog6_EvtRpcQuerySeek will reply async\n"));
205
struct eventlog6_EvtRpcClose *r2 = (struct eventlog6_EvtRpcClose *)r;
206
if (DEBUGLEVEL >= 10) {
207
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClose, NDR_IN, r2);
209
r2->out.result = dcesrv_eventlog6_EvtRpcClose(dce_call, mem_ctx, r2);
210
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
211
DEBUG(5,("function eventlog6_EvtRpcClose will reply async\n"));
216
struct eventlog6_EvtRpcCancel *r2 = (struct eventlog6_EvtRpcCancel *)r;
217
if (DEBUGLEVEL >= 10) {
218
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcCancel, NDR_IN, r2);
220
r2->out.result = dcesrv_eventlog6_EvtRpcCancel(dce_call, mem_ctx, r2);
221
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
222
DEBUG(5,("function eventlog6_EvtRpcCancel will reply async\n"));
227
struct eventlog6_EvtRpcAssertConfig *r2 = (struct eventlog6_EvtRpcAssertConfig *)r;
228
if (DEBUGLEVEL >= 10) {
229
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcAssertConfig, NDR_IN, r2);
231
r2->out.result = dcesrv_eventlog6_EvtRpcAssertConfig(dce_call, mem_ctx, r2);
232
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
233
DEBUG(5,("function eventlog6_EvtRpcAssertConfig will reply async\n"));
238
struct eventlog6_EvtRpcRetractConfig *r2 = (struct eventlog6_EvtRpcRetractConfig *)r;
239
if (DEBUGLEVEL >= 10) {
240
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRetractConfig, NDR_IN, r2);
242
r2->out.result = dcesrv_eventlog6_EvtRpcRetractConfig(dce_call, mem_ctx, r2);
243
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
244
DEBUG(5,("function eventlog6_EvtRpcRetractConfig will reply async\n"));
249
struct eventlog6_EvtRpcOpenLogHandle *r2 = (struct eventlog6_EvtRpcOpenLogHandle *)r;
250
if (DEBUGLEVEL >= 10) {
251
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcOpenLogHandle, NDR_IN, r2);
253
r2->out.result = dcesrv_eventlog6_EvtRpcOpenLogHandle(dce_call, mem_ctx, r2);
254
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
255
DEBUG(5,("function eventlog6_EvtRpcOpenLogHandle will reply async\n"));
260
struct eventlog6_EvtRpcGetLogFileInfo *r2 = (struct eventlog6_EvtRpcGetLogFileInfo *)r;
261
if (DEBUGLEVEL >= 10) {
262
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetLogFileInfo, NDR_IN, r2);
264
r2->out.result = dcesrv_eventlog6_EvtRpcGetLogFileInfo(dce_call, mem_ctx, r2);
265
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
266
DEBUG(5,("function eventlog6_EvtRpcGetLogFileInfo will reply async\n"));
271
struct eventlog6_EvtRpcGetChannelList *r2 = (struct eventlog6_EvtRpcGetChannelList *)r;
272
if (DEBUGLEVEL >= 10) {
273
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelList, NDR_IN, r2);
275
r2->out.result = dcesrv_eventlog6_EvtRpcGetChannelList(dce_call, mem_ctx, r2);
276
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
277
DEBUG(5,("function eventlog6_EvtRpcGetChannelList will reply async\n"));
282
struct eventlog6_EvtRpcGetChannelConfig *r2 = (struct eventlog6_EvtRpcGetChannelConfig *)r;
283
if (DEBUGLEVEL >= 10) {
284
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelConfig, NDR_IN, r2);
286
r2->out.result = dcesrv_eventlog6_EvtRpcGetChannelConfig(dce_call, mem_ctx, r2);
287
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
288
DEBUG(5,("function eventlog6_EvtRpcGetChannelConfig will reply async\n"));
293
struct eventlog6_EvtRpcPutChannelConfig *r2 = (struct eventlog6_EvtRpcPutChannelConfig *)r;
294
if (DEBUGLEVEL >= 10) {
295
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcPutChannelConfig, NDR_IN, r2);
297
r2->out.result = dcesrv_eventlog6_EvtRpcPutChannelConfig(dce_call, mem_ctx, r2);
298
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
299
DEBUG(5,("function eventlog6_EvtRpcPutChannelConfig will reply async\n"));
304
struct eventlog6_EvtRpcGetPublisherList *r2 = (struct eventlog6_EvtRpcGetPublisherList *)r;
305
if (DEBUGLEVEL >= 10) {
306
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherList, NDR_IN, r2);
308
r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherList(dce_call, mem_ctx, r2);
309
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
310
DEBUG(5,("function eventlog6_EvtRpcGetPublisherList will reply async\n"));
315
struct eventlog6_EvtRpcGetPublisherListForChannel *r2 = (struct eventlog6_EvtRpcGetPublisherListForChannel *)r;
316
if (DEBUGLEVEL >= 10) {
317
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherListForChannel, NDR_IN, r2);
319
r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherListForChannel(dce_call, mem_ctx, r2);
320
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
321
DEBUG(5,("function eventlog6_EvtRpcGetPublisherListForChannel will reply async\n"));
326
struct eventlog6_EvtRpcGetPublisherMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherMetadata *)r;
327
if (DEBUGLEVEL >= 10) {
328
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherMetadata, NDR_IN, r2);
330
r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherMetadata(dce_call, mem_ctx, r2);
331
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
332
DEBUG(5,("function eventlog6_EvtRpcGetPublisherMetadata will reply async\n"));
337
struct eventlog6_EvtRpcGetPublisherResourceMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherResourceMetadata *)r;
338
if (DEBUGLEVEL >= 10) {
339
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherResourceMetadata, NDR_IN, r2);
341
r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherResourceMetadata(dce_call, mem_ctx, r2);
342
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
343
DEBUG(5,("function eventlog6_EvtRpcGetPublisherResourceMetadata will reply async\n"));
348
struct eventlog6_EvtRpcGetEventMetadataEnum *r2 = (struct eventlog6_EvtRpcGetEventMetadataEnum *)r;
349
if (DEBUGLEVEL >= 10) {
350
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetEventMetadataEnum, NDR_IN, r2);
352
r2->out.result = dcesrv_eventlog6_EvtRpcGetEventMetadataEnum(dce_call, mem_ctx, r2);
353
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
354
DEBUG(5,("function eventlog6_EvtRpcGetEventMetadataEnum will reply async\n"));
359
struct eventlog6_EvtRpcGetNextEventMetadata *r2 = (struct eventlog6_EvtRpcGetNextEventMetadata *)r;
360
if (DEBUGLEVEL >= 10) {
361
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetNextEventMetadata, NDR_IN, r2);
363
r2->out.result = dcesrv_eventlog6_EvtRpcGetNextEventMetadata(dce_call, mem_ctx, r2);
364
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
365
DEBUG(5,("function eventlog6_EvtRpcGetNextEventMetadata will reply async\n"));
370
struct eventlog6_EvtRpcGetClassicLogDisplayName *r2 = (struct eventlog6_EvtRpcGetClassicLogDisplayName *)r;
371
if (DEBUGLEVEL >= 10) {
372
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetClassicLogDisplayName, NDR_IN, r2);
374
r2->out.result = dcesrv_eventlog6_EvtRpcGetClassicLogDisplayName(dce_call, mem_ctx, r2);
375
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
376
DEBUG(5,("function eventlog6_EvtRpcGetClassicLogDisplayName will reply async\n"));
382
dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
386
if (dce_call->fault_code != 0) {
387
dcerpc_log_packet(dce_call->conn->packet_log_dir,
388
&ndr_table_eventlog6, opnum, NDR_IN,
389
&dce_call->pkt.u.request.stub_and_verifier);
390
return NT_STATUS_NET_WRITE_FAULT;
396
static NTSTATUS eventlog6__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
398
uint16_t opnum = dce_call->pkt.u.request.opnum;
402
struct eventlog6_EvtRpcRegisterRemoteSubscription *r2 = (struct eventlog6_EvtRpcRegisterRemoteSubscription *)r;
403
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
404
DEBUG(5,("function eventlog6_EvtRpcRegisterRemoteSubscription replied async\n"));
406
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
407
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterRemoteSubscription, NDR_OUT | NDR_SET_VALUES, r2);
409
if (dce_call->fault_code != 0) {
410
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterRemoteSubscription\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
415
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *)r;
416
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
417
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNextAsync replied async\n"));
419
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
420
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNextAsync, NDR_OUT | NDR_SET_VALUES, r2);
422
if (dce_call->fault_code != 0) {
423
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionNextAsync\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
428
struct eventlog6_EvtRpcRemoteSubscriptionNext *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNext *)r;
429
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
430
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNext replied async\n"));
432
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
433
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNext, NDR_OUT | NDR_SET_VALUES, r2);
435
if (dce_call->fault_code != 0) {
436
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionNext\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
441
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *)r;
442
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
443
DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionWaitAsync replied async\n"));
445
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
446
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionWaitAsync, NDR_OUT | NDR_SET_VALUES, r2);
448
if (dce_call->fault_code != 0) {
449
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionWaitAsync\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
454
struct eventlog6_EvtRpcRegisterControllableOperation *r2 = (struct eventlog6_EvtRpcRegisterControllableOperation *)r;
455
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
456
DEBUG(5,("function eventlog6_EvtRpcRegisterControllableOperation replied async\n"));
458
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
459
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterControllableOperation, NDR_OUT | NDR_SET_VALUES, r2);
461
if (dce_call->fault_code != 0) {
462
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterControllableOperation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
467
struct eventlog6_EvtRpcRegisterLogQuery *r2 = (struct eventlog6_EvtRpcRegisterLogQuery *)r;
468
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
469
DEBUG(5,("function eventlog6_EvtRpcRegisterLogQuery replied async\n"));
471
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
472
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterLogQuery, NDR_OUT | NDR_SET_VALUES, r2);
474
if (dce_call->fault_code != 0) {
475
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterLogQuery\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
480
struct eventlog6_EvtRpcClearLog *r2 = (struct eventlog6_EvtRpcClearLog *)r;
481
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
482
DEBUG(5,("function eventlog6_EvtRpcClearLog replied async\n"));
484
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
485
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClearLog, NDR_OUT | NDR_SET_VALUES, r2);
487
if (dce_call->fault_code != 0) {
488
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcClearLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
493
struct eventlog6_EvtRpcExportLog *r2 = (struct eventlog6_EvtRpcExportLog *)r;
494
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
495
DEBUG(5,("function eventlog6_EvtRpcExportLog replied async\n"));
497
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
498
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcExportLog, NDR_OUT | NDR_SET_VALUES, r2);
500
if (dce_call->fault_code != 0) {
501
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcExportLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
506
struct eventlog6_EvtRpcLocalizeExportLog *r2 = (struct eventlog6_EvtRpcLocalizeExportLog *)r;
507
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
508
DEBUG(5,("function eventlog6_EvtRpcLocalizeExportLog replied async\n"));
510
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
511
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcLocalizeExportLog, NDR_OUT | NDR_SET_VALUES, r2);
513
if (dce_call->fault_code != 0) {
514
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcLocalizeExportLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
519
struct eventlog6_EvtRpcMessageRender *r2 = (struct eventlog6_EvtRpcMessageRender *)r;
520
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
521
DEBUG(5,("function eventlog6_EvtRpcMessageRender replied async\n"));
523
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
524
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRender, NDR_OUT | NDR_SET_VALUES, r2);
526
if (dce_call->fault_code != 0) {
527
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcMessageRender\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
532
struct eventlog6_EvtRpcMessageRenderDefault *r2 = (struct eventlog6_EvtRpcMessageRenderDefault *)r;
533
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
534
DEBUG(5,("function eventlog6_EvtRpcMessageRenderDefault replied async\n"));
536
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
537
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRenderDefault, NDR_OUT | NDR_SET_VALUES, r2);
539
if (dce_call->fault_code != 0) {
540
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcMessageRenderDefault\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
545
struct eventlog6_EvtRpcQueryNext *r2 = (struct eventlog6_EvtRpcQueryNext *)r;
546
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
547
DEBUG(5,("function eventlog6_EvtRpcQueryNext replied async\n"));
549
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
550
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQueryNext, NDR_OUT | NDR_SET_VALUES, r2);
552
if (dce_call->fault_code != 0) {
553
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcQueryNext\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
558
struct eventlog6_EvtRpcQuerySeek *r2 = (struct eventlog6_EvtRpcQuerySeek *)r;
559
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
560
DEBUG(5,("function eventlog6_EvtRpcQuerySeek replied async\n"));
562
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
563
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQuerySeek, NDR_OUT | NDR_SET_VALUES, r2);
565
if (dce_call->fault_code != 0) {
566
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcQuerySeek\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
571
struct eventlog6_EvtRpcClose *r2 = (struct eventlog6_EvtRpcClose *)r;
572
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
573
DEBUG(5,("function eventlog6_EvtRpcClose replied async\n"));
575
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
576
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClose, NDR_OUT | NDR_SET_VALUES, r2);
578
if (dce_call->fault_code != 0) {
579
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcClose\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
584
struct eventlog6_EvtRpcCancel *r2 = (struct eventlog6_EvtRpcCancel *)r;
585
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
586
DEBUG(5,("function eventlog6_EvtRpcCancel replied async\n"));
588
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
589
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcCancel, NDR_OUT | NDR_SET_VALUES, r2);
591
if (dce_call->fault_code != 0) {
592
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcCancel\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
597
struct eventlog6_EvtRpcAssertConfig *r2 = (struct eventlog6_EvtRpcAssertConfig *)r;
598
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
599
DEBUG(5,("function eventlog6_EvtRpcAssertConfig replied async\n"));
601
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
602
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcAssertConfig, NDR_OUT | NDR_SET_VALUES, r2);
604
if (dce_call->fault_code != 0) {
605
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcAssertConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
610
struct eventlog6_EvtRpcRetractConfig *r2 = (struct eventlog6_EvtRpcRetractConfig *)r;
611
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
612
DEBUG(5,("function eventlog6_EvtRpcRetractConfig replied async\n"));
614
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
615
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRetractConfig, NDR_OUT | NDR_SET_VALUES, r2);
617
if (dce_call->fault_code != 0) {
618
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRetractConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
623
struct eventlog6_EvtRpcOpenLogHandle *r2 = (struct eventlog6_EvtRpcOpenLogHandle *)r;
624
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
625
DEBUG(5,("function eventlog6_EvtRpcOpenLogHandle replied async\n"));
627
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
628
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcOpenLogHandle, NDR_OUT | NDR_SET_VALUES, r2);
630
if (dce_call->fault_code != 0) {
631
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcOpenLogHandle\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
636
struct eventlog6_EvtRpcGetLogFileInfo *r2 = (struct eventlog6_EvtRpcGetLogFileInfo *)r;
637
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
638
DEBUG(5,("function eventlog6_EvtRpcGetLogFileInfo replied async\n"));
640
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
641
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetLogFileInfo, NDR_OUT | NDR_SET_VALUES, r2);
643
if (dce_call->fault_code != 0) {
644
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetLogFileInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
649
struct eventlog6_EvtRpcGetChannelList *r2 = (struct eventlog6_EvtRpcGetChannelList *)r;
650
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
651
DEBUG(5,("function eventlog6_EvtRpcGetChannelList replied async\n"));
653
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
654
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelList, NDR_OUT | NDR_SET_VALUES, r2);
656
if (dce_call->fault_code != 0) {
657
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetChannelList\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
662
struct eventlog6_EvtRpcGetChannelConfig *r2 = (struct eventlog6_EvtRpcGetChannelConfig *)r;
663
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
664
DEBUG(5,("function eventlog6_EvtRpcGetChannelConfig replied async\n"));
666
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
667
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelConfig, NDR_OUT | NDR_SET_VALUES, r2);
669
if (dce_call->fault_code != 0) {
670
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetChannelConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
675
struct eventlog6_EvtRpcPutChannelConfig *r2 = (struct eventlog6_EvtRpcPutChannelConfig *)r;
676
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
677
DEBUG(5,("function eventlog6_EvtRpcPutChannelConfig replied async\n"));
679
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
680
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcPutChannelConfig, NDR_OUT | NDR_SET_VALUES, r2);
682
if (dce_call->fault_code != 0) {
683
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcPutChannelConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
688
struct eventlog6_EvtRpcGetPublisherList *r2 = (struct eventlog6_EvtRpcGetPublisherList *)r;
689
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
690
DEBUG(5,("function eventlog6_EvtRpcGetPublisherList replied async\n"));
692
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
693
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherList, NDR_OUT | NDR_SET_VALUES, r2);
695
if (dce_call->fault_code != 0) {
696
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherList\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
701
struct eventlog6_EvtRpcGetPublisherListForChannel *r2 = (struct eventlog6_EvtRpcGetPublisherListForChannel *)r;
702
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
703
DEBUG(5,("function eventlog6_EvtRpcGetPublisherListForChannel replied async\n"));
705
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
706
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherListForChannel, NDR_OUT | NDR_SET_VALUES, r2);
708
if (dce_call->fault_code != 0) {
709
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherListForChannel\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
714
struct eventlog6_EvtRpcGetPublisherMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherMetadata *)r;
715
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
716
DEBUG(5,("function eventlog6_EvtRpcGetPublisherMetadata replied async\n"));
718
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
719
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherMetadata, NDR_OUT | NDR_SET_VALUES, r2);
721
if (dce_call->fault_code != 0) {
722
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
727
struct eventlog6_EvtRpcGetPublisherResourceMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherResourceMetadata *)r;
728
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
729
DEBUG(5,("function eventlog6_EvtRpcGetPublisherResourceMetadata replied async\n"));
731
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
732
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherResourceMetadata, NDR_OUT | NDR_SET_VALUES, r2);
734
if (dce_call->fault_code != 0) {
735
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherResourceMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
740
struct eventlog6_EvtRpcGetEventMetadataEnum *r2 = (struct eventlog6_EvtRpcGetEventMetadataEnum *)r;
741
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
742
DEBUG(5,("function eventlog6_EvtRpcGetEventMetadataEnum replied async\n"));
744
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
745
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetEventMetadataEnum, NDR_OUT | NDR_SET_VALUES, r2);
747
if (dce_call->fault_code != 0) {
748
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetEventMetadataEnum\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
753
struct eventlog6_EvtRpcGetNextEventMetadata *r2 = (struct eventlog6_EvtRpcGetNextEventMetadata *)r;
754
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
755
DEBUG(5,("function eventlog6_EvtRpcGetNextEventMetadata replied async\n"));
757
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
758
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetNextEventMetadata, NDR_OUT | NDR_SET_VALUES, r2);
760
if (dce_call->fault_code != 0) {
761
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetNextEventMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
766
struct eventlog6_EvtRpcGetClassicLogDisplayName *r2 = (struct eventlog6_EvtRpcGetClassicLogDisplayName *)r;
767
if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
768
DEBUG(5,("function eventlog6_EvtRpcGetClassicLogDisplayName replied async\n"));
770
if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
771
NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetClassicLogDisplayName, NDR_OUT | NDR_SET_VALUES, r2);
773
if (dce_call->fault_code != 0) {
774
DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetClassicLogDisplayName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
780
dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
784
if (dce_call->fault_code != 0) {
785
dcerpc_log_packet(dce_call->conn->packet_log_dir,
786
&ndr_table_eventlog6, opnum, NDR_IN,
787
&dce_call->pkt.u.request.stub_and_verifier);
788
return NT_STATUS_NET_WRITE_FAULT;
794
static NTSTATUS eventlog6__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)
796
enum ndr_err_code ndr_err;
797
uint16_t opnum = dce_call->pkt.u.request.opnum;
799
ndr_err = ndr_table_eventlog6.calls[opnum].ndr_push(push, NDR_OUT, r);
800
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
801
dce_call->fault_code = DCERPC_FAULT_NDR;
802
return NT_STATUS_NET_WRITE_FAULT;
808
const struct dcesrv_interface dcesrv_eventlog6_interface = {
810
.syntax_id = {{0xf6beaff7,0x1e19,0x4fbb,{0x9f,0x8f},{0xb8,0x9e,0x20,0x18,0x33,0x7c}},1.0},
811
.bind = eventlog6__op_bind,
812
.unbind = eventlog6__op_unbind,
813
.ndr_pull = eventlog6__op_ndr_pull,
814
.dispatch = eventlog6__op_dispatch,
815
.reply = eventlog6__op_reply,
816
.ndr_push = eventlog6__op_ndr_push
820
static NTSTATUS eventlog6__op_init_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
824
for (i=0;i<ndr_table_eventlog6.endpoints->count;i++) {
826
const char *name = ndr_table_eventlog6.endpoints->names[i];
828
ret = dcesrv_interface_register(dce_ctx, name, &dcesrv_eventlog6_interface, NULL);
829
if (!NT_STATUS_IS_OK(ret)) {
830
DEBUG(1,("eventlog6_op_init_server: failed to register endpoint '%s'\n",name));
838
static bool eventlog6__op_interface_by_uuid(struct dcesrv_interface *iface, const struct GUID *uuid, uint32_t if_version)
840
if (dcesrv_eventlog6_interface.syntax_id.if_version == if_version &&
841
GUID_equal(&dcesrv_eventlog6_interface.syntax_id.uuid, uuid)) {
842
memcpy(iface,&dcesrv_eventlog6_interface, sizeof(*iface));
849
static bool eventlog6__op_interface_by_name(struct dcesrv_interface *iface, const char *name)
851
if (strcmp(dcesrv_eventlog6_interface.name, name)==0) {
852
memcpy(iface, &dcesrv_eventlog6_interface, sizeof(*iface));
859
NTSTATUS dcerpc_server_eventlog6_init(void)
862
struct dcesrv_endpoint_server ep_server;
864
/* fill in our name */
865
ep_server.name = "eventlog6";
867
/* fill in all the operations */
868
ep_server.init_server = eventlog6__op_init_server;
870
ep_server.interface_by_uuid = eventlog6__op_interface_by_uuid;
871
ep_server.interface_by_name = eventlog6__op_interface_by_name;
873
/* register ourselves with the DCERPC subsystem. */
874
ret = dcerpc_register_ep_server(&ep_server);
876
if (!NT_STATUS_IS_OK(ret)) {
877
DEBUG(0,("Failed to register 'eventlog6' endpoint server!\n"));