1
/* client functions auto-generated by pidl */
5
#include "lib/util/tevent_ntstatus.h"
6
#include "librpc/gen_ndr/ndr_eventlog6.h"
7
#include "librpc/gen_ndr/ndr_eventlog6_c.h"
9
/* eventlog6 - client functions generated by pidl */
11
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_state {
12
TALLOC_CTX *out_mem_ctx;
15
static void dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_done(struct tevent_req *subreq);
17
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_send(TALLOC_CTX *mem_ctx,
18
struct tevent_context *ev,
19
struct dcerpc_binding_handle *h,
20
struct eventlog6_EvtRpcRegisterRemoteSubscription *r)
22
struct tevent_req *req;
23
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_state *state;
24
struct tevent_req *subreq;
26
req = tevent_req_create(mem_ctx, &state,
27
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_state);
32
state->out_mem_ctx = talloc_new(state);
33
if (tevent_req_nomem(state->out_mem_ctx, req)) {
34
return tevent_req_post(req, ev);
37
subreq = dcerpc_binding_handle_call_send(state, ev, h,
38
NULL, &ndr_table_eventlog6,
39
NDR_EVENTLOG6_EVTRPCREGISTERREMOTESUBSCRIPTION, state->out_mem_ctx, r);
40
if (tevent_req_nomem(subreq, req)) {
41
return tevent_req_post(req, ev);
43
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_done, req);
48
static void dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_done(struct tevent_req *subreq)
50
struct tevent_req *req =
51
tevent_req_callback_data(subreq,
55
status = dcerpc_binding_handle_call_recv(subreq);
56
if (!NT_STATUS_IS_OK(status)) {
57
tevent_req_nterror(req, status);
64
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
66
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_state *state =
68
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_state);
71
if (tevent_req_is_nterror(req, &status)) {
72
tevent_req_received(req);
76
talloc_steal(mem_ctx, state->out_mem_ctx);
78
tevent_req_received(req);
82
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRegisterRemoteSubscription *r)
86
status = dcerpc_binding_handle_call(h,
87
NULL, &ndr_table_eventlog6,
88
NDR_EVENTLOG6_EVTRPCREGISTERREMOTESUBSCRIPTION, mem_ctx, r);
93
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state {
94
struct eventlog6_EvtRpcRegisterRemoteSubscription orig;
95
struct eventlog6_EvtRpcRegisterRemoteSubscription tmp;
96
TALLOC_CTX *out_mem_ctx;
99
static void dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_done(struct tevent_req *subreq);
101
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_send(TALLOC_CTX *mem_ctx,
102
struct tevent_context *ev,
103
struct dcerpc_binding_handle *h,
104
const char *_channelPath /* [in] [unique,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
105
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
106
const char *_bookmarkXml /* [in] [unique,range(0,MAX_RPC_BOOKMARK_LENGTH),charset(UTF16)] */,
107
uint32_t _flags /* [in] */,
108
struct policy_handle *_handle /* [out] [ref] */,
109
struct policy_handle *_control /* [out] [ref] */,
110
uint32_t *_queryChannelInfoSize /* [out] [ref] */,
111
struct eventlog6_EvtRpcQueryChannelInfo **_queryChannelInfo /* [out] [ref,range(0,MAX_RPC_QUERY_CHANNEL_SIZE),size_is(,*queryChannelInfoSize)] */,
112
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
114
struct tevent_req *req;
115
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state *state;
116
struct tevent_req *subreq;
118
req = tevent_req_create(mem_ctx, &state,
119
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state);
123
state->out_mem_ctx = NULL;
126
state->orig.in.channelPath = _channelPath;
127
state->orig.in.query = _query;
128
state->orig.in.bookmarkXml = _bookmarkXml;
129
state->orig.in.flags = _flags;
132
state->orig.out.handle = _handle;
133
state->orig.out.control = _control;
134
state->orig.out.queryChannelInfoSize = _queryChannelInfoSize;
135
state->orig.out.queryChannelInfo = _queryChannelInfo;
136
state->orig.out.error = _error;
139
ZERO_STRUCT(state->orig.out.result);
141
state->out_mem_ctx = talloc_named_const(state, 0,
142
"dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_out_memory");
143
if (tevent_req_nomem(state->out_mem_ctx, req)) {
144
return tevent_req_post(req, ev);
147
/* make a temporary copy, that we pass to the dispatch function */
148
state->tmp = state->orig;
150
subreq = dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_send(state, ev, h, &state->tmp);
151
if (tevent_req_nomem(subreq, req)) {
152
return tevent_req_post(req, ev);
154
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_done, req);
158
static void dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_done(struct tevent_req *subreq)
160
struct tevent_req *req = tevent_req_callback_data(
161
subreq, struct tevent_req);
162
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state *state = tevent_req_data(
163
req, struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state);
167
if (state->out_mem_ctx) {
168
mem_ctx = state->out_mem_ctx;
173
status = dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r_recv(subreq, mem_ctx);
175
if (!NT_STATUS_IS_OK(status)) {
176
tevent_req_nterror(req, status);
180
/* Copy out parameters */
181
*state->orig.out.handle = *state->tmp.out.handle;
182
*state->orig.out.control = *state->tmp.out.control;
183
*state->orig.out.queryChannelInfoSize = *state->tmp.out.queryChannelInfoSize;
184
*state->orig.out.queryChannelInfo = *state->tmp.out.queryChannelInfo;
185
*state->orig.out.error = *state->tmp.out.error;
188
state->orig.out.result = state->tmp.out.result;
190
/* Reset temporary structure */
191
ZERO_STRUCT(state->tmp);
193
tevent_req_done(req);
196
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_recv(struct tevent_req *req,
200
struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state *state = tevent_req_data(
201
req, struct dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_state);
204
if (tevent_req_is_nterror(req, &status)) {
205
tevent_req_received(req);
209
/* Steal possible out parameters to the callers context */
210
talloc_steal(mem_ctx, state->out_mem_ctx);
213
*result = state->orig.out.result;
215
tevent_req_received(req);
219
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription(struct dcerpc_binding_handle *h,
221
const char *_channelPath /* [in] [unique,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
222
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
223
const char *_bookmarkXml /* [in] [unique,range(0,MAX_RPC_BOOKMARK_LENGTH),charset(UTF16)] */,
224
uint32_t _flags /* [in] */,
225
struct policy_handle *_handle /* [out] [ref] */,
226
struct policy_handle *_control /* [out] [ref] */,
227
uint32_t *_queryChannelInfoSize /* [out] [ref] */,
228
struct eventlog6_EvtRpcQueryChannelInfo **_queryChannelInfo /* [out] [ref,range(0,MAX_RPC_QUERY_CHANNEL_SIZE),size_is(,*queryChannelInfoSize)] */,
229
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
232
struct eventlog6_EvtRpcRegisterRemoteSubscription r;
236
r.in.channelPath = _channelPath;
238
r.in.bookmarkXml = _bookmarkXml;
241
status = dcerpc_eventlog6_EvtRpcRegisterRemoteSubscription_r(h, mem_ctx, &r);
242
if (!NT_STATUS_IS_OK(status)) {
246
/* Return variables */
247
*_handle = *r.out.handle;
248
*_control = *r.out.control;
249
*_queryChannelInfoSize = *r.out.queryChannelInfoSize;
250
*_queryChannelInfo = *r.out.queryChannelInfo;
251
*_error = *r.out.error;
254
*result = r.out.result;
259
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_state {
260
TALLOC_CTX *out_mem_ctx;
263
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_done(struct tevent_req *subreq);
265
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_send(TALLOC_CTX *mem_ctx,
266
struct tevent_context *ev,
267
struct dcerpc_binding_handle *h,
268
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r)
270
struct tevent_req *req;
271
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_state *state;
272
struct tevent_req *subreq;
274
req = tevent_req_create(mem_ctx, &state,
275
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_state);
280
state->out_mem_ctx = talloc_new(state);
281
if (tevent_req_nomem(state->out_mem_ctx, req)) {
282
return tevent_req_post(req, ev);
285
subreq = dcerpc_binding_handle_call_send(state, ev, h,
286
NULL, &ndr_table_eventlog6,
287
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONNEXTASYNC, state->out_mem_ctx, r);
288
if (tevent_req_nomem(subreq, req)) {
289
return tevent_req_post(req, ev);
291
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_done, req);
296
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_done(struct tevent_req *subreq)
298
struct tevent_req *req =
299
tevent_req_callback_data(subreq,
303
status = dcerpc_binding_handle_call_recv(subreq);
304
if (!NT_STATUS_IS_OK(status)) {
305
tevent_req_nterror(req, status);
309
tevent_req_done(req);
312
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
314
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_state *state =
316
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_state);
319
if (tevent_req_is_nterror(req, &status)) {
320
tevent_req_received(req);
324
talloc_steal(mem_ctx, state->out_mem_ctx);
326
tevent_req_received(req);
330
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r)
334
status = dcerpc_binding_handle_call(h,
335
NULL, &ndr_table_eventlog6,
336
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONNEXTASYNC, mem_ctx, r);
341
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state {
342
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync orig;
343
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync tmp;
344
TALLOC_CTX *out_mem_ctx;
347
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_done(struct tevent_req *subreq);
349
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_send(TALLOC_CTX *mem_ctx,
350
struct tevent_context *ev,
351
struct dcerpc_binding_handle *h,
352
struct policy_handle *_handle /* [in] [ref] */,
353
uint32_t _numRequestedRecords /* [in] */,
354
uint32_t _flags /* [in] */,
355
uint32_t *_numActualRecords /* [out] [ref] */,
356
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
357
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
358
uint32_t *_resultBufferSize /* [out] [ref] */,
359
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */)
361
struct tevent_req *req;
362
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state *state;
363
struct tevent_req *subreq;
365
req = tevent_req_create(mem_ctx, &state,
366
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state);
370
state->out_mem_ctx = NULL;
373
state->orig.in.handle = _handle;
374
state->orig.in.numRequestedRecords = _numRequestedRecords;
375
state->orig.in.flags = _flags;
378
state->orig.out.numActualRecords = _numActualRecords;
379
state->orig.out.eventDataIndices = _eventDataIndices;
380
state->orig.out.eventDataSizes = _eventDataSizes;
381
state->orig.out.resultBufferSize = _resultBufferSize;
382
state->orig.out.resultBuffer = _resultBuffer;
385
ZERO_STRUCT(state->orig.out.result);
387
state->out_mem_ctx = talloc_named_const(state, 0,
388
"dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_out_memory");
389
if (tevent_req_nomem(state->out_mem_ctx, req)) {
390
return tevent_req_post(req, ev);
393
/* make a temporary copy, that we pass to the dispatch function */
394
state->tmp = state->orig;
396
subreq = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_send(state, ev, h, &state->tmp);
397
if (tevent_req_nomem(subreq, req)) {
398
return tevent_req_post(req, ev);
400
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_done, req);
404
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_done(struct tevent_req *subreq)
406
struct tevent_req *req = tevent_req_callback_data(
407
subreq, struct tevent_req);
408
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state *state = tevent_req_data(
409
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state);
413
if (state->out_mem_ctx) {
414
mem_ctx = state->out_mem_ctx;
419
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r_recv(subreq, mem_ctx);
421
if (!NT_STATUS_IS_OK(status)) {
422
tevent_req_nterror(req, status);
426
/* Copy out parameters */
427
*state->orig.out.numActualRecords = *state->tmp.out.numActualRecords;
428
*state->orig.out.eventDataIndices = *state->tmp.out.eventDataIndices;
429
*state->orig.out.eventDataSizes = *state->tmp.out.eventDataSizes;
430
*state->orig.out.resultBufferSize = *state->tmp.out.resultBufferSize;
431
*state->orig.out.resultBuffer = *state->tmp.out.resultBuffer;
434
state->orig.out.result = state->tmp.out.result;
436
/* Reset temporary structure */
437
ZERO_STRUCT(state->tmp);
439
tevent_req_done(req);
442
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_recv(struct tevent_req *req,
446
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state *state = tevent_req_data(
447
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_state);
450
if (tevent_req_is_nterror(req, &status)) {
451
tevent_req_received(req);
455
/* Steal possible out parameters to the callers context */
456
talloc_steal(mem_ctx, state->out_mem_ctx);
459
*result = state->orig.out.result;
461
tevent_req_received(req);
465
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync(struct dcerpc_binding_handle *h,
467
struct policy_handle *_handle /* [in] [ref] */,
468
uint32_t _numRequestedRecords /* [in] */,
469
uint32_t _flags /* [in] */,
470
uint32_t *_numActualRecords /* [out] [ref] */,
471
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
472
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
473
uint32_t *_resultBufferSize /* [out] [ref] */,
474
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */,
477
struct eventlog6_EvtRpcRemoteSubscriptionNextAsync r;
481
r.in.handle = _handle;
482
r.in.numRequestedRecords = _numRequestedRecords;
485
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNextAsync_r(h, mem_ctx, &r);
486
if (!NT_STATUS_IS_OK(status)) {
490
/* Return variables */
491
*_numActualRecords = *r.out.numActualRecords;
492
*_eventDataIndices = *r.out.eventDataIndices;
493
*_eventDataSizes = *r.out.eventDataSizes;
494
*_resultBufferSize = *r.out.resultBufferSize;
495
*_resultBuffer = *r.out.resultBuffer;
498
*result = r.out.result;
503
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_state {
504
TALLOC_CTX *out_mem_ctx;
507
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_done(struct tevent_req *subreq);
509
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_send(TALLOC_CTX *mem_ctx,
510
struct tevent_context *ev,
511
struct dcerpc_binding_handle *h,
512
struct eventlog6_EvtRpcRemoteSubscriptionNext *r)
514
struct tevent_req *req;
515
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_state *state;
516
struct tevent_req *subreq;
518
req = tevent_req_create(mem_ctx, &state,
519
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_state);
524
state->out_mem_ctx = talloc_new(state);
525
if (tevent_req_nomem(state->out_mem_ctx, req)) {
526
return tevent_req_post(req, ev);
529
subreq = dcerpc_binding_handle_call_send(state, ev, h,
530
NULL, &ndr_table_eventlog6,
531
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONNEXT, state->out_mem_ctx, r);
532
if (tevent_req_nomem(subreq, req)) {
533
return tevent_req_post(req, ev);
535
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_done, req);
540
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_done(struct tevent_req *subreq)
542
struct tevent_req *req =
543
tevent_req_callback_data(subreq,
547
status = dcerpc_binding_handle_call_recv(subreq);
548
if (!NT_STATUS_IS_OK(status)) {
549
tevent_req_nterror(req, status);
553
tevent_req_done(req);
556
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
558
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_state *state =
560
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_state);
563
if (tevent_req_is_nterror(req, &status)) {
564
tevent_req_received(req);
568
talloc_steal(mem_ctx, state->out_mem_ctx);
570
tevent_req_received(req);
574
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRemoteSubscriptionNext *r)
578
status = dcerpc_binding_handle_call(h,
579
NULL, &ndr_table_eventlog6,
580
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONNEXT, mem_ctx, r);
585
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state {
586
struct eventlog6_EvtRpcRemoteSubscriptionNext orig;
587
struct eventlog6_EvtRpcRemoteSubscriptionNext tmp;
588
TALLOC_CTX *out_mem_ctx;
591
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_done(struct tevent_req *subreq);
593
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_send(TALLOC_CTX *mem_ctx,
594
struct tevent_context *ev,
595
struct dcerpc_binding_handle *h,
596
struct policy_handle *_handle /* [in] [ref] */,
597
uint32_t _numRequestedRecords /* [in] */,
598
uint32_t _timeOut /* [in] */,
599
uint32_t _flags /* [in] */,
600
uint32_t *_numActualRecords /* [out] [ref] */,
601
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
602
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
603
uint32_t *_resultBufferSize /* [out] [ref] */,
604
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */)
606
struct tevent_req *req;
607
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state *state;
608
struct tevent_req *subreq;
610
req = tevent_req_create(mem_ctx, &state,
611
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state);
615
state->out_mem_ctx = NULL;
618
state->orig.in.handle = _handle;
619
state->orig.in.numRequestedRecords = _numRequestedRecords;
620
state->orig.in.timeOut = _timeOut;
621
state->orig.in.flags = _flags;
624
state->orig.out.numActualRecords = _numActualRecords;
625
state->orig.out.eventDataIndices = _eventDataIndices;
626
state->orig.out.eventDataSizes = _eventDataSizes;
627
state->orig.out.resultBufferSize = _resultBufferSize;
628
state->orig.out.resultBuffer = _resultBuffer;
631
ZERO_STRUCT(state->orig.out.result);
633
state->out_mem_ctx = talloc_named_const(state, 0,
634
"dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_out_memory");
635
if (tevent_req_nomem(state->out_mem_ctx, req)) {
636
return tevent_req_post(req, ev);
639
/* make a temporary copy, that we pass to the dispatch function */
640
state->tmp = state->orig;
642
subreq = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_send(state, ev, h, &state->tmp);
643
if (tevent_req_nomem(subreq, req)) {
644
return tevent_req_post(req, ev);
646
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_done, req);
650
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_done(struct tevent_req *subreq)
652
struct tevent_req *req = tevent_req_callback_data(
653
subreq, struct tevent_req);
654
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state *state = tevent_req_data(
655
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state);
659
if (state->out_mem_ctx) {
660
mem_ctx = state->out_mem_ctx;
665
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r_recv(subreq, mem_ctx);
667
if (!NT_STATUS_IS_OK(status)) {
668
tevent_req_nterror(req, status);
672
/* Copy out parameters */
673
*state->orig.out.numActualRecords = *state->tmp.out.numActualRecords;
674
*state->orig.out.eventDataIndices = *state->tmp.out.eventDataIndices;
675
*state->orig.out.eventDataSizes = *state->tmp.out.eventDataSizes;
676
*state->orig.out.resultBufferSize = *state->tmp.out.resultBufferSize;
677
*state->orig.out.resultBuffer = *state->tmp.out.resultBuffer;
680
state->orig.out.result = state->tmp.out.result;
682
/* Reset temporary structure */
683
ZERO_STRUCT(state->tmp);
685
tevent_req_done(req);
688
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_recv(struct tevent_req *req,
692
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state *state = tevent_req_data(
693
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_state);
696
if (tevent_req_is_nterror(req, &status)) {
697
tevent_req_received(req);
701
/* Steal possible out parameters to the callers context */
702
talloc_steal(mem_ctx, state->out_mem_ctx);
705
*result = state->orig.out.result;
707
tevent_req_received(req);
711
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext(struct dcerpc_binding_handle *h,
713
struct policy_handle *_handle /* [in] [ref] */,
714
uint32_t _numRequestedRecords /* [in] */,
715
uint32_t _timeOut /* [in] */,
716
uint32_t _flags /* [in] */,
717
uint32_t *_numActualRecords /* [out] [ref] */,
718
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
719
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
720
uint32_t *_resultBufferSize /* [out] [ref] */,
721
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */,
724
struct eventlog6_EvtRpcRemoteSubscriptionNext r;
728
r.in.handle = _handle;
729
r.in.numRequestedRecords = _numRequestedRecords;
730
r.in.timeOut = _timeOut;
733
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionNext_r(h, mem_ctx, &r);
734
if (!NT_STATUS_IS_OK(status)) {
738
/* Return variables */
739
*_numActualRecords = *r.out.numActualRecords;
740
*_eventDataIndices = *r.out.eventDataIndices;
741
*_eventDataSizes = *r.out.eventDataSizes;
742
*_resultBufferSize = *r.out.resultBufferSize;
743
*_resultBuffer = *r.out.resultBuffer;
746
*result = r.out.result;
751
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_state {
752
TALLOC_CTX *out_mem_ctx;
755
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_done(struct tevent_req *subreq);
757
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_send(TALLOC_CTX *mem_ctx,
758
struct tevent_context *ev,
759
struct dcerpc_binding_handle *h,
760
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r)
762
struct tevent_req *req;
763
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_state *state;
764
struct tevent_req *subreq;
766
req = tevent_req_create(mem_ctx, &state,
767
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_state);
772
state->out_mem_ctx = NULL;
774
subreq = dcerpc_binding_handle_call_send(state, ev, h,
775
NULL, &ndr_table_eventlog6,
776
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONWAITASYNC, state, r);
777
if (tevent_req_nomem(subreq, req)) {
778
return tevent_req_post(req, ev);
780
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_done, req);
785
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_done(struct tevent_req *subreq)
787
struct tevent_req *req =
788
tevent_req_callback_data(subreq,
792
status = dcerpc_binding_handle_call_recv(subreq);
793
if (!NT_STATUS_IS_OK(status)) {
794
tevent_req_nterror(req, status);
798
tevent_req_done(req);
801
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
803
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_state *state =
805
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_state);
808
if (tevent_req_is_nterror(req, &status)) {
809
tevent_req_received(req);
813
talloc_steal(mem_ctx, state->out_mem_ctx);
815
tevent_req_received(req);
819
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r)
823
status = dcerpc_binding_handle_call(h,
824
NULL, &ndr_table_eventlog6,
825
NDR_EVENTLOG6_EVTRPCREMOTESUBSCRIPTIONWAITASYNC, mem_ctx, r);
830
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state {
831
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync orig;
832
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync tmp;
833
TALLOC_CTX *out_mem_ctx;
836
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_done(struct tevent_req *subreq);
838
struct tevent_req *dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_send(TALLOC_CTX *mem_ctx,
839
struct tevent_context *ev,
840
struct dcerpc_binding_handle *h,
841
struct policy_handle *_handle /* [in] [ref] */)
843
struct tevent_req *req;
844
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state *state;
845
struct tevent_req *subreq;
847
req = tevent_req_create(mem_ctx, &state,
848
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state);
852
state->out_mem_ctx = NULL;
855
state->orig.in.handle = _handle;
860
ZERO_STRUCT(state->orig.out.result);
862
/* make a temporary copy, that we pass to the dispatch function */
863
state->tmp = state->orig;
865
subreq = dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_send(state, ev, h, &state->tmp);
866
if (tevent_req_nomem(subreq, req)) {
867
return tevent_req_post(req, ev);
869
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_done, req);
873
static void dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_done(struct tevent_req *subreq)
875
struct tevent_req *req = tevent_req_callback_data(
876
subreq, struct tevent_req);
877
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state *state = tevent_req_data(
878
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state);
882
if (state->out_mem_ctx) {
883
mem_ctx = state->out_mem_ctx;
888
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r_recv(subreq, mem_ctx);
890
if (!NT_STATUS_IS_OK(status)) {
891
tevent_req_nterror(req, status);
895
/* Copy out parameters */
898
state->orig.out.result = state->tmp.out.result;
900
/* Reset temporary structure */
901
ZERO_STRUCT(state->tmp);
903
tevent_req_done(req);
906
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_recv(struct tevent_req *req,
910
struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state *state = tevent_req_data(
911
req, struct dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_state);
914
if (tevent_req_is_nterror(req, &status)) {
915
tevent_req_received(req);
919
/* Steal possible out parameters to the callers context */
920
talloc_steal(mem_ctx, state->out_mem_ctx);
923
*result = state->orig.out.result;
925
tevent_req_received(req);
929
NTSTATUS dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync(struct dcerpc_binding_handle *h,
931
struct policy_handle *_handle /* [in] [ref] */,
934
struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync r;
938
r.in.handle = _handle;
940
status = dcerpc_eventlog6_EvtRpcRemoteSubscriptionWaitAsync_r(h, mem_ctx, &r);
941
if (!NT_STATUS_IS_OK(status)) {
945
/* Return variables */
948
*result = r.out.result;
953
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_state {
954
TALLOC_CTX *out_mem_ctx;
957
static void dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_done(struct tevent_req *subreq);
959
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_send(TALLOC_CTX *mem_ctx,
960
struct tevent_context *ev,
961
struct dcerpc_binding_handle *h,
962
struct eventlog6_EvtRpcRegisterControllableOperation *r)
964
struct tevent_req *req;
965
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_state *state;
966
struct tevent_req *subreq;
968
req = tevent_req_create(mem_ctx, &state,
969
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_state);
974
state->out_mem_ctx = talloc_new(state);
975
if (tevent_req_nomem(state->out_mem_ctx, req)) {
976
return tevent_req_post(req, ev);
979
subreq = dcerpc_binding_handle_call_send(state, ev, h,
980
NULL, &ndr_table_eventlog6,
981
NDR_EVENTLOG6_EVTRPCREGISTERCONTROLLABLEOPERATION, state->out_mem_ctx, r);
982
if (tevent_req_nomem(subreq, req)) {
983
return tevent_req_post(req, ev);
985
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_done, req);
990
static void dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_done(struct tevent_req *subreq)
992
struct tevent_req *req =
993
tevent_req_callback_data(subreq,
997
status = dcerpc_binding_handle_call_recv(subreq);
998
if (!NT_STATUS_IS_OK(status)) {
999
tevent_req_nterror(req, status);
1003
tevent_req_done(req);
1006
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1008
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_state *state =
1009
tevent_req_data(req,
1010
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_state);
1013
if (tevent_req_is_nterror(req, &status)) {
1014
tevent_req_received(req);
1018
talloc_steal(mem_ctx, state->out_mem_ctx);
1020
tevent_req_received(req);
1021
return NT_STATUS_OK;
1024
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRegisterControllableOperation *r)
1028
status = dcerpc_binding_handle_call(h,
1029
NULL, &ndr_table_eventlog6,
1030
NDR_EVENTLOG6_EVTRPCREGISTERCONTROLLABLEOPERATION, mem_ctx, r);
1035
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state {
1036
struct eventlog6_EvtRpcRegisterControllableOperation orig;
1037
struct eventlog6_EvtRpcRegisterControllableOperation tmp;
1038
TALLOC_CTX *out_mem_ctx;
1041
static void dcerpc_eventlog6_EvtRpcRegisterControllableOperation_done(struct tevent_req *subreq);
1043
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterControllableOperation_send(TALLOC_CTX *mem_ctx,
1044
struct tevent_context *ev,
1045
struct dcerpc_binding_handle *h,
1046
struct policy_handle *_handle /* [out] [ref] */)
1048
struct tevent_req *req;
1049
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state *state;
1050
struct tevent_req *subreq;
1052
req = tevent_req_create(mem_ctx, &state,
1053
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state);
1057
state->out_mem_ctx = NULL;
1061
/* Out parameters */
1062
state->orig.out.handle = _handle;
1065
ZERO_STRUCT(state->orig.out.result);
1067
state->out_mem_ctx = talloc_named_const(state, 0,
1068
"dcerpc_eventlog6_EvtRpcRegisterControllableOperation_out_memory");
1069
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1070
return tevent_req_post(req, ev);
1073
/* make a temporary copy, that we pass to the dispatch function */
1074
state->tmp = state->orig;
1076
subreq = dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_send(state, ev, h, &state->tmp);
1077
if (tevent_req_nomem(subreq, req)) {
1078
return tevent_req_post(req, ev);
1080
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterControllableOperation_done, req);
1084
static void dcerpc_eventlog6_EvtRpcRegisterControllableOperation_done(struct tevent_req *subreq)
1086
struct tevent_req *req = tevent_req_callback_data(
1087
subreq, struct tevent_req);
1088
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state *state = tevent_req_data(
1089
req, struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state);
1091
TALLOC_CTX *mem_ctx;
1093
if (state->out_mem_ctx) {
1094
mem_ctx = state->out_mem_ctx;
1099
status = dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r_recv(subreq, mem_ctx);
1100
TALLOC_FREE(subreq);
1101
if (!NT_STATUS_IS_OK(status)) {
1102
tevent_req_nterror(req, status);
1106
/* Copy out parameters */
1107
*state->orig.out.handle = *state->tmp.out.handle;
1110
state->orig.out.result = state->tmp.out.result;
1112
/* Reset temporary structure */
1113
ZERO_STRUCT(state->tmp);
1115
tevent_req_done(req);
1118
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterControllableOperation_recv(struct tevent_req *req,
1119
TALLOC_CTX *mem_ctx,
1122
struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state *state = tevent_req_data(
1123
req, struct dcerpc_eventlog6_EvtRpcRegisterControllableOperation_state);
1126
if (tevent_req_is_nterror(req, &status)) {
1127
tevent_req_received(req);
1131
/* Steal possible out parameters to the callers context */
1132
talloc_steal(mem_ctx, state->out_mem_ctx);
1135
*result = state->orig.out.result;
1137
tevent_req_received(req);
1138
return NT_STATUS_OK;
1141
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterControllableOperation(struct dcerpc_binding_handle *h,
1142
TALLOC_CTX *mem_ctx,
1143
struct policy_handle *_handle /* [out] [ref] */,
1146
struct eventlog6_EvtRpcRegisterControllableOperation r;
1151
status = dcerpc_eventlog6_EvtRpcRegisterControllableOperation_r(h, mem_ctx, &r);
1152
if (!NT_STATUS_IS_OK(status)) {
1156
/* Return variables */
1157
*_handle = *r.out.handle;
1160
*result = r.out.result;
1162
return NT_STATUS_OK;
1165
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_state {
1166
TALLOC_CTX *out_mem_ctx;
1169
static void dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_done(struct tevent_req *subreq);
1171
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_send(TALLOC_CTX *mem_ctx,
1172
struct tevent_context *ev,
1173
struct dcerpc_binding_handle *h,
1174
struct eventlog6_EvtRpcRegisterLogQuery *r)
1176
struct tevent_req *req;
1177
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_state *state;
1178
struct tevent_req *subreq;
1180
req = tevent_req_create(mem_ctx, &state,
1181
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_state);
1186
state->out_mem_ctx = talloc_new(state);
1187
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1188
return tevent_req_post(req, ev);
1191
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1192
NULL, &ndr_table_eventlog6,
1193
NDR_EVENTLOG6_EVTRPCREGISTERLOGQUERY, state->out_mem_ctx, r);
1194
if (tevent_req_nomem(subreq, req)) {
1195
return tevent_req_post(req, ev);
1197
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_done, req);
1202
static void dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_done(struct tevent_req *subreq)
1204
struct tevent_req *req =
1205
tevent_req_callback_data(subreq,
1209
status = dcerpc_binding_handle_call_recv(subreq);
1210
if (!NT_STATUS_IS_OK(status)) {
1211
tevent_req_nterror(req, status);
1215
tevent_req_done(req);
1218
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1220
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_state *state =
1221
tevent_req_data(req,
1222
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_state);
1225
if (tevent_req_is_nterror(req, &status)) {
1226
tevent_req_received(req);
1230
talloc_steal(mem_ctx, state->out_mem_ctx);
1232
tevent_req_received(req);
1233
return NT_STATUS_OK;
1236
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterLogQuery_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRegisterLogQuery *r)
1240
status = dcerpc_binding_handle_call(h,
1241
NULL, &ndr_table_eventlog6,
1242
NDR_EVENTLOG6_EVTRPCREGISTERLOGQUERY, mem_ctx, r);
1247
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state {
1248
struct eventlog6_EvtRpcRegisterLogQuery orig;
1249
struct eventlog6_EvtRpcRegisterLogQuery tmp;
1250
TALLOC_CTX *out_mem_ctx;
1253
static void dcerpc_eventlog6_EvtRpcRegisterLogQuery_done(struct tevent_req *subreq);
1255
struct tevent_req *dcerpc_eventlog6_EvtRpcRegisterLogQuery_send(TALLOC_CTX *mem_ctx,
1256
struct tevent_context *ev,
1257
struct dcerpc_binding_handle *h,
1258
const char *_path /* [in] [unique,range(0,MAX_RPC_CHANNEL_PATH_LENGTH),charset(UTF16)] */,
1259
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
1260
uint32_t _flags /* [in] */,
1261
struct policy_handle *_handle /* [out] [ref] */,
1262
struct policy_handle *_opControl /* [out] [ref] */,
1263
uint32_t *_queryChannelInfoSize /* [out] [ref] */,
1264
struct eventlog6_EvtRpcQueryChannelInfo **_queryChannelInfo /* [out] [ref,range(0,MAX_RPC_QUERY_CHANNEL_SIZE),size_is(,*queryChannelInfoSize)] */,
1265
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
1267
struct tevent_req *req;
1268
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state *state;
1269
struct tevent_req *subreq;
1271
req = tevent_req_create(mem_ctx, &state,
1272
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state);
1276
state->out_mem_ctx = NULL;
1279
state->orig.in.path = _path;
1280
state->orig.in.query = _query;
1281
state->orig.in.flags = _flags;
1283
/* Out parameters */
1284
state->orig.out.handle = _handle;
1285
state->orig.out.opControl = _opControl;
1286
state->orig.out.queryChannelInfoSize = _queryChannelInfoSize;
1287
state->orig.out.queryChannelInfo = _queryChannelInfo;
1288
state->orig.out.error = _error;
1291
ZERO_STRUCT(state->orig.out.result);
1293
state->out_mem_ctx = talloc_named_const(state, 0,
1294
"dcerpc_eventlog6_EvtRpcRegisterLogQuery_out_memory");
1295
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1296
return tevent_req_post(req, ev);
1299
/* make a temporary copy, that we pass to the dispatch function */
1300
state->tmp = state->orig;
1302
subreq = dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_send(state, ev, h, &state->tmp);
1303
if (tevent_req_nomem(subreq, req)) {
1304
return tevent_req_post(req, ev);
1306
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRegisterLogQuery_done, req);
1310
static void dcerpc_eventlog6_EvtRpcRegisterLogQuery_done(struct tevent_req *subreq)
1312
struct tevent_req *req = tevent_req_callback_data(
1313
subreq, struct tevent_req);
1314
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state *state = tevent_req_data(
1315
req, struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state);
1317
TALLOC_CTX *mem_ctx;
1319
if (state->out_mem_ctx) {
1320
mem_ctx = state->out_mem_ctx;
1325
status = dcerpc_eventlog6_EvtRpcRegisterLogQuery_r_recv(subreq, mem_ctx);
1326
TALLOC_FREE(subreq);
1327
if (!NT_STATUS_IS_OK(status)) {
1328
tevent_req_nterror(req, status);
1332
/* Copy out parameters */
1333
*state->orig.out.handle = *state->tmp.out.handle;
1334
*state->orig.out.opControl = *state->tmp.out.opControl;
1335
*state->orig.out.queryChannelInfoSize = *state->tmp.out.queryChannelInfoSize;
1336
*state->orig.out.queryChannelInfo = *state->tmp.out.queryChannelInfo;
1337
*state->orig.out.error = *state->tmp.out.error;
1340
state->orig.out.result = state->tmp.out.result;
1342
/* Reset temporary structure */
1343
ZERO_STRUCT(state->tmp);
1345
tevent_req_done(req);
1348
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterLogQuery_recv(struct tevent_req *req,
1349
TALLOC_CTX *mem_ctx,
1352
struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state *state = tevent_req_data(
1353
req, struct dcerpc_eventlog6_EvtRpcRegisterLogQuery_state);
1356
if (tevent_req_is_nterror(req, &status)) {
1357
tevent_req_received(req);
1361
/* Steal possible out parameters to the callers context */
1362
talloc_steal(mem_ctx, state->out_mem_ctx);
1365
*result = state->orig.out.result;
1367
tevent_req_received(req);
1368
return NT_STATUS_OK;
1371
NTSTATUS dcerpc_eventlog6_EvtRpcRegisterLogQuery(struct dcerpc_binding_handle *h,
1372
TALLOC_CTX *mem_ctx,
1373
const char *_path /* [in] [unique,range(0,MAX_RPC_CHANNEL_PATH_LENGTH),charset(UTF16)] */,
1374
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
1375
uint32_t _flags /* [in] */,
1376
struct policy_handle *_handle /* [out] [ref] */,
1377
struct policy_handle *_opControl /* [out] [ref] */,
1378
uint32_t *_queryChannelInfoSize /* [out] [ref] */,
1379
struct eventlog6_EvtRpcQueryChannelInfo **_queryChannelInfo /* [out] [ref,range(0,MAX_RPC_QUERY_CHANNEL_SIZE),size_is(,*queryChannelInfoSize)] */,
1380
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
1383
struct eventlog6_EvtRpcRegisterLogQuery r;
1388
r.in.query = _query;
1389
r.in.flags = _flags;
1391
status = dcerpc_eventlog6_EvtRpcRegisterLogQuery_r(h, mem_ctx, &r);
1392
if (!NT_STATUS_IS_OK(status)) {
1396
/* Return variables */
1397
*_handle = *r.out.handle;
1398
*_opControl = *r.out.opControl;
1399
*_queryChannelInfoSize = *r.out.queryChannelInfoSize;
1400
*_queryChannelInfo = *r.out.queryChannelInfo;
1401
*_error = *r.out.error;
1404
*result = r.out.result;
1406
return NT_STATUS_OK;
1409
struct dcerpc_eventlog6_EvtRpcClearLog_r_state {
1410
TALLOC_CTX *out_mem_ctx;
1413
static void dcerpc_eventlog6_EvtRpcClearLog_r_done(struct tevent_req *subreq);
1415
struct tevent_req *dcerpc_eventlog6_EvtRpcClearLog_r_send(TALLOC_CTX *mem_ctx,
1416
struct tevent_context *ev,
1417
struct dcerpc_binding_handle *h,
1418
struct eventlog6_EvtRpcClearLog *r)
1420
struct tevent_req *req;
1421
struct dcerpc_eventlog6_EvtRpcClearLog_r_state *state;
1422
struct tevent_req *subreq;
1424
req = tevent_req_create(mem_ctx, &state,
1425
struct dcerpc_eventlog6_EvtRpcClearLog_r_state);
1430
state->out_mem_ctx = talloc_new(state);
1431
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1432
return tevent_req_post(req, ev);
1435
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1436
NULL, &ndr_table_eventlog6,
1437
NDR_EVENTLOG6_EVTRPCCLEARLOG, state->out_mem_ctx, r);
1438
if (tevent_req_nomem(subreq, req)) {
1439
return tevent_req_post(req, ev);
1441
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcClearLog_r_done, req);
1446
static void dcerpc_eventlog6_EvtRpcClearLog_r_done(struct tevent_req *subreq)
1448
struct tevent_req *req =
1449
tevent_req_callback_data(subreq,
1453
status = dcerpc_binding_handle_call_recv(subreq);
1454
if (!NT_STATUS_IS_OK(status)) {
1455
tevent_req_nterror(req, status);
1459
tevent_req_done(req);
1462
NTSTATUS dcerpc_eventlog6_EvtRpcClearLog_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1464
struct dcerpc_eventlog6_EvtRpcClearLog_r_state *state =
1465
tevent_req_data(req,
1466
struct dcerpc_eventlog6_EvtRpcClearLog_r_state);
1469
if (tevent_req_is_nterror(req, &status)) {
1470
tevent_req_received(req);
1474
talloc_steal(mem_ctx, state->out_mem_ctx);
1476
tevent_req_received(req);
1477
return NT_STATUS_OK;
1480
NTSTATUS dcerpc_eventlog6_EvtRpcClearLog_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcClearLog *r)
1484
status = dcerpc_binding_handle_call(h,
1485
NULL, &ndr_table_eventlog6,
1486
NDR_EVENTLOG6_EVTRPCCLEARLOG, mem_ctx, r);
1491
struct dcerpc_eventlog6_EvtRpcClearLog_state {
1492
struct eventlog6_EvtRpcClearLog orig;
1493
struct eventlog6_EvtRpcClearLog tmp;
1494
TALLOC_CTX *out_mem_ctx;
1497
static void dcerpc_eventlog6_EvtRpcClearLog_done(struct tevent_req *subreq);
1499
struct tevent_req *dcerpc_eventlog6_EvtRpcClearLog_send(TALLOC_CTX *mem_ctx,
1500
struct tevent_context *ev,
1501
struct dcerpc_binding_handle *h,
1502
struct policy_handle *_control /* [in] [ref] */,
1503
const char *_channelPath /* [in] [ref,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
1504
const char *_backupPath /* [in] [unique,range(0,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
1505
uint32_t _flags /* [in] */,
1506
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
1508
struct tevent_req *req;
1509
struct dcerpc_eventlog6_EvtRpcClearLog_state *state;
1510
struct tevent_req *subreq;
1512
req = tevent_req_create(mem_ctx, &state,
1513
struct dcerpc_eventlog6_EvtRpcClearLog_state);
1517
state->out_mem_ctx = NULL;
1520
state->orig.in.control = _control;
1521
state->orig.in.channelPath = _channelPath;
1522
state->orig.in.backupPath = _backupPath;
1523
state->orig.in.flags = _flags;
1525
/* Out parameters */
1526
state->orig.out.error = _error;
1529
ZERO_STRUCT(state->orig.out.result);
1531
state->out_mem_ctx = talloc_named_const(state, 0,
1532
"dcerpc_eventlog6_EvtRpcClearLog_out_memory");
1533
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1534
return tevent_req_post(req, ev);
1537
/* make a temporary copy, that we pass to the dispatch function */
1538
state->tmp = state->orig;
1540
subreq = dcerpc_eventlog6_EvtRpcClearLog_r_send(state, ev, h, &state->tmp);
1541
if (tevent_req_nomem(subreq, req)) {
1542
return tevent_req_post(req, ev);
1544
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcClearLog_done, req);
1548
static void dcerpc_eventlog6_EvtRpcClearLog_done(struct tevent_req *subreq)
1550
struct tevent_req *req = tevent_req_callback_data(
1551
subreq, struct tevent_req);
1552
struct dcerpc_eventlog6_EvtRpcClearLog_state *state = tevent_req_data(
1553
req, struct dcerpc_eventlog6_EvtRpcClearLog_state);
1555
TALLOC_CTX *mem_ctx;
1557
if (state->out_mem_ctx) {
1558
mem_ctx = state->out_mem_ctx;
1563
status = dcerpc_eventlog6_EvtRpcClearLog_r_recv(subreq, mem_ctx);
1564
TALLOC_FREE(subreq);
1565
if (!NT_STATUS_IS_OK(status)) {
1566
tevent_req_nterror(req, status);
1570
/* Copy out parameters */
1571
*state->orig.out.error = *state->tmp.out.error;
1574
state->orig.out.result = state->tmp.out.result;
1576
/* Reset temporary structure */
1577
ZERO_STRUCT(state->tmp);
1579
tevent_req_done(req);
1582
NTSTATUS dcerpc_eventlog6_EvtRpcClearLog_recv(struct tevent_req *req,
1583
TALLOC_CTX *mem_ctx,
1586
struct dcerpc_eventlog6_EvtRpcClearLog_state *state = tevent_req_data(
1587
req, struct dcerpc_eventlog6_EvtRpcClearLog_state);
1590
if (tevent_req_is_nterror(req, &status)) {
1591
tevent_req_received(req);
1595
/* Steal possible out parameters to the callers context */
1596
talloc_steal(mem_ctx, state->out_mem_ctx);
1599
*result = state->orig.out.result;
1601
tevent_req_received(req);
1602
return NT_STATUS_OK;
1605
NTSTATUS dcerpc_eventlog6_EvtRpcClearLog(struct dcerpc_binding_handle *h,
1606
TALLOC_CTX *mem_ctx,
1607
struct policy_handle *_control /* [in] [ref] */,
1608
const char *_channelPath /* [in] [ref,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
1609
const char *_backupPath /* [in] [unique,range(0,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
1610
uint32_t _flags /* [in] */,
1611
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
1614
struct eventlog6_EvtRpcClearLog r;
1618
r.in.control = _control;
1619
r.in.channelPath = _channelPath;
1620
r.in.backupPath = _backupPath;
1621
r.in.flags = _flags;
1623
status = dcerpc_eventlog6_EvtRpcClearLog_r(h, mem_ctx, &r);
1624
if (!NT_STATUS_IS_OK(status)) {
1628
/* Return variables */
1629
*_error = *r.out.error;
1632
*result = r.out.result;
1634
return NT_STATUS_OK;
1637
struct dcerpc_eventlog6_EvtRpcExportLog_r_state {
1638
TALLOC_CTX *out_mem_ctx;
1641
static void dcerpc_eventlog6_EvtRpcExportLog_r_done(struct tevent_req *subreq);
1643
struct tevent_req *dcerpc_eventlog6_EvtRpcExportLog_r_send(TALLOC_CTX *mem_ctx,
1644
struct tevent_context *ev,
1645
struct dcerpc_binding_handle *h,
1646
struct eventlog6_EvtRpcExportLog *r)
1648
struct tevent_req *req;
1649
struct dcerpc_eventlog6_EvtRpcExportLog_r_state *state;
1650
struct tevent_req *subreq;
1652
req = tevent_req_create(mem_ctx, &state,
1653
struct dcerpc_eventlog6_EvtRpcExportLog_r_state);
1658
state->out_mem_ctx = talloc_new(state);
1659
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1660
return tevent_req_post(req, ev);
1663
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1664
NULL, &ndr_table_eventlog6,
1665
NDR_EVENTLOG6_EVTRPCEXPORTLOG, state->out_mem_ctx, r);
1666
if (tevent_req_nomem(subreq, req)) {
1667
return tevent_req_post(req, ev);
1669
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcExportLog_r_done, req);
1674
static void dcerpc_eventlog6_EvtRpcExportLog_r_done(struct tevent_req *subreq)
1676
struct tevent_req *req =
1677
tevent_req_callback_data(subreq,
1681
status = dcerpc_binding_handle_call_recv(subreq);
1682
if (!NT_STATUS_IS_OK(status)) {
1683
tevent_req_nterror(req, status);
1687
tevent_req_done(req);
1690
NTSTATUS dcerpc_eventlog6_EvtRpcExportLog_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1692
struct dcerpc_eventlog6_EvtRpcExportLog_r_state *state =
1693
tevent_req_data(req,
1694
struct dcerpc_eventlog6_EvtRpcExportLog_r_state);
1697
if (tevent_req_is_nterror(req, &status)) {
1698
tevent_req_received(req);
1702
talloc_steal(mem_ctx, state->out_mem_ctx);
1704
tevent_req_received(req);
1705
return NT_STATUS_OK;
1708
NTSTATUS dcerpc_eventlog6_EvtRpcExportLog_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcExportLog *r)
1712
status = dcerpc_binding_handle_call(h,
1713
NULL, &ndr_table_eventlog6,
1714
NDR_EVENTLOG6_EVTRPCEXPORTLOG, mem_ctx, r);
1719
struct dcerpc_eventlog6_EvtRpcExportLog_state {
1720
struct eventlog6_EvtRpcExportLog orig;
1721
struct eventlog6_EvtRpcExportLog tmp;
1722
TALLOC_CTX *out_mem_ctx;
1725
static void dcerpc_eventlog6_EvtRpcExportLog_done(struct tevent_req *subreq);
1727
struct tevent_req *dcerpc_eventlog6_EvtRpcExportLog_send(TALLOC_CTX *mem_ctx,
1728
struct tevent_context *ev,
1729
struct dcerpc_binding_handle *h,
1730
struct policy_handle *_control /* [in] [ref] */,
1731
const char *_channelPath /* [in] [unique,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
1732
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
1733
const char *_backupPath /* [in] [ref,range(1,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
1734
uint32_t _flags /* [in] */,
1735
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
1737
struct tevent_req *req;
1738
struct dcerpc_eventlog6_EvtRpcExportLog_state *state;
1739
struct tevent_req *subreq;
1741
req = tevent_req_create(mem_ctx, &state,
1742
struct dcerpc_eventlog6_EvtRpcExportLog_state);
1746
state->out_mem_ctx = NULL;
1749
state->orig.in.control = _control;
1750
state->orig.in.channelPath = _channelPath;
1751
state->orig.in.query = _query;
1752
state->orig.in.backupPath = _backupPath;
1753
state->orig.in.flags = _flags;
1755
/* Out parameters */
1756
state->orig.out.error = _error;
1759
ZERO_STRUCT(state->orig.out.result);
1761
state->out_mem_ctx = talloc_named_const(state, 0,
1762
"dcerpc_eventlog6_EvtRpcExportLog_out_memory");
1763
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1764
return tevent_req_post(req, ev);
1767
/* make a temporary copy, that we pass to the dispatch function */
1768
state->tmp = state->orig;
1770
subreq = dcerpc_eventlog6_EvtRpcExportLog_r_send(state, ev, h, &state->tmp);
1771
if (tevent_req_nomem(subreq, req)) {
1772
return tevent_req_post(req, ev);
1774
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcExportLog_done, req);
1778
static void dcerpc_eventlog6_EvtRpcExportLog_done(struct tevent_req *subreq)
1780
struct tevent_req *req = tevent_req_callback_data(
1781
subreq, struct tevent_req);
1782
struct dcerpc_eventlog6_EvtRpcExportLog_state *state = tevent_req_data(
1783
req, struct dcerpc_eventlog6_EvtRpcExportLog_state);
1785
TALLOC_CTX *mem_ctx;
1787
if (state->out_mem_ctx) {
1788
mem_ctx = state->out_mem_ctx;
1793
status = dcerpc_eventlog6_EvtRpcExportLog_r_recv(subreq, mem_ctx);
1794
TALLOC_FREE(subreq);
1795
if (!NT_STATUS_IS_OK(status)) {
1796
tevent_req_nterror(req, status);
1800
/* Copy out parameters */
1801
*state->orig.out.error = *state->tmp.out.error;
1804
state->orig.out.result = state->tmp.out.result;
1806
/* Reset temporary structure */
1807
ZERO_STRUCT(state->tmp);
1809
tevent_req_done(req);
1812
NTSTATUS dcerpc_eventlog6_EvtRpcExportLog_recv(struct tevent_req *req,
1813
TALLOC_CTX *mem_ctx,
1816
struct dcerpc_eventlog6_EvtRpcExportLog_state *state = tevent_req_data(
1817
req, struct dcerpc_eventlog6_EvtRpcExportLog_state);
1820
if (tevent_req_is_nterror(req, &status)) {
1821
tevent_req_received(req);
1825
/* Steal possible out parameters to the callers context */
1826
talloc_steal(mem_ctx, state->out_mem_ctx);
1829
*result = state->orig.out.result;
1831
tevent_req_received(req);
1832
return NT_STATUS_OK;
1835
NTSTATUS dcerpc_eventlog6_EvtRpcExportLog(struct dcerpc_binding_handle *h,
1836
TALLOC_CTX *mem_ctx,
1837
struct policy_handle *_control /* [in] [ref] */,
1838
const char *_channelPath /* [in] [unique,range(0,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
1839
const char *_query /* [in] [ref,range(1,MAX_RPC_QUERY_LENGTH),charset(UTF16)] */,
1840
const char *_backupPath /* [in] [ref,range(1,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
1841
uint32_t _flags /* [in] */,
1842
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
1845
struct eventlog6_EvtRpcExportLog r;
1849
r.in.control = _control;
1850
r.in.channelPath = _channelPath;
1851
r.in.query = _query;
1852
r.in.backupPath = _backupPath;
1853
r.in.flags = _flags;
1855
status = dcerpc_eventlog6_EvtRpcExportLog_r(h, mem_ctx, &r);
1856
if (!NT_STATUS_IS_OK(status)) {
1860
/* Return variables */
1861
*_error = *r.out.error;
1864
*result = r.out.result;
1866
return NT_STATUS_OK;
1869
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_state {
1870
TALLOC_CTX *out_mem_ctx;
1873
static void dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_done(struct tevent_req *subreq);
1875
struct tevent_req *dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_send(TALLOC_CTX *mem_ctx,
1876
struct tevent_context *ev,
1877
struct dcerpc_binding_handle *h,
1878
struct eventlog6_EvtRpcLocalizeExportLog *r)
1880
struct tevent_req *req;
1881
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_state *state;
1882
struct tevent_req *subreq;
1884
req = tevent_req_create(mem_ctx, &state,
1885
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_state);
1890
state->out_mem_ctx = talloc_new(state);
1891
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1892
return tevent_req_post(req, ev);
1895
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1896
NULL, &ndr_table_eventlog6,
1897
NDR_EVENTLOG6_EVTRPCLOCALIZEEXPORTLOG, state->out_mem_ctx, r);
1898
if (tevent_req_nomem(subreq, req)) {
1899
return tevent_req_post(req, ev);
1901
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_done, req);
1906
static void dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_done(struct tevent_req *subreq)
1908
struct tevent_req *req =
1909
tevent_req_callback_data(subreq,
1913
status = dcerpc_binding_handle_call_recv(subreq);
1914
if (!NT_STATUS_IS_OK(status)) {
1915
tevent_req_nterror(req, status);
1919
tevent_req_done(req);
1922
NTSTATUS dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1924
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_state *state =
1925
tevent_req_data(req,
1926
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_state);
1929
if (tevent_req_is_nterror(req, &status)) {
1930
tevent_req_received(req);
1934
talloc_steal(mem_ctx, state->out_mem_ctx);
1936
tevent_req_received(req);
1937
return NT_STATUS_OK;
1940
NTSTATUS dcerpc_eventlog6_EvtRpcLocalizeExportLog_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcLocalizeExportLog *r)
1944
status = dcerpc_binding_handle_call(h,
1945
NULL, &ndr_table_eventlog6,
1946
NDR_EVENTLOG6_EVTRPCLOCALIZEEXPORTLOG, mem_ctx, r);
1951
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state {
1952
struct eventlog6_EvtRpcLocalizeExportLog orig;
1953
struct eventlog6_EvtRpcLocalizeExportLog tmp;
1954
TALLOC_CTX *out_mem_ctx;
1957
static void dcerpc_eventlog6_EvtRpcLocalizeExportLog_done(struct tevent_req *subreq);
1959
struct tevent_req *dcerpc_eventlog6_EvtRpcLocalizeExportLog_send(TALLOC_CTX *mem_ctx,
1960
struct tevent_context *ev,
1961
struct dcerpc_binding_handle *h,
1962
struct policy_handle *_control /* [in] [ref] */,
1963
const char *_logFilePath /* [in] [ref,range(1,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
1964
uint32_t _locale /* [in] */,
1965
uint32_t _flags /* [in] */,
1966
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
1968
struct tevent_req *req;
1969
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state *state;
1970
struct tevent_req *subreq;
1972
req = tevent_req_create(mem_ctx, &state,
1973
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state);
1977
state->out_mem_ctx = NULL;
1980
state->orig.in.control = _control;
1981
state->orig.in.logFilePath = _logFilePath;
1982
state->orig.in.locale = _locale;
1983
state->orig.in.flags = _flags;
1985
/* Out parameters */
1986
state->orig.out.error = _error;
1989
ZERO_STRUCT(state->orig.out.result);
1991
state->out_mem_ctx = talloc_named_const(state, 0,
1992
"dcerpc_eventlog6_EvtRpcLocalizeExportLog_out_memory");
1993
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1994
return tevent_req_post(req, ev);
1997
/* make a temporary copy, that we pass to the dispatch function */
1998
state->tmp = state->orig;
2000
subreq = dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_send(state, ev, h, &state->tmp);
2001
if (tevent_req_nomem(subreq, req)) {
2002
return tevent_req_post(req, ev);
2004
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcLocalizeExportLog_done, req);
2008
static void dcerpc_eventlog6_EvtRpcLocalizeExportLog_done(struct tevent_req *subreq)
2010
struct tevent_req *req = tevent_req_callback_data(
2011
subreq, struct tevent_req);
2012
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state *state = tevent_req_data(
2013
req, struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state);
2015
TALLOC_CTX *mem_ctx;
2017
if (state->out_mem_ctx) {
2018
mem_ctx = state->out_mem_ctx;
2023
status = dcerpc_eventlog6_EvtRpcLocalizeExportLog_r_recv(subreq, mem_ctx);
2024
TALLOC_FREE(subreq);
2025
if (!NT_STATUS_IS_OK(status)) {
2026
tevent_req_nterror(req, status);
2030
/* Copy out parameters */
2031
*state->orig.out.error = *state->tmp.out.error;
2034
state->orig.out.result = state->tmp.out.result;
2036
/* Reset temporary structure */
2037
ZERO_STRUCT(state->tmp);
2039
tevent_req_done(req);
2042
NTSTATUS dcerpc_eventlog6_EvtRpcLocalizeExportLog_recv(struct tevent_req *req,
2043
TALLOC_CTX *mem_ctx,
2046
struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state *state = tevent_req_data(
2047
req, struct dcerpc_eventlog6_EvtRpcLocalizeExportLog_state);
2050
if (tevent_req_is_nterror(req, &status)) {
2051
tevent_req_received(req);
2055
/* Steal possible out parameters to the callers context */
2056
talloc_steal(mem_ctx, state->out_mem_ctx);
2059
*result = state->orig.out.result;
2061
tevent_req_received(req);
2062
return NT_STATUS_OK;
2065
NTSTATUS dcerpc_eventlog6_EvtRpcLocalizeExportLog(struct dcerpc_binding_handle *h,
2066
TALLOC_CTX *mem_ctx,
2067
struct policy_handle *_control /* [in] [ref] */,
2068
const char *_logFilePath /* [in] [ref,range(1,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
2069
uint32_t _locale /* [in] */,
2070
uint32_t _flags /* [in] */,
2071
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
2074
struct eventlog6_EvtRpcLocalizeExportLog r;
2078
r.in.control = _control;
2079
r.in.logFilePath = _logFilePath;
2080
r.in.locale = _locale;
2081
r.in.flags = _flags;
2083
status = dcerpc_eventlog6_EvtRpcLocalizeExportLog_r(h, mem_ctx, &r);
2084
if (!NT_STATUS_IS_OK(status)) {
2088
/* Return variables */
2089
*_error = *r.out.error;
2092
*result = r.out.result;
2094
return NT_STATUS_OK;
2097
struct dcerpc_eventlog6_EvtRpcMessageRender_r_state {
2098
TALLOC_CTX *out_mem_ctx;
2101
static void dcerpc_eventlog6_EvtRpcMessageRender_r_done(struct tevent_req *subreq);
2103
struct tevent_req *dcerpc_eventlog6_EvtRpcMessageRender_r_send(TALLOC_CTX *mem_ctx,
2104
struct tevent_context *ev,
2105
struct dcerpc_binding_handle *h,
2106
struct eventlog6_EvtRpcMessageRender *r)
2108
struct tevent_req *req;
2109
struct dcerpc_eventlog6_EvtRpcMessageRender_r_state *state;
2110
struct tevent_req *subreq;
2112
req = tevent_req_create(mem_ctx, &state,
2113
struct dcerpc_eventlog6_EvtRpcMessageRender_r_state);
2118
state->out_mem_ctx = talloc_new(state);
2119
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2120
return tevent_req_post(req, ev);
2123
subreq = dcerpc_binding_handle_call_send(state, ev, h,
2124
NULL, &ndr_table_eventlog6,
2125
NDR_EVENTLOG6_EVTRPCMESSAGERENDER, state->out_mem_ctx, r);
2126
if (tevent_req_nomem(subreq, req)) {
2127
return tevent_req_post(req, ev);
2129
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcMessageRender_r_done, req);
2134
static void dcerpc_eventlog6_EvtRpcMessageRender_r_done(struct tevent_req *subreq)
2136
struct tevent_req *req =
2137
tevent_req_callback_data(subreq,
2141
status = dcerpc_binding_handle_call_recv(subreq);
2142
if (!NT_STATUS_IS_OK(status)) {
2143
tevent_req_nterror(req, status);
2147
tevent_req_done(req);
2150
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRender_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
2152
struct dcerpc_eventlog6_EvtRpcMessageRender_r_state *state =
2153
tevent_req_data(req,
2154
struct dcerpc_eventlog6_EvtRpcMessageRender_r_state);
2157
if (tevent_req_is_nterror(req, &status)) {
2158
tevent_req_received(req);
2162
talloc_steal(mem_ctx, state->out_mem_ctx);
2164
tevent_req_received(req);
2165
return NT_STATUS_OK;
2168
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRender_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcMessageRender *r)
2172
status = dcerpc_binding_handle_call(h,
2173
NULL, &ndr_table_eventlog6,
2174
NDR_EVENTLOG6_EVTRPCMESSAGERENDER, mem_ctx, r);
2179
struct dcerpc_eventlog6_EvtRpcMessageRender_state {
2180
struct eventlog6_EvtRpcMessageRender orig;
2181
struct eventlog6_EvtRpcMessageRender tmp;
2182
TALLOC_CTX *out_mem_ctx;
2185
static void dcerpc_eventlog6_EvtRpcMessageRender_done(struct tevent_req *subreq);
2187
struct tevent_req *dcerpc_eventlog6_EvtRpcMessageRender_send(TALLOC_CTX *mem_ctx,
2188
struct tevent_context *ev,
2189
struct dcerpc_binding_handle *h,
2190
struct policy_handle *_pubCfgObj /* [in] [ref] */,
2191
uint32_t _sizeEventId /* [in] [range(1,MAX_RPC_EVENT_ID_SIZE)] */,
2192
uint8_t *_eventId /* [in] [ref,size_is(sizeEventId)] */,
2193
uint32_t _messageId /* [in] */,
2194
struct eventlog6_EvtRpcVariantList *_values /* [in] [ref] */,
2195
uint32_t _flags /* [in] */,
2196
uint32_t _maxSizeString /* [in] */,
2197
uint32_t *_actualSizeString /* [out] [ref] */,
2198
uint32_t *_neededSizeString /* [out] [ref] */,
2199
uint8_t **_string /* [out] [ref,range(0,MAX_RPC_RENDERED_STRING_SIZE),size_is(,*actualSizeString)] */,
2200
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
2202
struct tevent_req *req;
2203
struct dcerpc_eventlog6_EvtRpcMessageRender_state *state;
2204
struct tevent_req *subreq;
2206
req = tevent_req_create(mem_ctx, &state,
2207
struct dcerpc_eventlog6_EvtRpcMessageRender_state);
2211
state->out_mem_ctx = NULL;
2214
state->orig.in.pubCfgObj = _pubCfgObj;
2215
state->orig.in.sizeEventId = _sizeEventId;
2216
state->orig.in.eventId = _eventId;
2217
state->orig.in.messageId = _messageId;
2218
state->orig.in.values = _values;
2219
state->orig.in.flags = _flags;
2220
state->orig.in.maxSizeString = _maxSizeString;
2222
/* Out parameters */
2223
state->orig.out.actualSizeString = _actualSizeString;
2224
state->orig.out.neededSizeString = _neededSizeString;
2225
state->orig.out.string = _string;
2226
state->orig.out.error = _error;
2229
ZERO_STRUCT(state->orig.out.result);
2231
state->out_mem_ctx = talloc_named_const(state, 0,
2232
"dcerpc_eventlog6_EvtRpcMessageRender_out_memory");
2233
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2234
return tevent_req_post(req, ev);
2237
/* make a temporary copy, that we pass to the dispatch function */
2238
state->tmp = state->orig;
2240
subreq = dcerpc_eventlog6_EvtRpcMessageRender_r_send(state, ev, h, &state->tmp);
2241
if (tevent_req_nomem(subreq, req)) {
2242
return tevent_req_post(req, ev);
2244
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcMessageRender_done, req);
2248
static void dcerpc_eventlog6_EvtRpcMessageRender_done(struct tevent_req *subreq)
2250
struct tevent_req *req = tevent_req_callback_data(
2251
subreq, struct tevent_req);
2252
struct dcerpc_eventlog6_EvtRpcMessageRender_state *state = tevent_req_data(
2253
req, struct dcerpc_eventlog6_EvtRpcMessageRender_state);
2255
TALLOC_CTX *mem_ctx;
2257
if (state->out_mem_ctx) {
2258
mem_ctx = state->out_mem_ctx;
2263
status = dcerpc_eventlog6_EvtRpcMessageRender_r_recv(subreq, mem_ctx);
2264
TALLOC_FREE(subreq);
2265
if (!NT_STATUS_IS_OK(status)) {
2266
tevent_req_nterror(req, status);
2270
/* Copy out parameters */
2271
*state->orig.out.actualSizeString = *state->tmp.out.actualSizeString;
2272
*state->orig.out.neededSizeString = *state->tmp.out.neededSizeString;
2273
*state->orig.out.string = *state->tmp.out.string;
2274
*state->orig.out.error = *state->tmp.out.error;
2277
state->orig.out.result = state->tmp.out.result;
2279
/* Reset temporary structure */
2280
ZERO_STRUCT(state->tmp);
2282
tevent_req_done(req);
2285
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRender_recv(struct tevent_req *req,
2286
TALLOC_CTX *mem_ctx,
2289
struct dcerpc_eventlog6_EvtRpcMessageRender_state *state = tevent_req_data(
2290
req, struct dcerpc_eventlog6_EvtRpcMessageRender_state);
2293
if (tevent_req_is_nterror(req, &status)) {
2294
tevent_req_received(req);
2298
/* Steal possible out parameters to the callers context */
2299
talloc_steal(mem_ctx, state->out_mem_ctx);
2302
*result = state->orig.out.result;
2304
tevent_req_received(req);
2305
return NT_STATUS_OK;
2308
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRender(struct dcerpc_binding_handle *h,
2309
TALLOC_CTX *mem_ctx,
2310
struct policy_handle *_pubCfgObj /* [in] [ref] */,
2311
uint32_t _sizeEventId /* [in] [range(1,MAX_RPC_EVENT_ID_SIZE)] */,
2312
uint8_t *_eventId /* [in] [ref,size_is(sizeEventId)] */,
2313
uint32_t _messageId /* [in] */,
2314
struct eventlog6_EvtRpcVariantList *_values /* [in] [ref] */,
2315
uint32_t _flags /* [in] */,
2316
uint32_t _maxSizeString /* [in] */,
2317
uint32_t *_actualSizeString /* [out] [ref] */,
2318
uint32_t *_neededSizeString /* [out] [ref] */,
2319
uint8_t **_string /* [out] [ref,range(0,MAX_RPC_RENDERED_STRING_SIZE),size_is(,*actualSizeString)] */,
2320
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
2323
struct eventlog6_EvtRpcMessageRender r;
2327
r.in.pubCfgObj = _pubCfgObj;
2328
r.in.sizeEventId = _sizeEventId;
2329
r.in.eventId = _eventId;
2330
r.in.messageId = _messageId;
2331
r.in.values = _values;
2332
r.in.flags = _flags;
2333
r.in.maxSizeString = _maxSizeString;
2335
status = dcerpc_eventlog6_EvtRpcMessageRender_r(h, mem_ctx, &r);
2336
if (!NT_STATUS_IS_OK(status)) {
2340
/* Return variables */
2341
*_actualSizeString = *r.out.actualSizeString;
2342
*_neededSizeString = *r.out.neededSizeString;
2343
*_string = *r.out.string;
2344
*_error = *r.out.error;
2347
*result = r.out.result;
2349
return NT_STATUS_OK;
2352
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_state {
2353
TALLOC_CTX *out_mem_ctx;
2356
static void dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_done(struct tevent_req *subreq);
2358
struct tevent_req *dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_send(TALLOC_CTX *mem_ctx,
2359
struct tevent_context *ev,
2360
struct dcerpc_binding_handle *h,
2361
struct eventlog6_EvtRpcMessageRenderDefault *r)
2363
struct tevent_req *req;
2364
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_state *state;
2365
struct tevent_req *subreq;
2367
req = tevent_req_create(mem_ctx, &state,
2368
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_state);
2373
state->out_mem_ctx = talloc_new(state);
2374
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2375
return tevent_req_post(req, ev);
2378
subreq = dcerpc_binding_handle_call_send(state, ev, h,
2379
NULL, &ndr_table_eventlog6,
2380
NDR_EVENTLOG6_EVTRPCMESSAGERENDERDEFAULT, state->out_mem_ctx, r);
2381
if (tevent_req_nomem(subreq, req)) {
2382
return tevent_req_post(req, ev);
2384
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_done, req);
2389
static void dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_done(struct tevent_req *subreq)
2391
struct tevent_req *req =
2392
tevent_req_callback_data(subreq,
2396
status = dcerpc_binding_handle_call_recv(subreq);
2397
if (!NT_STATUS_IS_OK(status)) {
2398
tevent_req_nterror(req, status);
2402
tevent_req_done(req);
2405
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
2407
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_state *state =
2408
tevent_req_data(req,
2409
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_state);
2412
if (tevent_req_is_nterror(req, &status)) {
2413
tevent_req_received(req);
2417
talloc_steal(mem_ctx, state->out_mem_ctx);
2419
tevent_req_received(req);
2420
return NT_STATUS_OK;
2423
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRenderDefault_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcMessageRenderDefault *r)
2427
status = dcerpc_binding_handle_call(h,
2428
NULL, &ndr_table_eventlog6,
2429
NDR_EVENTLOG6_EVTRPCMESSAGERENDERDEFAULT, mem_ctx, r);
2434
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state {
2435
struct eventlog6_EvtRpcMessageRenderDefault orig;
2436
struct eventlog6_EvtRpcMessageRenderDefault tmp;
2437
TALLOC_CTX *out_mem_ctx;
2440
static void dcerpc_eventlog6_EvtRpcMessageRenderDefault_done(struct tevent_req *subreq);
2442
struct tevent_req *dcerpc_eventlog6_EvtRpcMessageRenderDefault_send(TALLOC_CTX *mem_ctx,
2443
struct tevent_context *ev,
2444
struct dcerpc_binding_handle *h,
2445
uint32_t _sizeEventId /* [in] [range(1,MAX_RPC_EVENT_ID_SIZE)] */,
2446
uint8_t *_eventId /* [in] [ref,size_is(sizeEventId)] */,
2447
uint32_t _messageId /* [in] */,
2448
struct eventlog6_EvtRpcVariantList *_values /* [in] [ref] */,
2449
uint32_t _flags /* [in] */,
2450
uint32_t _maxSizeString /* [in] */,
2451
uint32_t *_actualSizeString /* [out] [ref] */,
2452
uint32_t *_neededSizeString /* [out] [ref] */,
2453
uint8_t **_string /* [out] [ref,range(0,MAX_RPC_RENDERED_STRING_SIZE),size_is(,*actualSizeString)] */,
2454
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
2456
struct tevent_req *req;
2457
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state *state;
2458
struct tevent_req *subreq;
2460
req = tevent_req_create(mem_ctx, &state,
2461
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state);
2465
state->out_mem_ctx = NULL;
2468
state->orig.in.sizeEventId = _sizeEventId;
2469
state->orig.in.eventId = _eventId;
2470
state->orig.in.messageId = _messageId;
2471
state->orig.in.values = _values;
2472
state->orig.in.flags = _flags;
2473
state->orig.in.maxSizeString = _maxSizeString;
2475
/* Out parameters */
2476
state->orig.out.actualSizeString = _actualSizeString;
2477
state->orig.out.neededSizeString = _neededSizeString;
2478
state->orig.out.string = _string;
2479
state->orig.out.error = _error;
2482
ZERO_STRUCT(state->orig.out.result);
2484
state->out_mem_ctx = talloc_named_const(state, 0,
2485
"dcerpc_eventlog6_EvtRpcMessageRenderDefault_out_memory");
2486
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2487
return tevent_req_post(req, ev);
2490
/* make a temporary copy, that we pass to the dispatch function */
2491
state->tmp = state->orig;
2493
subreq = dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_send(state, ev, h, &state->tmp);
2494
if (tevent_req_nomem(subreq, req)) {
2495
return tevent_req_post(req, ev);
2497
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcMessageRenderDefault_done, req);
2501
static void dcerpc_eventlog6_EvtRpcMessageRenderDefault_done(struct tevent_req *subreq)
2503
struct tevent_req *req = tevent_req_callback_data(
2504
subreq, struct tevent_req);
2505
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state *state = tevent_req_data(
2506
req, struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state);
2508
TALLOC_CTX *mem_ctx;
2510
if (state->out_mem_ctx) {
2511
mem_ctx = state->out_mem_ctx;
2516
status = dcerpc_eventlog6_EvtRpcMessageRenderDefault_r_recv(subreq, mem_ctx);
2517
TALLOC_FREE(subreq);
2518
if (!NT_STATUS_IS_OK(status)) {
2519
tevent_req_nterror(req, status);
2523
/* Copy out parameters */
2524
*state->orig.out.actualSizeString = *state->tmp.out.actualSizeString;
2525
*state->orig.out.neededSizeString = *state->tmp.out.neededSizeString;
2526
*state->orig.out.string = *state->tmp.out.string;
2527
*state->orig.out.error = *state->tmp.out.error;
2530
state->orig.out.result = state->tmp.out.result;
2532
/* Reset temporary structure */
2533
ZERO_STRUCT(state->tmp);
2535
tevent_req_done(req);
2538
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRenderDefault_recv(struct tevent_req *req,
2539
TALLOC_CTX *mem_ctx,
2542
struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state *state = tevent_req_data(
2543
req, struct dcerpc_eventlog6_EvtRpcMessageRenderDefault_state);
2546
if (tevent_req_is_nterror(req, &status)) {
2547
tevent_req_received(req);
2551
/* Steal possible out parameters to the callers context */
2552
talloc_steal(mem_ctx, state->out_mem_ctx);
2555
*result = state->orig.out.result;
2557
tevent_req_received(req);
2558
return NT_STATUS_OK;
2561
NTSTATUS dcerpc_eventlog6_EvtRpcMessageRenderDefault(struct dcerpc_binding_handle *h,
2562
TALLOC_CTX *mem_ctx,
2563
uint32_t _sizeEventId /* [in] [range(1,MAX_RPC_EVENT_ID_SIZE)] */,
2564
uint8_t *_eventId /* [in] [ref,size_is(sizeEventId)] */,
2565
uint32_t _messageId /* [in] */,
2566
struct eventlog6_EvtRpcVariantList *_values /* [in] [ref] */,
2567
uint32_t _flags /* [in] */,
2568
uint32_t _maxSizeString /* [in] */,
2569
uint32_t *_actualSizeString /* [out] [ref] */,
2570
uint32_t *_neededSizeString /* [out] [ref] */,
2571
uint8_t **_string /* [out] [ref,range(0,MAX_RPC_RENDERED_STRING_SIZE),size_is(,*actualSizeString)] */,
2572
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
2575
struct eventlog6_EvtRpcMessageRenderDefault r;
2579
r.in.sizeEventId = _sizeEventId;
2580
r.in.eventId = _eventId;
2581
r.in.messageId = _messageId;
2582
r.in.values = _values;
2583
r.in.flags = _flags;
2584
r.in.maxSizeString = _maxSizeString;
2586
status = dcerpc_eventlog6_EvtRpcMessageRenderDefault_r(h, mem_ctx, &r);
2587
if (!NT_STATUS_IS_OK(status)) {
2591
/* Return variables */
2592
*_actualSizeString = *r.out.actualSizeString;
2593
*_neededSizeString = *r.out.neededSizeString;
2594
*_string = *r.out.string;
2595
*_error = *r.out.error;
2598
*result = r.out.result;
2600
return NT_STATUS_OK;
2603
struct dcerpc_eventlog6_EvtRpcQueryNext_r_state {
2604
TALLOC_CTX *out_mem_ctx;
2607
static void dcerpc_eventlog6_EvtRpcQueryNext_r_done(struct tevent_req *subreq);
2609
struct tevent_req *dcerpc_eventlog6_EvtRpcQueryNext_r_send(TALLOC_CTX *mem_ctx,
2610
struct tevent_context *ev,
2611
struct dcerpc_binding_handle *h,
2612
struct eventlog6_EvtRpcQueryNext *r)
2614
struct tevent_req *req;
2615
struct dcerpc_eventlog6_EvtRpcQueryNext_r_state *state;
2616
struct tevent_req *subreq;
2618
req = tevent_req_create(mem_ctx, &state,
2619
struct dcerpc_eventlog6_EvtRpcQueryNext_r_state);
2624
state->out_mem_ctx = talloc_new(state);
2625
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2626
return tevent_req_post(req, ev);
2629
subreq = dcerpc_binding_handle_call_send(state, ev, h,
2630
NULL, &ndr_table_eventlog6,
2631
NDR_EVENTLOG6_EVTRPCQUERYNEXT, state->out_mem_ctx, r);
2632
if (tevent_req_nomem(subreq, req)) {
2633
return tevent_req_post(req, ev);
2635
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcQueryNext_r_done, req);
2640
static void dcerpc_eventlog6_EvtRpcQueryNext_r_done(struct tevent_req *subreq)
2642
struct tevent_req *req =
2643
tevent_req_callback_data(subreq,
2647
status = dcerpc_binding_handle_call_recv(subreq);
2648
if (!NT_STATUS_IS_OK(status)) {
2649
tevent_req_nterror(req, status);
2653
tevent_req_done(req);
2656
NTSTATUS dcerpc_eventlog6_EvtRpcQueryNext_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
2658
struct dcerpc_eventlog6_EvtRpcQueryNext_r_state *state =
2659
tevent_req_data(req,
2660
struct dcerpc_eventlog6_EvtRpcQueryNext_r_state);
2663
if (tevent_req_is_nterror(req, &status)) {
2664
tevent_req_received(req);
2668
talloc_steal(mem_ctx, state->out_mem_ctx);
2670
tevent_req_received(req);
2671
return NT_STATUS_OK;
2674
NTSTATUS dcerpc_eventlog6_EvtRpcQueryNext_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcQueryNext *r)
2678
status = dcerpc_binding_handle_call(h,
2679
NULL, &ndr_table_eventlog6,
2680
NDR_EVENTLOG6_EVTRPCQUERYNEXT, mem_ctx, r);
2685
struct dcerpc_eventlog6_EvtRpcQueryNext_state {
2686
struct eventlog6_EvtRpcQueryNext orig;
2687
struct eventlog6_EvtRpcQueryNext tmp;
2688
TALLOC_CTX *out_mem_ctx;
2691
static void dcerpc_eventlog6_EvtRpcQueryNext_done(struct tevent_req *subreq);
2693
struct tevent_req *dcerpc_eventlog6_EvtRpcQueryNext_send(TALLOC_CTX *mem_ctx,
2694
struct tevent_context *ev,
2695
struct dcerpc_binding_handle *h,
2696
struct policy_handle *_logQuery /* [in] [ref] */,
2697
uint32_t _numRequestedRecords /* [in] */,
2698
uint32_t _timeOutEnd /* [in] */,
2699
uint32_t _flags /* [in] */,
2700
uint32_t *_numActualRecords /* [out] [ref] */,
2701
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
2702
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
2703
uint32_t *_resultBufferSize /* [out] [ref] */,
2704
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */)
2706
struct tevent_req *req;
2707
struct dcerpc_eventlog6_EvtRpcQueryNext_state *state;
2708
struct tevent_req *subreq;
2710
req = tevent_req_create(mem_ctx, &state,
2711
struct dcerpc_eventlog6_EvtRpcQueryNext_state);
2715
state->out_mem_ctx = NULL;
2718
state->orig.in.logQuery = _logQuery;
2719
state->orig.in.numRequestedRecords = _numRequestedRecords;
2720
state->orig.in.timeOutEnd = _timeOutEnd;
2721
state->orig.in.flags = _flags;
2723
/* Out parameters */
2724
state->orig.out.numActualRecords = _numActualRecords;
2725
state->orig.out.eventDataIndices = _eventDataIndices;
2726
state->orig.out.eventDataSizes = _eventDataSizes;
2727
state->orig.out.resultBufferSize = _resultBufferSize;
2728
state->orig.out.resultBuffer = _resultBuffer;
2731
ZERO_STRUCT(state->orig.out.result);
2733
state->out_mem_ctx = talloc_named_const(state, 0,
2734
"dcerpc_eventlog6_EvtRpcQueryNext_out_memory");
2735
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2736
return tevent_req_post(req, ev);
2739
/* make a temporary copy, that we pass to the dispatch function */
2740
state->tmp = state->orig;
2742
subreq = dcerpc_eventlog6_EvtRpcQueryNext_r_send(state, ev, h, &state->tmp);
2743
if (tevent_req_nomem(subreq, req)) {
2744
return tevent_req_post(req, ev);
2746
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcQueryNext_done, req);
2750
static void dcerpc_eventlog6_EvtRpcQueryNext_done(struct tevent_req *subreq)
2752
struct tevent_req *req = tevent_req_callback_data(
2753
subreq, struct tevent_req);
2754
struct dcerpc_eventlog6_EvtRpcQueryNext_state *state = tevent_req_data(
2755
req, struct dcerpc_eventlog6_EvtRpcQueryNext_state);
2757
TALLOC_CTX *mem_ctx;
2759
if (state->out_mem_ctx) {
2760
mem_ctx = state->out_mem_ctx;
2765
status = dcerpc_eventlog6_EvtRpcQueryNext_r_recv(subreq, mem_ctx);
2766
TALLOC_FREE(subreq);
2767
if (!NT_STATUS_IS_OK(status)) {
2768
tevent_req_nterror(req, status);
2772
/* Copy out parameters */
2773
*state->orig.out.numActualRecords = *state->tmp.out.numActualRecords;
2774
*state->orig.out.eventDataIndices = *state->tmp.out.eventDataIndices;
2775
*state->orig.out.eventDataSizes = *state->tmp.out.eventDataSizes;
2776
*state->orig.out.resultBufferSize = *state->tmp.out.resultBufferSize;
2777
*state->orig.out.resultBuffer = *state->tmp.out.resultBuffer;
2780
state->orig.out.result = state->tmp.out.result;
2782
/* Reset temporary structure */
2783
ZERO_STRUCT(state->tmp);
2785
tevent_req_done(req);
2788
NTSTATUS dcerpc_eventlog6_EvtRpcQueryNext_recv(struct tevent_req *req,
2789
TALLOC_CTX *mem_ctx,
2792
struct dcerpc_eventlog6_EvtRpcQueryNext_state *state = tevent_req_data(
2793
req, struct dcerpc_eventlog6_EvtRpcQueryNext_state);
2796
if (tevent_req_is_nterror(req, &status)) {
2797
tevent_req_received(req);
2801
/* Steal possible out parameters to the callers context */
2802
talloc_steal(mem_ctx, state->out_mem_ctx);
2805
*result = state->orig.out.result;
2807
tevent_req_received(req);
2808
return NT_STATUS_OK;
2811
NTSTATUS dcerpc_eventlog6_EvtRpcQueryNext(struct dcerpc_binding_handle *h,
2812
TALLOC_CTX *mem_ctx,
2813
struct policy_handle *_logQuery /* [in] [ref] */,
2814
uint32_t _numRequestedRecords /* [in] */,
2815
uint32_t _timeOutEnd /* [in] */,
2816
uint32_t _flags /* [in] */,
2817
uint32_t *_numActualRecords /* [out] [ref] */,
2818
uint32_t **_eventDataIndices /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
2819
uint32_t **_eventDataSizes /* [out] [ref,range(0,MAX_RPC_RECORD_COUNT),size_is(,*numActualRecords)] */,
2820
uint32_t *_resultBufferSize /* [out] [ref] */,
2821
uint8_t **_resultBuffer /* [out] [ref,range(0,MAX_RPC_BATCH_SIZE),size_is(,*resultBufferSize)] */,
2824
struct eventlog6_EvtRpcQueryNext r;
2828
r.in.logQuery = _logQuery;
2829
r.in.numRequestedRecords = _numRequestedRecords;
2830
r.in.timeOutEnd = _timeOutEnd;
2831
r.in.flags = _flags;
2833
status = dcerpc_eventlog6_EvtRpcQueryNext_r(h, mem_ctx, &r);
2834
if (!NT_STATUS_IS_OK(status)) {
2838
/* Return variables */
2839
*_numActualRecords = *r.out.numActualRecords;
2840
*_eventDataIndices = *r.out.eventDataIndices;
2841
*_eventDataSizes = *r.out.eventDataSizes;
2842
*_resultBufferSize = *r.out.resultBufferSize;
2843
*_resultBuffer = *r.out.resultBuffer;
2846
*result = r.out.result;
2848
return NT_STATUS_OK;
2851
struct dcerpc_eventlog6_EvtRpcQuerySeek_r_state {
2852
TALLOC_CTX *out_mem_ctx;
2855
static void dcerpc_eventlog6_EvtRpcQuerySeek_r_done(struct tevent_req *subreq);
2857
struct tevent_req *dcerpc_eventlog6_EvtRpcQuerySeek_r_send(TALLOC_CTX *mem_ctx,
2858
struct tevent_context *ev,
2859
struct dcerpc_binding_handle *h,
2860
struct eventlog6_EvtRpcQuerySeek *r)
2862
struct tevent_req *req;
2863
struct dcerpc_eventlog6_EvtRpcQuerySeek_r_state *state;
2864
struct tevent_req *subreq;
2866
req = tevent_req_create(mem_ctx, &state,
2867
struct dcerpc_eventlog6_EvtRpcQuerySeek_r_state);
2872
state->out_mem_ctx = talloc_new(state);
2873
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2874
return tevent_req_post(req, ev);
2877
subreq = dcerpc_binding_handle_call_send(state, ev, h,
2878
NULL, &ndr_table_eventlog6,
2879
NDR_EVENTLOG6_EVTRPCQUERYSEEK, state->out_mem_ctx, r);
2880
if (tevent_req_nomem(subreq, req)) {
2881
return tevent_req_post(req, ev);
2883
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcQuerySeek_r_done, req);
2888
static void dcerpc_eventlog6_EvtRpcQuerySeek_r_done(struct tevent_req *subreq)
2890
struct tevent_req *req =
2891
tevent_req_callback_data(subreq,
2895
status = dcerpc_binding_handle_call_recv(subreq);
2896
if (!NT_STATUS_IS_OK(status)) {
2897
tevent_req_nterror(req, status);
2901
tevent_req_done(req);
2904
NTSTATUS dcerpc_eventlog6_EvtRpcQuerySeek_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
2906
struct dcerpc_eventlog6_EvtRpcQuerySeek_r_state *state =
2907
tevent_req_data(req,
2908
struct dcerpc_eventlog6_EvtRpcQuerySeek_r_state);
2911
if (tevent_req_is_nterror(req, &status)) {
2912
tevent_req_received(req);
2916
talloc_steal(mem_ctx, state->out_mem_ctx);
2918
tevent_req_received(req);
2919
return NT_STATUS_OK;
2922
NTSTATUS dcerpc_eventlog6_EvtRpcQuerySeek_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcQuerySeek *r)
2926
status = dcerpc_binding_handle_call(h,
2927
NULL, &ndr_table_eventlog6,
2928
NDR_EVENTLOG6_EVTRPCQUERYSEEK, mem_ctx, r);
2933
struct dcerpc_eventlog6_EvtRpcQuerySeek_state {
2934
struct eventlog6_EvtRpcQuerySeek orig;
2935
struct eventlog6_EvtRpcQuerySeek tmp;
2936
TALLOC_CTX *out_mem_ctx;
2939
static void dcerpc_eventlog6_EvtRpcQuerySeek_done(struct tevent_req *subreq);
2941
struct tevent_req *dcerpc_eventlog6_EvtRpcQuerySeek_send(TALLOC_CTX *mem_ctx,
2942
struct tevent_context *ev,
2943
struct dcerpc_binding_handle *h,
2944
struct policy_handle *_logQuery /* [in] [ref] */,
2945
uint64_t _pos /* [in] */,
2946
const char *_bookmarkXml /* [in] [unique,range(0,MAX_RPC_BOOKMARK_LENGTH),charset(UTF16)] */,
2947
uint32_t _timeOut /* [in] */,
2948
uint32_t _flags /* [in] */,
2949
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
2951
struct tevent_req *req;
2952
struct dcerpc_eventlog6_EvtRpcQuerySeek_state *state;
2953
struct tevent_req *subreq;
2955
req = tevent_req_create(mem_ctx, &state,
2956
struct dcerpc_eventlog6_EvtRpcQuerySeek_state);
2960
state->out_mem_ctx = NULL;
2963
state->orig.in.logQuery = _logQuery;
2964
state->orig.in.pos = _pos;
2965
state->orig.in.bookmarkXml = _bookmarkXml;
2966
state->orig.in.timeOut = _timeOut;
2967
state->orig.in.flags = _flags;
2969
/* Out parameters */
2970
state->orig.out.error = _error;
2973
ZERO_STRUCT(state->orig.out.result);
2975
state->out_mem_ctx = talloc_named_const(state, 0,
2976
"dcerpc_eventlog6_EvtRpcQuerySeek_out_memory");
2977
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2978
return tevent_req_post(req, ev);
2981
/* make a temporary copy, that we pass to the dispatch function */
2982
state->tmp = state->orig;
2984
subreq = dcerpc_eventlog6_EvtRpcQuerySeek_r_send(state, ev, h, &state->tmp);
2985
if (tevent_req_nomem(subreq, req)) {
2986
return tevent_req_post(req, ev);
2988
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcQuerySeek_done, req);
2992
static void dcerpc_eventlog6_EvtRpcQuerySeek_done(struct tevent_req *subreq)
2994
struct tevent_req *req = tevent_req_callback_data(
2995
subreq, struct tevent_req);
2996
struct dcerpc_eventlog6_EvtRpcQuerySeek_state *state = tevent_req_data(
2997
req, struct dcerpc_eventlog6_EvtRpcQuerySeek_state);
2999
TALLOC_CTX *mem_ctx;
3001
if (state->out_mem_ctx) {
3002
mem_ctx = state->out_mem_ctx;
3007
status = dcerpc_eventlog6_EvtRpcQuerySeek_r_recv(subreq, mem_ctx);
3008
TALLOC_FREE(subreq);
3009
if (!NT_STATUS_IS_OK(status)) {
3010
tevent_req_nterror(req, status);
3014
/* Copy out parameters */
3015
*state->orig.out.error = *state->tmp.out.error;
3018
state->orig.out.result = state->tmp.out.result;
3020
/* Reset temporary structure */
3021
ZERO_STRUCT(state->tmp);
3023
tevent_req_done(req);
3026
NTSTATUS dcerpc_eventlog6_EvtRpcQuerySeek_recv(struct tevent_req *req,
3027
TALLOC_CTX *mem_ctx,
3030
struct dcerpc_eventlog6_EvtRpcQuerySeek_state *state = tevent_req_data(
3031
req, struct dcerpc_eventlog6_EvtRpcQuerySeek_state);
3034
if (tevent_req_is_nterror(req, &status)) {
3035
tevent_req_received(req);
3039
/* Steal possible out parameters to the callers context */
3040
talloc_steal(mem_ctx, state->out_mem_ctx);
3043
*result = state->orig.out.result;
3045
tevent_req_received(req);
3046
return NT_STATUS_OK;
3049
NTSTATUS dcerpc_eventlog6_EvtRpcQuerySeek(struct dcerpc_binding_handle *h,
3050
TALLOC_CTX *mem_ctx,
3051
struct policy_handle *_logQuery /* [in] [ref] */,
3052
uint64_t _pos /* [in] */,
3053
const char *_bookmarkXml /* [in] [unique,range(0,MAX_RPC_BOOKMARK_LENGTH),charset(UTF16)] */,
3054
uint32_t _timeOut /* [in] */,
3055
uint32_t _flags /* [in] */,
3056
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
3059
struct eventlog6_EvtRpcQuerySeek r;
3063
r.in.logQuery = _logQuery;
3065
r.in.bookmarkXml = _bookmarkXml;
3066
r.in.timeOut = _timeOut;
3067
r.in.flags = _flags;
3069
status = dcerpc_eventlog6_EvtRpcQuerySeek_r(h, mem_ctx, &r);
3070
if (!NT_STATUS_IS_OK(status)) {
3074
/* Return variables */
3075
*_error = *r.out.error;
3078
*result = r.out.result;
3080
return NT_STATUS_OK;
3083
struct dcerpc_eventlog6_EvtRpcClose_r_state {
3084
TALLOC_CTX *out_mem_ctx;
3087
static void dcerpc_eventlog6_EvtRpcClose_r_done(struct tevent_req *subreq);
3089
struct tevent_req *dcerpc_eventlog6_EvtRpcClose_r_send(TALLOC_CTX *mem_ctx,
3090
struct tevent_context *ev,
3091
struct dcerpc_binding_handle *h,
3092
struct eventlog6_EvtRpcClose *r)
3094
struct tevent_req *req;
3095
struct dcerpc_eventlog6_EvtRpcClose_r_state *state;
3096
struct tevent_req *subreq;
3098
req = tevent_req_create(mem_ctx, &state,
3099
struct dcerpc_eventlog6_EvtRpcClose_r_state);
3104
state->out_mem_ctx = talloc_new(state);
3105
if (tevent_req_nomem(state->out_mem_ctx, req)) {
3106
return tevent_req_post(req, ev);
3109
subreq = dcerpc_binding_handle_call_send(state, ev, h,
3110
NULL, &ndr_table_eventlog6,
3111
NDR_EVENTLOG6_EVTRPCCLOSE, state->out_mem_ctx, r);
3112
if (tevent_req_nomem(subreq, req)) {
3113
return tevent_req_post(req, ev);
3115
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcClose_r_done, req);
3120
static void dcerpc_eventlog6_EvtRpcClose_r_done(struct tevent_req *subreq)
3122
struct tevent_req *req =
3123
tevent_req_callback_data(subreq,
3127
status = dcerpc_binding_handle_call_recv(subreq);
3128
if (!NT_STATUS_IS_OK(status)) {
3129
tevent_req_nterror(req, status);
3133
tevent_req_done(req);
3136
NTSTATUS dcerpc_eventlog6_EvtRpcClose_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
3138
struct dcerpc_eventlog6_EvtRpcClose_r_state *state =
3139
tevent_req_data(req,
3140
struct dcerpc_eventlog6_EvtRpcClose_r_state);
3143
if (tevent_req_is_nterror(req, &status)) {
3144
tevent_req_received(req);
3148
talloc_steal(mem_ctx, state->out_mem_ctx);
3150
tevent_req_received(req);
3151
return NT_STATUS_OK;
3154
NTSTATUS dcerpc_eventlog6_EvtRpcClose_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcClose *r)
3158
status = dcerpc_binding_handle_call(h,
3159
NULL, &ndr_table_eventlog6,
3160
NDR_EVENTLOG6_EVTRPCCLOSE, mem_ctx, r);
3165
struct dcerpc_eventlog6_EvtRpcClose_state {
3166
struct eventlog6_EvtRpcClose orig;
3167
struct eventlog6_EvtRpcClose tmp;
3168
TALLOC_CTX *out_mem_ctx;
3171
static void dcerpc_eventlog6_EvtRpcClose_done(struct tevent_req *subreq);
3173
struct tevent_req *dcerpc_eventlog6_EvtRpcClose_send(TALLOC_CTX *mem_ctx,
3174
struct tevent_context *ev,
3175
struct dcerpc_binding_handle *h,
3176
struct policy_handle **_handle /* [in,out] [ref] */)
3178
struct tevent_req *req;
3179
struct dcerpc_eventlog6_EvtRpcClose_state *state;
3180
struct tevent_req *subreq;
3182
req = tevent_req_create(mem_ctx, &state,
3183
struct dcerpc_eventlog6_EvtRpcClose_state);
3187
state->out_mem_ctx = NULL;
3190
state->orig.in.handle = _handle;
3192
/* Out parameters */
3193
state->orig.out.handle = _handle;
3196
ZERO_STRUCT(state->orig.out.result);
3198
state->out_mem_ctx = talloc_named_const(state, 0,
3199
"dcerpc_eventlog6_EvtRpcClose_out_memory");
3200
if (tevent_req_nomem(state->out_mem_ctx, req)) {
3201
return tevent_req_post(req, ev);
3204
/* make a temporary copy, that we pass to the dispatch function */
3205
state->tmp = state->orig;
3207
subreq = dcerpc_eventlog6_EvtRpcClose_r_send(state, ev, h, &state->tmp);
3208
if (tevent_req_nomem(subreq, req)) {
3209
return tevent_req_post(req, ev);
3211
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcClose_done, req);
3215
static void dcerpc_eventlog6_EvtRpcClose_done(struct tevent_req *subreq)
3217
struct tevent_req *req = tevent_req_callback_data(
3218
subreq, struct tevent_req);
3219
struct dcerpc_eventlog6_EvtRpcClose_state *state = tevent_req_data(
3220
req, struct dcerpc_eventlog6_EvtRpcClose_state);
3222
TALLOC_CTX *mem_ctx;
3224
if (state->out_mem_ctx) {
3225
mem_ctx = state->out_mem_ctx;
3230
status = dcerpc_eventlog6_EvtRpcClose_r_recv(subreq, mem_ctx);
3231
TALLOC_FREE(subreq);
3232
if (!NT_STATUS_IS_OK(status)) {
3233
tevent_req_nterror(req, status);
3237
/* Copy out parameters */
3238
*state->orig.out.handle = *state->tmp.out.handle;
3241
state->orig.out.result = state->tmp.out.result;
3243
/* Reset temporary structure */
3244
ZERO_STRUCT(state->tmp);
3246
tevent_req_done(req);
3249
NTSTATUS dcerpc_eventlog6_EvtRpcClose_recv(struct tevent_req *req,
3250
TALLOC_CTX *mem_ctx,
3253
struct dcerpc_eventlog6_EvtRpcClose_state *state = tevent_req_data(
3254
req, struct dcerpc_eventlog6_EvtRpcClose_state);
3257
if (tevent_req_is_nterror(req, &status)) {
3258
tevent_req_received(req);
3262
/* Steal possible out parameters to the callers context */
3263
talloc_steal(mem_ctx, state->out_mem_ctx);
3266
*result = state->orig.out.result;
3268
tevent_req_received(req);
3269
return NT_STATUS_OK;
3272
NTSTATUS dcerpc_eventlog6_EvtRpcClose(struct dcerpc_binding_handle *h,
3273
TALLOC_CTX *mem_ctx,
3274
struct policy_handle **_handle /* [in,out] [ref] */,
3277
struct eventlog6_EvtRpcClose r;
3281
r.in.handle = _handle;
3283
status = dcerpc_eventlog6_EvtRpcClose_r(h, mem_ctx, &r);
3284
if (!NT_STATUS_IS_OK(status)) {
3288
/* Return variables */
3289
*_handle = *r.out.handle;
3292
*result = r.out.result;
3294
return NT_STATUS_OK;
3297
struct dcerpc_eventlog6_EvtRpcCancel_r_state {
3298
TALLOC_CTX *out_mem_ctx;
3301
static void dcerpc_eventlog6_EvtRpcCancel_r_done(struct tevent_req *subreq);
3303
struct tevent_req *dcerpc_eventlog6_EvtRpcCancel_r_send(TALLOC_CTX *mem_ctx,
3304
struct tevent_context *ev,
3305
struct dcerpc_binding_handle *h,
3306
struct eventlog6_EvtRpcCancel *r)
3308
struct tevent_req *req;
3309
struct dcerpc_eventlog6_EvtRpcCancel_r_state *state;
3310
struct tevent_req *subreq;
3312
req = tevent_req_create(mem_ctx, &state,
3313
struct dcerpc_eventlog6_EvtRpcCancel_r_state);
3318
state->out_mem_ctx = NULL;
3320
subreq = dcerpc_binding_handle_call_send(state, ev, h,
3321
NULL, &ndr_table_eventlog6,
3322
NDR_EVENTLOG6_EVTRPCCANCEL, state, r);
3323
if (tevent_req_nomem(subreq, req)) {
3324
return tevent_req_post(req, ev);
3326
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcCancel_r_done, req);
3331
static void dcerpc_eventlog6_EvtRpcCancel_r_done(struct tevent_req *subreq)
3333
struct tevent_req *req =
3334
tevent_req_callback_data(subreq,
3338
status = dcerpc_binding_handle_call_recv(subreq);
3339
if (!NT_STATUS_IS_OK(status)) {
3340
tevent_req_nterror(req, status);
3344
tevent_req_done(req);
3347
NTSTATUS dcerpc_eventlog6_EvtRpcCancel_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
3349
struct dcerpc_eventlog6_EvtRpcCancel_r_state *state =
3350
tevent_req_data(req,
3351
struct dcerpc_eventlog6_EvtRpcCancel_r_state);
3354
if (tevent_req_is_nterror(req, &status)) {
3355
tevent_req_received(req);
3359
talloc_steal(mem_ctx, state->out_mem_ctx);
3361
tevent_req_received(req);
3362
return NT_STATUS_OK;
3365
NTSTATUS dcerpc_eventlog6_EvtRpcCancel_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcCancel *r)
3369
status = dcerpc_binding_handle_call(h,
3370
NULL, &ndr_table_eventlog6,
3371
NDR_EVENTLOG6_EVTRPCCANCEL, mem_ctx, r);
3376
struct dcerpc_eventlog6_EvtRpcCancel_state {
3377
struct eventlog6_EvtRpcCancel orig;
3378
struct eventlog6_EvtRpcCancel tmp;
3379
TALLOC_CTX *out_mem_ctx;
3382
static void dcerpc_eventlog6_EvtRpcCancel_done(struct tevent_req *subreq);
3384
struct tevent_req *dcerpc_eventlog6_EvtRpcCancel_send(TALLOC_CTX *mem_ctx,
3385
struct tevent_context *ev,
3386
struct dcerpc_binding_handle *h,
3387
struct policy_handle *_handle /* [in] [ref] */)
3389
struct tevent_req *req;
3390
struct dcerpc_eventlog6_EvtRpcCancel_state *state;
3391
struct tevent_req *subreq;
3393
req = tevent_req_create(mem_ctx, &state,
3394
struct dcerpc_eventlog6_EvtRpcCancel_state);
3398
state->out_mem_ctx = NULL;
3401
state->orig.in.handle = _handle;
3403
/* Out parameters */
3406
ZERO_STRUCT(state->orig.out.result);
3408
/* make a temporary copy, that we pass to the dispatch function */
3409
state->tmp = state->orig;
3411
subreq = dcerpc_eventlog6_EvtRpcCancel_r_send(state, ev, h, &state->tmp);
3412
if (tevent_req_nomem(subreq, req)) {
3413
return tevent_req_post(req, ev);
3415
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcCancel_done, req);
3419
static void dcerpc_eventlog6_EvtRpcCancel_done(struct tevent_req *subreq)
3421
struct tevent_req *req = tevent_req_callback_data(
3422
subreq, struct tevent_req);
3423
struct dcerpc_eventlog6_EvtRpcCancel_state *state = tevent_req_data(
3424
req, struct dcerpc_eventlog6_EvtRpcCancel_state);
3426
TALLOC_CTX *mem_ctx;
3428
if (state->out_mem_ctx) {
3429
mem_ctx = state->out_mem_ctx;
3434
status = dcerpc_eventlog6_EvtRpcCancel_r_recv(subreq, mem_ctx);
3435
TALLOC_FREE(subreq);
3436
if (!NT_STATUS_IS_OK(status)) {
3437
tevent_req_nterror(req, status);
3441
/* Copy out parameters */
3444
state->orig.out.result = state->tmp.out.result;
3446
/* Reset temporary structure */
3447
ZERO_STRUCT(state->tmp);
3449
tevent_req_done(req);
3452
NTSTATUS dcerpc_eventlog6_EvtRpcCancel_recv(struct tevent_req *req,
3453
TALLOC_CTX *mem_ctx,
3456
struct dcerpc_eventlog6_EvtRpcCancel_state *state = tevent_req_data(
3457
req, struct dcerpc_eventlog6_EvtRpcCancel_state);
3460
if (tevent_req_is_nterror(req, &status)) {
3461
tevent_req_received(req);
3465
/* Steal possible out parameters to the callers context */
3466
talloc_steal(mem_ctx, state->out_mem_ctx);
3469
*result = state->orig.out.result;
3471
tevent_req_received(req);
3472
return NT_STATUS_OK;
3475
NTSTATUS dcerpc_eventlog6_EvtRpcCancel(struct dcerpc_binding_handle *h,
3476
TALLOC_CTX *mem_ctx,
3477
struct policy_handle *_handle /* [in] [ref] */,
3480
struct eventlog6_EvtRpcCancel r;
3484
r.in.handle = _handle;
3486
status = dcerpc_eventlog6_EvtRpcCancel_r(h, mem_ctx, &r);
3487
if (!NT_STATUS_IS_OK(status)) {
3491
/* Return variables */
3494
*result = r.out.result;
3496
return NT_STATUS_OK;
3499
struct dcerpc_eventlog6_EvtRpcAssertConfig_r_state {
3500
TALLOC_CTX *out_mem_ctx;
3503
static void dcerpc_eventlog6_EvtRpcAssertConfig_r_done(struct tevent_req *subreq);
3505
struct tevent_req *dcerpc_eventlog6_EvtRpcAssertConfig_r_send(TALLOC_CTX *mem_ctx,
3506
struct tevent_context *ev,
3507
struct dcerpc_binding_handle *h,
3508
struct eventlog6_EvtRpcAssertConfig *r)
3510
struct tevent_req *req;
3511
struct dcerpc_eventlog6_EvtRpcAssertConfig_r_state *state;
3512
struct tevent_req *subreq;
3514
req = tevent_req_create(mem_ctx, &state,
3515
struct dcerpc_eventlog6_EvtRpcAssertConfig_r_state);
3520
state->out_mem_ctx = NULL;
3522
subreq = dcerpc_binding_handle_call_send(state, ev, h,
3523
NULL, &ndr_table_eventlog6,
3524
NDR_EVENTLOG6_EVTRPCASSERTCONFIG, state, r);
3525
if (tevent_req_nomem(subreq, req)) {
3526
return tevent_req_post(req, ev);
3528
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcAssertConfig_r_done, req);
3533
static void dcerpc_eventlog6_EvtRpcAssertConfig_r_done(struct tevent_req *subreq)
3535
struct tevent_req *req =
3536
tevent_req_callback_data(subreq,
3540
status = dcerpc_binding_handle_call_recv(subreq);
3541
if (!NT_STATUS_IS_OK(status)) {
3542
tevent_req_nterror(req, status);
3546
tevent_req_done(req);
3549
NTSTATUS dcerpc_eventlog6_EvtRpcAssertConfig_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
3551
struct dcerpc_eventlog6_EvtRpcAssertConfig_r_state *state =
3552
tevent_req_data(req,
3553
struct dcerpc_eventlog6_EvtRpcAssertConfig_r_state);
3556
if (tevent_req_is_nterror(req, &status)) {
3557
tevent_req_received(req);
3561
talloc_steal(mem_ctx, state->out_mem_ctx);
3563
tevent_req_received(req);
3564
return NT_STATUS_OK;
3567
NTSTATUS dcerpc_eventlog6_EvtRpcAssertConfig_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcAssertConfig *r)
3571
status = dcerpc_binding_handle_call(h,
3572
NULL, &ndr_table_eventlog6,
3573
NDR_EVENTLOG6_EVTRPCASSERTCONFIG, mem_ctx, r);
3578
struct dcerpc_eventlog6_EvtRpcAssertConfig_state {
3579
struct eventlog6_EvtRpcAssertConfig orig;
3580
struct eventlog6_EvtRpcAssertConfig tmp;
3581
TALLOC_CTX *out_mem_ctx;
3584
static void dcerpc_eventlog6_EvtRpcAssertConfig_done(struct tevent_req *subreq);
3586
struct tevent_req *dcerpc_eventlog6_EvtRpcAssertConfig_send(TALLOC_CTX *mem_ctx,
3587
struct tevent_context *ev,
3588
struct dcerpc_binding_handle *h,
3589
const char *_path /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
3590
uint32_t _flags /* [in] */)
3592
struct tevent_req *req;
3593
struct dcerpc_eventlog6_EvtRpcAssertConfig_state *state;
3594
struct tevent_req *subreq;
3596
req = tevent_req_create(mem_ctx, &state,
3597
struct dcerpc_eventlog6_EvtRpcAssertConfig_state);
3601
state->out_mem_ctx = NULL;
3604
state->orig.in.path = _path;
3605
state->orig.in.flags = _flags;
3607
/* Out parameters */
3610
ZERO_STRUCT(state->orig.out.result);
3612
/* make a temporary copy, that we pass to the dispatch function */
3613
state->tmp = state->orig;
3615
subreq = dcerpc_eventlog6_EvtRpcAssertConfig_r_send(state, ev, h, &state->tmp);
3616
if (tevent_req_nomem(subreq, req)) {
3617
return tevent_req_post(req, ev);
3619
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcAssertConfig_done, req);
3623
static void dcerpc_eventlog6_EvtRpcAssertConfig_done(struct tevent_req *subreq)
3625
struct tevent_req *req = tevent_req_callback_data(
3626
subreq, struct tevent_req);
3627
struct dcerpc_eventlog6_EvtRpcAssertConfig_state *state = tevent_req_data(
3628
req, struct dcerpc_eventlog6_EvtRpcAssertConfig_state);
3630
TALLOC_CTX *mem_ctx;
3632
if (state->out_mem_ctx) {
3633
mem_ctx = state->out_mem_ctx;
3638
status = dcerpc_eventlog6_EvtRpcAssertConfig_r_recv(subreq, mem_ctx);
3639
TALLOC_FREE(subreq);
3640
if (!NT_STATUS_IS_OK(status)) {
3641
tevent_req_nterror(req, status);
3645
/* Copy out parameters */
3648
state->orig.out.result = state->tmp.out.result;
3650
/* Reset temporary structure */
3651
ZERO_STRUCT(state->tmp);
3653
tevent_req_done(req);
3656
NTSTATUS dcerpc_eventlog6_EvtRpcAssertConfig_recv(struct tevent_req *req,
3657
TALLOC_CTX *mem_ctx,
3660
struct dcerpc_eventlog6_EvtRpcAssertConfig_state *state = tevent_req_data(
3661
req, struct dcerpc_eventlog6_EvtRpcAssertConfig_state);
3664
if (tevent_req_is_nterror(req, &status)) {
3665
tevent_req_received(req);
3669
/* Steal possible out parameters to the callers context */
3670
talloc_steal(mem_ctx, state->out_mem_ctx);
3673
*result = state->orig.out.result;
3675
tevent_req_received(req);
3676
return NT_STATUS_OK;
3679
NTSTATUS dcerpc_eventlog6_EvtRpcAssertConfig(struct dcerpc_binding_handle *h,
3680
TALLOC_CTX *mem_ctx,
3681
const char *_path /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
3682
uint32_t _flags /* [in] */,
3685
struct eventlog6_EvtRpcAssertConfig r;
3690
r.in.flags = _flags;
3692
status = dcerpc_eventlog6_EvtRpcAssertConfig_r(h, mem_ctx, &r);
3693
if (!NT_STATUS_IS_OK(status)) {
3697
/* Return variables */
3700
*result = r.out.result;
3702
return NT_STATUS_OK;
3705
struct dcerpc_eventlog6_EvtRpcRetractConfig_r_state {
3706
TALLOC_CTX *out_mem_ctx;
3709
static void dcerpc_eventlog6_EvtRpcRetractConfig_r_done(struct tevent_req *subreq);
3711
struct tevent_req *dcerpc_eventlog6_EvtRpcRetractConfig_r_send(TALLOC_CTX *mem_ctx,
3712
struct tevent_context *ev,
3713
struct dcerpc_binding_handle *h,
3714
struct eventlog6_EvtRpcRetractConfig *r)
3716
struct tevent_req *req;
3717
struct dcerpc_eventlog6_EvtRpcRetractConfig_r_state *state;
3718
struct tevent_req *subreq;
3720
req = tevent_req_create(mem_ctx, &state,
3721
struct dcerpc_eventlog6_EvtRpcRetractConfig_r_state);
3726
state->out_mem_ctx = NULL;
3728
subreq = dcerpc_binding_handle_call_send(state, ev, h,
3729
NULL, &ndr_table_eventlog6,
3730
NDR_EVENTLOG6_EVTRPCRETRACTCONFIG, state, r);
3731
if (tevent_req_nomem(subreq, req)) {
3732
return tevent_req_post(req, ev);
3734
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRetractConfig_r_done, req);
3739
static void dcerpc_eventlog6_EvtRpcRetractConfig_r_done(struct tevent_req *subreq)
3741
struct tevent_req *req =
3742
tevent_req_callback_data(subreq,
3746
status = dcerpc_binding_handle_call_recv(subreq);
3747
if (!NT_STATUS_IS_OK(status)) {
3748
tevent_req_nterror(req, status);
3752
tevent_req_done(req);
3755
NTSTATUS dcerpc_eventlog6_EvtRpcRetractConfig_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
3757
struct dcerpc_eventlog6_EvtRpcRetractConfig_r_state *state =
3758
tevent_req_data(req,
3759
struct dcerpc_eventlog6_EvtRpcRetractConfig_r_state);
3762
if (tevent_req_is_nterror(req, &status)) {
3763
tevent_req_received(req);
3767
talloc_steal(mem_ctx, state->out_mem_ctx);
3769
tevent_req_received(req);
3770
return NT_STATUS_OK;
3773
NTSTATUS dcerpc_eventlog6_EvtRpcRetractConfig_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRetractConfig *r)
3777
status = dcerpc_binding_handle_call(h,
3778
NULL, &ndr_table_eventlog6,
3779
NDR_EVENTLOG6_EVTRPCRETRACTCONFIG, mem_ctx, r);
3784
struct dcerpc_eventlog6_EvtRpcRetractConfig_state {
3785
struct eventlog6_EvtRpcRetractConfig orig;
3786
struct eventlog6_EvtRpcRetractConfig tmp;
3787
TALLOC_CTX *out_mem_ctx;
3790
static void dcerpc_eventlog6_EvtRpcRetractConfig_done(struct tevent_req *subreq);
3792
struct tevent_req *dcerpc_eventlog6_EvtRpcRetractConfig_send(TALLOC_CTX *mem_ctx,
3793
struct tevent_context *ev,
3794
struct dcerpc_binding_handle *h,
3795
const char *_path /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
3796
uint32_t _flags /* [in] */)
3798
struct tevent_req *req;
3799
struct dcerpc_eventlog6_EvtRpcRetractConfig_state *state;
3800
struct tevent_req *subreq;
3802
req = tevent_req_create(mem_ctx, &state,
3803
struct dcerpc_eventlog6_EvtRpcRetractConfig_state);
3807
state->out_mem_ctx = NULL;
3810
state->orig.in.path = _path;
3811
state->orig.in.flags = _flags;
3813
/* Out parameters */
3816
ZERO_STRUCT(state->orig.out.result);
3818
/* make a temporary copy, that we pass to the dispatch function */
3819
state->tmp = state->orig;
3821
subreq = dcerpc_eventlog6_EvtRpcRetractConfig_r_send(state, ev, h, &state->tmp);
3822
if (tevent_req_nomem(subreq, req)) {
3823
return tevent_req_post(req, ev);
3825
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcRetractConfig_done, req);
3829
static void dcerpc_eventlog6_EvtRpcRetractConfig_done(struct tevent_req *subreq)
3831
struct tevent_req *req = tevent_req_callback_data(
3832
subreq, struct tevent_req);
3833
struct dcerpc_eventlog6_EvtRpcRetractConfig_state *state = tevent_req_data(
3834
req, struct dcerpc_eventlog6_EvtRpcRetractConfig_state);
3836
TALLOC_CTX *mem_ctx;
3838
if (state->out_mem_ctx) {
3839
mem_ctx = state->out_mem_ctx;
3844
status = dcerpc_eventlog6_EvtRpcRetractConfig_r_recv(subreq, mem_ctx);
3845
TALLOC_FREE(subreq);
3846
if (!NT_STATUS_IS_OK(status)) {
3847
tevent_req_nterror(req, status);
3851
/* Copy out parameters */
3854
state->orig.out.result = state->tmp.out.result;
3856
/* Reset temporary structure */
3857
ZERO_STRUCT(state->tmp);
3859
tevent_req_done(req);
3862
NTSTATUS dcerpc_eventlog6_EvtRpcRetractConfig_recv(struct tevent_req *req,
3863
TALLOC_CTX *mem_ctx,
3866
struct dcerpc_eventlog6_EvtRpcRetractConfig_state *state = tevent_req_data(
3867
req, struct dcerpc_eventlog6_EvtRpcRetractConfig_state);
3870
if (tevent_req_is_nterror(req, &status)) {
3871
tevent_req_received(req);
3875
/* Steal possible out parameters to the callers context */
3876
talloc_steal(mem_ctx, state->out_mem_ctx);
3879
*result = state->orig.out.result;
3881
tevent_req_received(req);
3882
return NT_STATUS_OK;
3885
NTSTATUS dcerpc_eventlog6_EvtRpcRetractConfig(struct dcerpc_binding_handle *h,
3886
TALLOC_CTX *mem_ctx,
3887
const char *_path /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
3888
uint32_t _flags /* [in] */,
3891
struct eventlog6_EvtRpcRetractConfig r;
3896
r.in.flags = _flags;
3898
status = dcerpc_eventlog6_EvtRpcRetractConfig_r(h, mem_ctx, &r);
3899
if (!NT_STATUS_IS_OK(status)) {
3903
/* Return variables */
3906
*result = r.out.result;
3908
return NT_STATUS_OK;
3911
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_r_state {
3912
TALLOC_CTX *out_mem_ctx;
3915
static void dcerpc_eventlog6_EvtRpcOpenLogHandle_r_done(struct tevent_req *subreq);
3917
struct tevent_req *dcerpc_eventlog6_EvtRpcOpenLogHandle_r_send(TALLOC_CTX *mem_ctx,
3918
struct tevent_context *ev,
3919
struct dcerpc_binding_handle *h,
3920
struct eventlog6_EvtRpcOpenLogHandle *r)
3922
struct tevent_req *req;
3923
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_r_state *state;
3924
struct tevent_req *subreq;
3926
req = tevent_req_create(mem_ctx, &state,
3927
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_r_state);
3932
state->out_mem_ctx = talloc_new(state);
3933
if (tevent_req_nomem(state->out_mem_ctx, req)) {
3934
return tevent_req_post(req, ev);
3937
subreq = dcerpc_binding_handle_call_send(state, ev, h,
3938
NULL, &ndr_table_eventlog6,
3939
NDR_EVENTLOG6_EVTRPCOPENLOGHANDLE, state->out_mem_ctx, r);
3940
if (tevent_req_nomem(subreq, req)) {
3941
return tevent_req_post(req, ev);
3943
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcOpenLogHandle_r_done, req);
3948
static void dcerpc_eventlog6_EvtRpcOpenLogHandle_r_done(struct tevent_req *subreq)
3950
struct tevent_req *req =
3951
tevent_req_callback_data(subreq,
3955
status = dcerpc_binding_handle_call_recv(subreq);
3956
if (!NT_STATUS_IS_OK(status)) {
3957
tevent_req_nterror(req, status);
3961
tevent_req_done(req);
3964
NTSTATUS dcerpc_eventlog6_EvtRpcOpenLogHandle_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
3966
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_r_state *state =
3967
tevent_req_data(req,
3968
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_r_state);
3971
if (tevent_req_is_nterror(req, &status)) {
3972
tevent_req_received(req);
3976
talloc_steal(mem_ctx, state->out_mem_ctx);
3978
tevent_req_received(req);
3979
return NT_STATUS_OK;
3982
NTSTATUS dcerpc_eventlog6_EvtRpcOpenLogHandle_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcOpenLogHandle *r)
3986
status = dcerpc_binding_handle_call(h,
3987
NULL, &ndr_table_eventlog6,
3988
NDR_EVENTLOG6_EVTRPCOPENLOGHANDLE, mem_ctx, r);
3993
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state {
3994
struct eventlog6_EvtRpcOpenLogHandle orig;
3995
struct eventlog6_EvtRpcOpenLogHandle tmp;
3996
TALLOC_CTX *out_mem_ctx;
3999
static void dcerpc_eventlog6_EvtRpcOpenLogHandle_done(struct tevent_req *subreq);
4001
struct tevent_req *dcerpc_eventlog6_EvtRpcOpenLogHandle_send(TALLOC_CTX *mem_ctx,
4002
struct tevent_context *ev,
4003
struct dcerpc_binding_handle *h,
4004
const char *_channel /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
4005
uint32_t _flags /* [in] */,
4006
struct policy_handle *_handle /* [out] [ref] */,
4007
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
4009
struct tevent_req *req;
4010
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state *state;
4011
struct tevent_req *subreq;
4013
req = tevent_req_create(mem_ctx, &state,
4014
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state);
4018
state->out_mem_ctx = NULL;
4021
state->orig.in.channel = _channel;
4022
state->orig.in.flags = _flags;
4024
/* Out parameters */
4025
state->orig.out.handle = _handle;
4026
state->orig.out.error = _error;
4029
ZERO_STRUCT(state->orig.out.result);
4031
state->out_mem_ctx = talloc_named_const(state, 0,
4032
"dcerpc_eventlog6_EvtRpcOpenLogHandle_out_memory");
4033
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4034
return tevent_req_post(req, ev);
4037
/* make a temporary copy, that we pass to the dispatch function */
4038
state->tmp = state->orig;
4040
subreq = dcerpc_eventlog6_EvtRpcOpenLogHandle_r_send(state, ev, h, &state->tmp);
4041
if (tevent_req_nomem(subreq, req)) {
4042
return tevent_req_post(req, ev);
4044
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcOpenLogHandle_done, req);
4048
static void dcerpc_eventlog6_EvtRpcOpenLogHandle_done(struct tevent_req *subreq)
4050
struct tevent_req *req = tevent_req_callback_data(
4051
subreq, struct tevent_req);
4052
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state *state = tevent_req_data(
4053
req, struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state);
4055
TALLOC_CTX *mem_ctx;
4057
if (state->out_mem_ctx) {
4058
mem_ctx = state->out_mem_ctx;
4063
status = dcerpc_eventlog6_EvtRpcOpenLogHandle_r_recv(subreq, mem_ctx);
4064
TALLOC_FREE(subreq);
4065
if (!NT_STATUS_IS_OK(status)) {
4066
tevent_req_nterror(req, status);
4070
/* Copy out parameters */
4071
*state->orig.out.handle = *state->tmp.out.handle;
4072
*state->orig.out.error = *state->tmp.out.error;
4075
state->orig.out.result = state->tmp.out.result;
4077
/* Reset temporary structure */
4078
ZERO_STRUCT(state->tmp);
4080
tevent_req_done(req);
4083
NTSTATUS dcerpc_eventlog6_EvtRpcOpenLogHandle_recv(struct tevent_req *req,
4084
TALLOC_CTX *mem_ctx,
4087
struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state *state = tevent_req_data(
4088
req, struct dcerpc_eventlog6_EvtRpcOpenLogHandle_state);
4091
if (tevent_req_is_nterror(req, &status)) {
4092
tevent_req_received(req);
4096
/* Steal possible out parameters to the callers context */
4097
talloc_steal(mem_ctx, state->out_mem_ctx);
4100
*result = state->orig.out.result;
4102
tevent_req_received(req);
4103
return NT_STATUS_OK;
4106
NTSTATUS dcerpc_eventlog6_EvtRpcOpenLogHandle(struct dcerpc_binding_handle *h,
4107
TALLOC_CTX *mem_ctx,
4108
const char *_channel /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
4109
uint32_t _flags /* [in] */,
4110
struct policy_handle *_handle /* [out] [ref] */,
4111
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
4114
struct eventlog6_EvtRpcOpenLogHandle r;
4118
r.in.channel = _channel;
4119
r.in.flags = _flags;
4121
status = dcerpc_eventlog6_EvtRpcOpenLogHandle_r(h, mem_ctx, &r);
4122
if (!NT_STATUS_IS_OK(status)) {
4126
/* Return variables */
4127
*_handle = *r.out.handle;
4128
*_error = *r.out.error;
4131
*result = r.out.result;
4133
return NT_STATUS_OK;
4136
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_state {
4137
TALLOC_CTX *out_mem_ctx;
4140
static void dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_done(struct tevent_req *subreq);
4142
struct tevent_req *dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_send(TALLOC_CTX *mem_ctx,
4143
struct tevent_context *ev,
4144
struct dcerpc_binding_handle *h,
4145
struct eventlog6_EvtRpcGetLogFileInfo *r)
4147
struct tevent_req *req;
4148
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_state *state;
4149
struct tevent_req *subreq;
4151
req = tevent_req_create(mem_ctx, &state,
4152
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_state);
4157
state->out_mem_ctx = talloc_new(state);
4158
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4159
return tevent_req_post(req, ev);
4162
subreq = dcerpc_binding_handle_call_send(state, ev, h,
4163
NULL, &ndr_table_eventlog6,
4164
NDR_EVENTLOG6_EVTRPCGETLOGFILEINFO, state->out_mem_ctx, r);
4165
if (tevent_req_nomem(subreq, req)) {
4166
return tevent_req_post(req, ev);
4168
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_done, req);
4173
static void dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_done(struct tevent_req *subreq)
4175
struct tevent_req *req =
4176
tevent_req_callback_data(subreq,
4180
status = dcerpc_binding_handle_call_recv(subreq);
4181
if (!NT_STATUS_IS_OK(status)) {
4182
tevent_req_nterror(req, status);
4186
tevent_req_done(req);
4189
NTSTATUS dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
4191
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_state *state =
4192
tevent_req_data(req,
4193
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_state);
4196
if (tevent_req_is_nterror(req, &status)) {
4197
tevent_req_received(req);
4201
talloc_steal(mem_ctx, state->out_mem_ctx);
4203
tevent_req_received(req);
4204
return NT_STATUS_OK;
4207
NTSTATUS dcerpc_eventlog6_EvtRpcGetLogFileInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetLogFileInfo *r)
4211
status = dcerpc_binding_handle_call(h,
4212
NULL, &ndr_table_eventlog6,
4213
NDR_EVENTLOG6_EVTRPCGETLOGFILEINFO, mem_ctx, r);
4218
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state {
4219
struct eventlog6_EvtRpcGetLogFileInfo orig;
4220
struct eventlog6_EvtRpcGetLogFileInfo tmp;
4221
TALLOC_CTX *out_mem_ctx;
4224
static void dcerpc_eventlog6_EvtRpcGetLogFileInfo_done(struct tevent_req *subreq);
4226
struct tevent_req *dcerpc_eventlog6_EvtRpcGetLogFileInfo_send(TALLOC_CTX *mem_ctx,
4227
struct tevent_context *ev,
4228
struct dcerpc_binding_handle *h,
4229
struct policy_handle *_logHandle /* [in] [ref] */,
4230
uint32_t _propertyId /* [in] */,
4231
uint32_t _propertyValueBufferSize /* [in] [range(0,MAX_RPC_PROPERTY_BUFFER_SIZE)] */,
4232
uint8_t *_propertyValueBuffer /* [out] [ref,size_is(propertyValueBufferSize)] */,
4233
uint32_t *_propertyValueBufferLength /* [out] [ref] */)
4235
struct tevent_req *req;
4236
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state *state;
4237
struct tevent_req *subreq;
4239
req = tevent_req_create(mem_ctx, &state,
4240
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state);
4244
state->out_mem_ctx = NULL;
4247
state->orig.in.logHandle = _logHandle;
4248
state->orig.in.propertyId = _propertyId;
4249
state->orig.in.propertyValueBufferSize = _propertyValueBufferSize;
4251
/* Out parameters */
4252
state->orig.out.propertyValueBuffer = _propertyValueBuffer;
4253
state->orig.out.propertyValueBufferLength = _propertyValueBufferLength;
4256
ZERO_STRUCT(state->orig.out.result);
4258
state->out_mem_ctx = talloc_named_const(state, 0,
4259
"dcerpc_eventlog6_EvtRpcGetLogFileInfo_out_memory");
4260
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4261
return tevent_req_post(req, ev);
4264
/* make a temporary copy, that we pass to the dispatch function */
4265
state->tmp = state->orig;
4267
subreq = dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_send(state, ev, h, &state->tmp);
4268
if (tevent_req_nomem(subreq, req)) {
4269
return tevent_req_post(req, ev);
4271
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetLogFileInfo_done, req);
4275
static void dcerpc_eventlog6_EvtRpcGetLogFileInfo_done(struct tevent_req *subreq)
4277
struct tevent_req *req = tevent_req_callback_data(
4278
subreq, struct tevent_req);
4279
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state *state = tevent_req_data(
4280
req, struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state);
4282
TALLOC_CTX *mem_ctx;
4284
if (state->out_mem_ctx) {
4285
mem_ctx = state->out_mem_ctx;
4290
status = dcerpc_eventlog6_EvtRpcGetLogFileInfo_r_recv(subreq, mem_ctx);
4291
TALLOC_FREE(subreq);
4292
if (!NT_STATUS_IS_OK(status)) {
4293
tevent_req_nterror(req, status);
4297
/* Copy out parameters */
4299
size_t _copy_len_propertyValueBuffer;
4300
_copy_len_propertyValueBuffer = state->tmp.in.propertyValueBufferSize;
4301
memcpy(state->orig.out.propertyValueBuffer, state->tmp.out.propertyValueBuffer, _copy_len_propertyValueBuffer * sizeof(*state->orig.out.propertyValueBuffer));
4303
*state->orig.out.propertyValueBufferLength = *state->tmp.out.propertyValueBufferLength;
4306
state->orig.out.result = state->tmp.out.result;
4308
/* Reset temporary structure */
4309
ZERO_STRUCT(state->tmp);
4311
tevent_req_done(req);
4314
NTSTATUS dcerpc_eventlog6_EvtRpcGetLogFileInfo_recv(struct tevent_req *req,
4315
TALLOC_CTX *mem_ctx,
4318
struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state *state = tevent_req_data(
4319
req, struct dcerpc_eventlog6_EvtRpcGetLogFileInfo_state);
4322
if (tevent_req_is_nterror(req, &status)) {
4323
tevent_req_received(req);
4327
/* Steal possible out parameters to the callers context */
4328
talloc_steal(mem_ctx, state->out_mem_ctx);
4331
*result = state->orig.out.result;
4333
tevent_req_received(req);
4334
return NT_STATUS_OK;
4337
NTSTATUS dcerpc_eventlog6_EvtRpcGetLogFileInfo(struct dcerpc_binding_handle *h,
4338
TALLOC_CTX *mem_ctx,
4339
struct policy_handle *_logHandle /* [in] [ref] */,
4340
uint32_t _propertyId /* [in] */,
4341
uint32_t _propertyValueBufferSize /* [in] [range(0,MAX_RPC_PROPERTY_BUFFER_SIZE)] */,
4342
uint8_t *_propertyValueBuffer /* [out] [ref,size_is(propertyValueBufferSize)] */,
4343
uint32_t *_propertyValueBufferLength /* [out] [ref] */,
4346
struct eventlog6_EvtRpcGetLogFileInfo r;
4350
r.in.logHandle = _logHandle;
4351
r.in.propertyId = _propertyId;
4352
r.in.propertyValueBufferSize = _propertyValueBufferSize;
4354
status = dcerpc_eventlog6_EvtRpcGetLogFileInfo_r(h, mem_ctx, &r);
4355
if (!NT_STATUS_IS_OK(status)) {
4359
/* Return variables */
4361
size_t _copy_len_propertyValueBuffer;
4362
_copy_len_propertyValueBuffer = r.in.propertyValueBufferSize;
4363
memcpy(_propertyValueBuffer, r.out.propertyValueBuffer, _copy_len_propertyValueBuffer * sizeof(*_propertyValueBuffer));
4365
*_propertyValueBufferLength = *r.out.propertyValueBufferLength;
4368
*result = r.out.result;
4370
return NT_STATUS_OK;
4373
struct dcerpc_eventlog6_EvtRpcGetChannelList_r_state {
4374
TALLOC_CTX *out_mem_ctx;
4377
static void dcerpc_eventlog6_EvtRpcGetChannelList_r_done(struct tevent_req *subreq);
4379
struct tevent_req *dcerpc_eventlog6_EvtRpcGetChannelList_r_send(TALLOC_CTX *mem_ctx,
4380
struct tevent_context *ev,
4381
struct dcerpc_binding_handle *h,
4382
struct eventlog6_EvtRpcGetChannelList *r)
4384
struct tevent_req *req;
4385
struct dcerpc_eventlog6_EvtRpcGetChannelList_r_state *state;
4386
struct tevent_req *subreq;
4388
req = tevent_req_create(mem_ctx, &state,
4389
struct dcerpc_eventlog6_EvtRpcGetChannelList_r_state);
4394
state->out_mem_ctx = talloc_new(state);
4395
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4396
return tevent_req_post(req, ev);
4399
subreq = dcerpc_binding_handle_call_send(state, ev, h,
4400
NULL, &ndr_table_eventlog6,
4401
NDR_EVENTLOG6_EVTRPCGETCHANNELLIST, state->out_mem_ctx, r);
4402
if (tevent_req_nomem(subreq, req)) {
4403
return tevent_req_post(req, ev);
4405
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetChannelList_r_done, req);
4410
static void dcerpc_eventlog6_EvtRpcGetChannelList_r_done(struct tevent_req *subreq)
4412
struct tevent_req *req =
4413
tevent_req_callback_data(subreq,
4417
status = dcerpc_binding_handle_call_recv(subreq);
4418
if (!NT_STATUS_IS_OK(status)) {
4419
tevent_req_nterror(req, status);
4423
tevent_req_done(req);
4426
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelList_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
4428
struct dcerpc_eventlog6_EvtRpcGetChannelList_r_state *state =
4429
tevent_req_data(req,
4430
struct dcerpc_eventlog6_EvtRpcGetChannelList_r_state);
4433
if (tevent_req_is_nterror(req, &status)) {
4434
tevent_req_received(req);
4438
talloc_steal(mem_ctx, state->out_mem_ctx);
4440
tevent_req_received(req);
4441
return NT_STATUS_OK;
4444
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelList_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetChannelList *r)
4448
status = dcerpc_binding_handle_call(h,
4449
NULL, &ndr_table_eventlog6,
4450
NDR_EVENTLOG6_EVTRPCGETCHANNELLIST, mem_ctx, r);
4455
struct dcerpc_eventlog6_EvtRpcGetChannelList_state {
4456
struct eventlog6_EvtRpcGetChannelList orig;
4457
struct eventlog6_EvtRpcGetChannelList tmp;
4458
TALLOC_CTX *out_mem_ctx;
4461
static void dcerpc_eventlog6_EvtRpcGetChannelList_done(struct tevent_req *subreq);
4463
struct tevent_req *dcerpc_eventlog6_EvtRpcGetChannelList_send(TALLOC_CTX *mem_ctx,
4464
struct tevent_context *ev,
4465
struct dcerpc_binding_handle *h,
4466
uint32_t _flags /* [in] */,
4467
uint32_t *_numChannelPaths /* [out] [ref] */,
4468
const char ***_channelPaths /* [out] [ref,range(0,MAX_RPC_CHANNEL_COUNT),charset(UTF16),size_is(,*numChannelPaths)] */)
4470
struct tevent_req *req;
4471
struct dcerpc_eventlog6_EvtRpcGetChannelList_state *state;
4472
struct tevent_req *subreq;
4474
req = tevent_req_create(mem_ctx, &state,
4475
struct dcerpc_eventlog6_EvtRpcGetChannelList_state);
4479
state->out_mem_ctx = NULL;
4482
state->orig.in.flags = _flags;
4484
/* Out parameters */
4485
state->orig.out.numChannelPaths = _numChannelPaths;
4486
state->orig.out.channelPaths = _channelPaths;
4489
ZERO_STRUCT(state->orig.out.result);
4491
state->out_mem_ctx = talloc_named_const(state, 0,
4492
"dcerpc_eventlog6_EvtRpcGetChannelList_out_memory");
4493
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4494
return tevent_req_post(req, ev);
4497
/* make a temporary copy, that we pass to the dispatch function */
4498
state->tmp = state->orig;
4500
subreq = dcerpc_eventlog6_EvtRpcGetChannelList_r_send(state, ev, h, &state->tmp);
4501
if (tevent_req_nomem(subreq, req)) {
4502
return tevent_req_post(req, ev);
4504
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetChannelList_done, req);
4508
static void dcerpc_eventlog6_EvtRpcGetChannelList_done(struct tevent_req *subreq)
4510
struct tevent_req *req = tevent_req_callback_data(
4511
subreq, struct tevent_req);
4512
struct dcerpc_eventlog6_EvtRpcGetChannelList_state *state = tevent_req_data(
4513
req, struct dcerpc_eventlog6_EvtRpcGetChannelList_state);
4515
TALLOC_CTX *mem_ctx;
4517
if (state->out_mem_ctx) {
4518
mem_ctx = state->out_mem_ctx;
4523
status = dcerpc_eventlog6_EvtRpcGetChannelList_r_recv(subreq, mem_ctx);
4524
TALLOC_FREE(subreq);
4525
if (!NT_STATUS_IS_OK(status)) {
4526
tevent_req_nterror(req, status);
4530
/* Copy out parameters */
4531
*state->orig.out.numChannelPaths = *state->tmp.out.numChannelPaths;
4532
*state->orig.out.channelPaths = *state->tmp.out.channelPaths;
4535
state->orig.out.result = state->tmp.out.result;
4537
/* Reset temporary structure */
4538
ZERO_STRUCT(state->tmp);
4540
tevent_req_done(req);
4543
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelList_recv(struct tevent_req *req,
4544
TALLOC_CTX *mem_ctx,
4547
struct dcerpc_eventlog6_EvtRpcGetChannelList_state *state = tevent_req_data(
4548
req, struct dcerpc_eventlog6_EvtRpcGetChannelList_state);
4551
if (tevent_req_is_nterror(req, &status)) {
4552
tevent_req_received(req);
4556
/* Steal possible out parameters to the callers context */
4557
talloc_steal(mem_ctx, state->out_mem_ctx);
4560
*result = state->orig.out.result;
4562
tevent_req_received(req);
4563
return NT_STATUS_OK;
4566
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelList(struct dcerpc_binding_handle *h,
4567
TALLOC_CTX *mem_ctx,
4568
uint32_t _flags /* [in] */,
4569
uint32_t *_numChannelPaths /* [out] [ref] */,
4570
const char ***_channelPaths /* [out] [ref,range(0,MAX_RPC_CHANNEL_COUNT),charset(UTF16),size_is(,*numChannelPaths)] */,
4573
struct eventlog6_EvtRpcGetChannelList r;
4577
r.in.flags = _flags;
4579
status = dcerpc_eventlog6_EvtRpcGetChannelList_r(h, mem_ctx, &r);
4580
if (!NT_STATUS_IS_OK(status)) {
4584
/* Return variables */
4585
*_numChannelPaths = *r.out.numChannelPaths;
4586
*_channelPaths = *r.out.channelPaths;
4589
*result = r.out.result;
4591
return NT_STATUS_OK;
4594
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_r_state {
4595
TALLOC_CTX *out_mem_ctx;
4598
static void dcerpc_eventlog6_EvtRpcGetChannelConfig_r_done(struct tevent_req *subreq);
4600
struct tevent_req *dcerpc_eventlog6_EvtRpcGetChannelConfig_r_send(TALLOC_CTX *mem_ctx,
4601
struct tevent_context *ev,
4602
struct dcerpc_binding_handle *h,
4603
struct eventlog6_EvtRpcGetChannelConfig *r)
4605
struct tevent_req *req;
4606
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_r_state *state;
4607
struct tevent_req *subreq;
4609
req = tevent_req_create(mem_ctx, &state,
4610
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_r_state);
4615
state->out_mem_ctx = talloc_new(state);
4616
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4617
return tevent_req_post(req, ev);
4620
subreq = dcerpc_binding_handle_call_send(state, ev, h,
4621
NULL, &ndr_table_eventlog6,
4622
NDR_EVENTLOG6_EVTRPCGETCHANNELCONFIG, state->out_mem_ctx, r);
4623
if (tevent_req_nomem(subreq, req)) {
4624
return tevent_req_post(req, ev);
4626
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetChannelConfig_r_done, req);
4631
static void dcerpc_eventlog6_EvtRpcGetChannelConfig_r_done(struct tevent_req *subreq)
4633
struct tevent_req *req =
4634
tevent_req_callback_data(subreq,
4638
status = dcerpc_binding_handle_call_recv(subreq);
4639
if (!NT_STATUS_IS_OK(status)) {
4640
tevent_req_nterror(req, status);
4644
tevent_req_done(req);
4647
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelConfig_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
4649
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_r_state *state =
4650
tevent_req_data(req,
4651
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_r_state);
4654
if (tevent_req_is_nterror(req, &status)) {
4655
tevent_req_received(req);
4659
talloc_steal(mem_ctx, state->out_mem_ctx);
4661
tevent_req_received(req);
4662
return NT_STATUS_OK;
4665
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelConfig_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetChannelConfig *r)
4669
status = dcerpc_binding_handle_call(h,
4670
NULL, &ndr_table_eventlog6,
4671
NDR_EVENTLOG6_EVTRPCGETCHANNELCONFIG, mem_ctx, r);
4676
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state {
4677
struct eventlog6_EvtRpcGetChannelConfig orig;
4678
struct eventlog6_EvtRpcGetChannelConfig tmp;
4679
TALLOC_CTX *out_mem_ctx;
4682
static void dcerpc_eventlog6_EvtRpcGetChannelConfig_done(struct tevent_req *subreq);
4684
struct tevent_req *dcerpc_eventlog6_EvtRpcGetChannelConfig_send(TALLOC_CTX *mem_ctx,
4685
struct tevent_context *ev,
4686
struct dcerpc_binding_handle *h,
4687
const char *_channelPath /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
4688
uint32_t _flags /* [in] */,
4689
struct eventlog6_EvtRpcVariantList *_props /* [out] [ref] */)
4691
struct tevent_req *req;
4692
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state *state;
4693
struct tevent_req *subreq;
4695
req = tevent_req_create(mem_ctx, &state,
4696
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state);
4700
state->out_mem_ctx = NULL;
4703
state->orig.in.channelPath = _channelPath;
4704
state->orig.in.flags = _flags;
4706
/* Out parameters */
4707
state->orig.out.props = _props;
4710
ZERO_STRUCT(state->orig.out.result);
4712
state->out_mem_ctx = talloc_named_const(state, 0,
4713
"dcerpc_eventlog6_EvtRpcGetChannelConfig_out_memory");
4714
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4715
return tevent_req_post(req, ev);
4718
/* make a temporary copy, that we pass to the dispatch function */
4719
state->tmp = state->orig;
4721
subreq = dcerpc_eventlog6_EvtRpcGetChannelConfig_r_send(state, ev, h, &state->tmp);
4722
if (tevent_req_nomem(subreq, req)) {
4723
return tevent_req_post(req, ev);
4725
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetChannelConfig_done, req);
4729
static void dcerpc_eventlog6_EvtRpcGetChannelConfig_done(struct tevent_req *subreq)
4731
struct tevent_req *req = tevent_req_callback_data(
4732
subreq, struct tevent_req);
4733
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state *state = tevent_req_data(
4734
req, struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state);
4736
TALLOC_CTX *mem_ctx;
4738
if (state->out_mem_ctx) {
4739
mem_ctx = state->out_mem_ctx;
4744
status = dcerpc_eventlog6_EvtRpcGetChannelConfig_r_recv(subreq, mem_ctx);
4745
TALLOC_FREE(subreq);
4746
if (!NT_STATUS_IS_OK(status)) {
4747
tevent_req_nterror(req, status);
4751
/* Copy out parameters */
4752
*state->orig.out.props = *state->tmp.out.props;
4755
state->orig.out.result = state->tmp.out.result;
4757
/* Reset temporary structure */
4758
ZERO_STRUCT(state->tmp);
4760
tevent_req_done(req);
4763
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelConfig_recv(struct tevent_req *req,
4764
TALLOC_CTX *mem_ctx,
4767
struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state *state = tevent_req_data(
4768
req, struct dcerpc_eventlog6_EvtRpcGetChannelConfig_state);
4771
if (tevent_req_is_nterror(req, &status)) {
4772
tevent_req_received(req);
4776
/* Steal possible out parameters to the callers context */
4777
talloc_steal(mem_ctx, state->out_mem_ctx);
4780
*result = state->orig.out.result;
4782
tevent_req_received(req);
4783
return NT_STATUS_OK;
4786
NTSTATUS dcerpc_eventlog6_EvtRpcGetChannelConfig(struct dcerpc_binding_handle *h,
4787
TALLOC_CTX *mem_ctx,
4788
const char *_channelPath /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
4789
uint32_t _flags /* [in] */,
4790
struct eventlog6_EvtRpcVariantList *_props /* [out] [ref] */,
4793
struct eventlog6_EvtRpcGetChannelConfig r;
4797
r.in.channelPath = _channelPath;
4798
r.in.flags = _flags;
4800
status = dcerpc_eventlog6_EvtRpcGetChannelConfig_r(h, mem_ctx, &r);
4801
if (!NT_STATUS_IS_OK(status)) {
4805
/* Return variables */
4806
*_props = *r.out.props;
4809
*result = r.out.result;
4811
return NT_STATUS_OK;
4814
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_r_state {
4815
TALLOC_CTX *out_mem_ctx;
4818
static void dcerpc_eventlog6_EvtRpcPutChannelConfig_r_done(struct tevent_req *subreq);
4820
struct tevent_req *dcerpc_eventlog6_EvtRpcPutChannelConfig_r_send(TALLOC_CTX *mem_ctx,
4821
struct tevent_context *ev,
4822
struct dcerpc_binding_handle *h,
4823
struct eventlog6_EvtRpcPutChannelConfig *r)
4825
struct tevent_req *req;
4826
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_r_state *state;
4827
struct tevent_req *subreq;
4829
req = tevent_req_create(mem_ctx, &state,
4830
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_r_state);
4835
state->out_mem_ctx = talloc_new(state);
4836
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4837
return tevent_req_post(req, ev);
4840
subreq = dcerpc_binding_handle_call_send(state, ev, h,
4841
NULL, &ndr_table_eventlog6,
4842
NDR_EVENTLOG6_EVTRPCPUTCHANNELCONFIG, state->out_mem_ctx, r);
4843
if (tevent_req_nomem(subreq, req)) {
4844
return tevent_req_post(req, ev);
4846
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcPutChannelConfig_r_done, req);
4851
static void dcerpc_eventlog6_EvtRpcPutChannelConfig_r_done(struct tevent_req *subreq)
4853
struct tevent_req *req =
4854
tevent_req_callback_data(subreq,
4858
status = dcerpc_binding_handle_call_recv(subreq);
4859
if (!NT_STATUS_IS_OK(status)) {
4860
tevent_req_nterror(req, status);
4864
tevent_req_done(req);
4867
NTSTATUS dcerpc_eventlog6_EvtRpcPutChannelConfig_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
4869
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_r_state *state =
4870
tevent_req_data(req,
4871
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_r_state);
4874
if (tevent_req_is_nterror(req, &status)) {
4875
tevent_req_received(req);
4879
talloc_steal(mem_ctx, state->out_mem_ctx);
4881
tevent_req_received(req);
4882
return NT_STATUS_OK;
4885
NTSTATUS dcerpc_eventlog6_EvtRpcPutChannelConfig_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcPutChannelConfig *r)
4889
status = dcerpc_binding_handle_call(h,
4890
NULL, &ndr_table_eventlog6,
4891
NDR_EVENTLOG6_EVTRPCPUTCHANNELCONFIG, mem_ctx, r);
4896
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state {
4897
struct eventlog6_EvtRpcPutChannelConfig orig;
4898
struct eventlog6_EvtRpcPutChannelConfig tmp;
4899
TALLOC_CTX *out_mem_ctx;
4902
static void dcerpc_eventlog6_EvtRpcPutChannelConfig_done(struct tevent_req *subreq);
4904
struct tevent_req *dcerpc_eventlog6_EvtRpcPutChannelConfig_send(TALLOC_CTX *mem_ctx,
4905
struct tevent_context *ev,
4906
struct dcerpc_binding_handle *h,
4907
const char *_channelPath /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
4908
uint32_t _flags /* [in] */,
4909
struct eventlog6_EvtRpcVariantList *_props /* [in] [ref] */,
4910
struct eventlog6_RpcInfo *_error /* [out] [ref] */)
4912
struct tevent_req *req;
4913
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state *state;
4914
struct tevent_req *subreq;
4916
req = tevent_req_create(mem_ctx, &state,
4917
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state);
4921
state->out_mem_ctx = NULL;
4924
state->orig.in.channelPath = _channelPath;
4925
state->orig.in.flags = _flags;
4926
state->orig.in.props = _props;
4928
/* Out parameters */
4929
state->orig.out.error = _error;
4932
ZERO_STRUCT(state->orig.out.result);
4934
state->out_mem_ctx = talloc_named_const(state, 0,
4935
"dcerpc_eventlog6_EvtRpcPutChannelConfig_out_memory");
4936
if (tevent_req_nomem(state->out_mem_ctx, req)) {
4937
return tevent_req_post(req, ev);
4940
/* make a temporary copy, that we pass to the dispatch function */
4941
state->tmp = state->orig;
4943
subreq = dcerpc_eventlog6_EvtRpcPutChannelConfig_r_send(state, ev, h, &state->tmp);
4944
if (tevent_req_nomem(subreq, req)) {
4945
return tevent_req_post(req, ev);
4947
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcPutChannelConfig_done, req);
4951
static void dcerpc_eventlog6_EvtRpcPutChannelConfig_done(struct tevent_req *subreq)
4953
struct tevent_req *req = tevent_req_callback_data(
4954
subreq, struct tevent_req);
4955
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state *state = tevent_req_data(
4956
req, struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state);
4958
TALLOC_CTX *mem_ctx;
4960
if (state->out_mem_ctx) {
4961
mem_ctx = state->out_mem_ctx;
4966
status = dcerpc_eventlog6_EvtRpcPutChannelConfig_r_recv(subreq, mem_ctx);
4967
TALLOC_FREE(subreq);
4968
if (!NT_STATUS_IS_OK(status)) {
4969
tevent_req_nterror(req, status);
4973
/* Copy out parameters */
4974
*state->orig.out.error = *state->tmp.out.error;
4977
state->orig.out.result = state->tmp.out.result;
4979
/* Reset temporary structure */
4980
ZERO_STRUCT(state->tmp);
4982
tevent_req_done(req);
4985
NTSTATUS dcerpc_eventlog6_EvtRpcPutChannelConfig_recv(struct tevent_req *req,
4986
TALLOC_CTX *mem_ctx,
4989
struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state *state = tevent_req_data(
4990
req, struct dcerpc_eventlog6_EvtRpcPutChannelConfig_state);
4993
if (tevent_req_is_nterror(req, &status)) {
4994
tevent_req_received(req);
4998
/* Steal possible out parameters to the callers context */
4999
talloc_steal(mem_ctx, state->out_mem_ctx);
5002
*result = state->orig.out.result;
5004
tevent_req_received(req);
5005
return NT_STATUS_OK;
5008
NTSTATUS dcerpc_eventlog6_EvtRpcPutChannelConfig(struct dcerpc_binding_handle *h,
5009
TALLOC_CTX *mem_ctx,
5010
const char *_channelPath /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
5011
uint32_t _flags /* [in] */,
5012
struct eventlog6_EvtRpcVariantList *_props /* [in] [ref] */,
5013
struct eventlog6_RpcInfo *_error /* [out] [ref] */,
5016
struct eventlog6_EvtRpcPutChannelConfig r;
5020
r.in.channelPath = _channelPath;
5021
r.in.flags = _flags;
5022
r.in.props = _props;
5024
status = dcerpc_eventlog6_EvtRpcPutChannelConfig_r(h, mem_ctx, &r);
5025
if (!NT_STATUS_IS_OK(status)) {
5029
/* Return variables */
5030
*_error = *r.out.error;
5033
*result = r.out.result;
5035
return NT_STATUS_OK;
5038
struct dcerpc_eventlog6_EvtRpcGetPublisherList_r_state {
5039
TALLOC_CTX *out_mem_ctx;
5042
static void dcerpc_eventlog6_EvtRpcGetPublisherList_r_done(struct tevent_req *subreq);
5044
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherList_r_send(TALLOC_CTX *mem_ctx,
5045
struct tevent_context *ev,
5046
struct dcerpc_binding_handle *h,
5047
struct eventlog6_EvtRpcGetPublisherList *r)
5049
struct tevent_req *req;
5050
struct dcerpc_eventlog6_EvtRpcGetPublisherList_r_state *state;
5051
struct tevent_req *subreq;
5053
req = tevent_req_create(mem_ctx, &state,
5054
struct dcerpc_eventlog6_EvtRpcGetPublisherList_r_state);
5059
state->out_mem_ctx = talloc_new(state);
5060
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5061
return tevent_req_post(req, ev);
5064
subreq = dcerpc_binding_handle_call_send(state, ev, h,
5065
NULL, &ndr_table_eventlog6,
5066
NDR_EVENTLOG6_EVTRPCGETPUBLISHERLIST, state->out_mem_ctx, r);
5067
if (tevent_req_nomem(subreq, req)) {
5068
return tevent_req_post(req, ev);
5070
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherList_r_done, req);
5075
static void dcerpc_eventlog6_EvtRpcGetPublisherList_r_done(struct tevent_req *subreq)
5077
struct tevent_req *req =
5078
tevent_req_callback_data(subreq,
5082
status = dcerpc_binding_handle_call_recv(subreq);
5083
if (!NT_STATUS_IS_OK(status)) {
5084
tevent_req_nterror(req, status);
5088
tevent_req_done(req);
5091
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherList_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
5093
struct dcerpc_eventlog6_EvtRpcGetPublisherList_r_state *state =
5094
tevent_req_data(req,
5095
struct dcerpc_eventlog6_EvtRpcGetPublisherList_r_state);
5098
if (tevent_req_is_nterror(req, &status)) {
5099
tevent_req_received(req);
5103
talloc_steal(mem_ctx, state->out_mem_ctx);
5105
tevent_req_received(req);
5106
return NT_STATUS_OK;
5109
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherList_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetPublisherList *r)
5113
status = dcerpc_binding_handle_call(h,
5114
NULL, &ndr_table_eventlog6,
5115
NDR_EVENTLOG6_EVTRPCGETPUBLISHERLIST, mem_ctx, r);
5120
struct dcerpc_eventlog6_EvtRpcGetPublisherList_state {
5121
struct eventlog6_EvtRpcGetPublisherList orig;
5122
struct eventlog6_EvtRpcGetPublisherList tmp;
5123
TALLOC_CTX *out_mem_ctx;
5126
static void dcerpc_eventlog6_EvtRpcGetPublisherList_done(struct tevent_req *subreq);
5128
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherList_send(TALLOC_CTX *mem_ctx,
5129
struct tevent_context *ev,
5130
struct dcerpc_binding_handle *h,
5131
uint32_t _flags /* [in] */,
5132
uint32_t *_numPublisherIds /* [out] [ref] */,
5133
const char ***_publisherIds /* [out] [ref,range(0,MAX_RPC_PUBLISHER_COUNT),charset(UTF16),size_is(,*numPublisherIds)] */)
5135
struct tevent_req *req;
5136
struct dcerpc_eventlog6_EvtRpcGetPublisherList_state *state;
5137
struct tevent_req *subreq;
5139
req = tevent_req_create(mem_ctx, &state,
5140
struct dcerpc_eventlog6_EvtRpcGetPublisherList_state);
5144
state->out_mem_ctx = NULL;
5147
state->orig.in.flags = _flags;
5149
/* Out parameters */
5150
state->orig.out.numPublisherIds = _numPublisherIds;
5151
state->orig.out.publisherIds = _publisherIds;
5154
ZERO_STRUCT(state->orig.out.result);
5156
state->out_mem_ctx = talloc_named_const(state, 0,
5157
"dcerpc_eventlog6_EvtRpcGetPublisherList_out_memory");
5158
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5159
return tevent_req_post(req, ev);
5162
/* make a temporary copy, that we pass to the dispatch function */
5163
state->tmp = state->orig;
5165
subreq = dcerpc_eventlog6_EvtRpcGetPublisherList_r_send(state, ev, h, &state->tmp);
5166
if (tevent_req_nomem(subreq, req)) {
5167
return tevent_req_post(req, ev);
5169
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherList_done, req);
5173
static void dcerpc_eventlog6_EvtRpcGetPublisherList_done(struct tevent_req *subreq)
5175
struct tevent_req *req = tevent_req_callback_data(
5176
subreq, struct tevent_req);
5177
struct dcerpc_eventlog6_EvtRpcGetPublisherList_state *state = tevent_req_data(
5178
req, struct dcerpc_eventlog6_EvtRpcGetPublisherList_state);
5180
TALLOC_CTX *mem_ctx;
5182
if (state->out_mem_ctx) {
5183
mem_ctx = state->out_mem_ctx;
5188
status = dcerpc_eventlog6_EvtRpcGetPublisherList_r_recv(subreq, mem_ctx);
5189
TALLOC_FREE(subreq);
5190
if (!NT_STATUS_IS_OK(status)) {
5191
tevent_req_nterror(req, status);
5195
/* Copy out parameters */
5196
*state->orig.out.numPublisherIds = *state->tmp.out.numPublisherIds;
5197
*state->orig.out.publisherIds = *state->tmp.out.publisherIds;
5200
state->orig.out.result = state->tmp.out.result;
5202
/* Reset temporary structure */
5203
ZERO_STRUCT(state->tmp);
5205
tevent_req_done(req);
5208
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherList_recv(struct tevent_req *req,
5209
TALLOC_CTX *mem_ctx,
5212
struct dcerpc_eventlog6_EvtRpcGetPublisherList_state *state = tevent_req_data(
5213
req, struct dcerpc_eventlog6_EvtRpcGetPublisherList_state);
5216
if (tevent_req_is_nterror(req, &status)) {
5217
tevent_req_received(req);
5221
/* Steal possible out parameters to the callers context */
5222
talloc_steal(mem_ctx, state->out_mem_ctx);
5225
*result = state->orig.out.result;
5227
tevent_req_received(req);
5228
return NT_STATUS_OK;
5231
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherList(struct dcerpc_binding_handle *h,
5232
TALLOC_CTX *mem_ctx,
5233
uint32_t _flags /* [in] */,
5234
uint32_t *_numPublisherIds /* [out] [ref] */,
5235
const char ***_publisherIds /* [out] [ref,range(0,MAX_RPC_PUBLISHER_COUNT),charset(UTF16),size_is(,*numPublisherIds)] */,
5238
struct eventlog6_EvtRpcGetPublisherList r;
5242
r.in.flags = _flags;
5244
status = dcerpc_eventlog6_EvtRpcGetPublisherList_r(h, mem_ctx, &r);
5245
if (!NT_STATUS_IS_OK(status)) {
5249
/* Return variables */
5250
*_numPublisherIds = *r.out.numPublisherIds;
5251
*_publisherIds = *r.out.publisherIds;
5254
*result = r.out.result;
5256
return NT_STATUS_OK;
5259
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_state {
5260
TALLOC_CTX *out_mem_ctx;
5263
static void dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_done(struct tevent_req *subreq);
5265
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_send(TALLOC_CTX *mem_ctx,
5266
struct tevent_context *ev,
5267
struct dcerpc_binding_handle *h,
5268
struct eventlog6_EvtRpcGetPublisherListForChannel *r)
5270
struct tevent_req *req;
5271
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_state *state;
5272
struct tevent_req *subreq;
5274
req = tevent_req_create(mem_ctx, &state,
5275
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_state);
5280
state->out_mem_ctx = talloc_new(state);
5281
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5282
return tevent_req_post(req, ev);
5285
subreq = dcerpc_binding_handle_call_send(state, ev, h,
5286
NULL, &ndr_table_eventlog6,
5287
NDR_EVENTLOG6_EVTRPCGETPUBLISHERLISTFORCHANNEL, state->out_mem_ctx, r);
5288
if (tevent_req_nomem(subreq, req)) {
5289
return tevent_req_post(req, ev);
5291
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_done, req);
5296
static void dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_done(struct tevent_req *subreq)
5298
struct tevent_req *req =
5299
tevent_req_callback_data(subreq,
5303
status = dcerpc_binding_handle_call_recv(subreq);
5304
if (!NT_STATUS_IS_OK(status)) {
5305
tevent_req_nterror(req, status);
5309
tevent_req_done(req);
5312
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
5314
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_state *state =
5315
tevent_req_data(req,
5316
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_state);
5319
if (tevent_req_is_nterror(req, &status)) {
5320
tevent_req_received(req);
5324
talloc_steal(mem_ctx, state->out_mem_ctx);
5326
tevent_req_received(req);
5327
return NT_STATUS_OK;
5330
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetPublisherListForChannel *r)
5334
status = dcerpc_binding_handle_call(h,
5335
NULL, &ndr_table_eventlog6,
5336
NDR_EVENTLOG6_EVTRPCGETPUBLISHERLISTFORCHANNEL, mem_ctx, r);
5341
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state {
5342
struct eventlog6_EvtRpcGetPublisherListForChannel orig;
5343
struct eventlog6_EvtRpcGetPublisherListForChannel tmp;
5344
TALLOC_CTX *out_mem_ctx;
5347
static void dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_done(struct tevent_req *subreq);
5349
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_send(TALLOC_CTX *mem_ctx,
5350
struct tevent_context *ev,
5351
struct dcerpc_binding_handle *h,
5352
uint16_t *_channelName /* [in] [ref] */,
5353
uint32_t _flags /* [in] */,
5354
uint32_t *_numPublisherIds /* [out] [ref] */,
5355
const char ***_publisherIds /* [out] [ref,range(0,MAX_RPC_PUBLISHER_COUNT),charset(UTF16),size_is(,*numPublisherIds)] */)
5357
struct tevent_req *req;
5358
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state *state;
5359
struct tevent_req *subreq;
5361
req = tevent_req_create(mem_ctx, &state,
5362
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state);
5366
state->out_mem_ctx = NULL;
5369
state->orig.in.channelName = _channelName;
5370
state->orig.in.flags = _flags;
5372
/* Out parameters */
5373
state->orig.out.numPublisherIds = _numPublisherIds;
5374
state->orig.out.publisherIds = _publisherIds;
5377
ZERO_STRUCT(state->orig.out.result);
5379
state->out_mem_ctx = talloc_named_const(state, 0,
5380
"dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_out_memory");
5381
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5382
return tevent_req_post(req, ev);
5385
/* make a temporary copy, that we pass to the dispatch function */
5386
state->tmp = state->orig;
5388
subreq = dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_send(state, ev, h, &state->tmp);
5389
if (tevent_req_nomem(subreq, req)) {
5390
return tevent_req_post(req, ev);
5392
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_done, req);
5396
static void dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_done(struct tevent_req *subreq)
5398
struct tevent_req *req = tevent_req_callback_data(
5399
subreq, struct tevent_req);
5400
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state *state = tevent_req_data(
5401
req, struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state);
5403
TALLOC_CTX *mem_ctx;
5405
if (state->out_mem_ctx) {
5406
mem_ctx = state->out_mem_ctx;
5411
status = dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r_recv(subreq, mem_ctx);
5412
TALLOC_FREE(subreq);
5413
if (!NT_STATUS_IS_OK(status)) {
5414
tevent_req_nterror(req, status);
5418
/* Copy out parameters */
5419
*state->orig.out.numPublisherIds = *state->tmp.out.numPublisherIds;
5420
*state->orig.out.publisherIds = *state->tmp.out.publisherIds;
5423
state->orig.out.result = state->tmp.out.result;
5425
/* Reset temporary structure */
5426
ZERO_STRUCT(state->tmp);
5428
tevent_req_done(req);
5431
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_recv(struct tevent_req *req,
5432
TALLOC_CTX *mem_ctx,
5435
struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state *state = tevent_req_data(
5436
req, struct dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_state);
5439
if (tevent_req_is_nterror(req, &status)) {
5440
tevent_req_received(req);
5444
/* Steal possible out parameters to the callers context */
5445
talloc_steal(mem_ctx, state->out_mem_ctx);
5448
*result = state->orig.out.result;
5450
tevent_req_received(req);
5451
return NT_STATUS_OK;
5454
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherListForChannel(struct dcerpc_binding_handle *h,
5455
TALLOC_CTX *mem_ctx,
5456
uint16_t *_channelName /* [in] [ref] */,
5457
uint32_t _flags /* [in] */,
5458
uint32_t *_numPublisherIds /* [out] [ref] */,
5459
const char ***_publisherIds /* [out] [ref,range(0,MAX_RPC_PUBLISHER_COUNT),charset(UTF16),size_is(,*numPublisherIds)] */,
5462
struct eventlog6_EvtRpcGetPublisherListForChannel r;
5466
r.in.channelName = _channelName;
5467
r.in.flags = _flags;
5469
status = dcerpc_eventlog6_EvtRpcGetPublisherListForChannel_r(h, mem_ctx, &r);
5470
if (!NT_STATUS_IS_OK(status)) {
5474
/* Return variables */
5475
*_numPublisherIds = *r.out.numPublisherIds;
5476
*_publisherIds = *r.out.publisherIds;
5479
*result = r.out.result;
5481
return NT_STATUS_OK;
5484
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_state {
5485
TALLOC_CTX *out_mem_ctx;
5488
static void dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_done(struct tevent_req *subreq);
5490
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_send(TALLOC_CTX *mem_ctx,
5491
struct tevent_context *ev,
5492
struct dcerpc_binding_handle *h,
5493
struct eventlog6_EvtRpcGetPublisherMetadata *r)
5495
struct tevent_req *req;
5496
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_state *state;
5497
struct tevent_req *subreq;
5499
req = tevent_req_create(mem_ctx, &state,
5500
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_state);
5505
state->out_mem_ctx = talloc_new(state);
5506
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5507
return tevent_req_post(req, ev);
5510
subreq = dcerpc_binding_handle_call_send(state, ev, h,
5511
NULL, &ndr_table_eventlog6,
5512
NDR_EVENTLOG6_EVTRPCGETPUBLISHERMETADATA, state->out_mem_ctx, r);
5513
if (tevent_req_nomem(subreq, req)) {
5514
return tevent_req_post(req, ev);
5516
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_done, req);
5521
static void dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_done(struct tevent_req *subreq)
5523
struct tevent_req *req =
5524
tevent_req_callback_data(subreq,
5528
status = dcerpc_binding_handle_call_recv(subreq);
5529
if (!NT_STATUS_IS_OK(status)) {
5530
tevent_req_nterror(req, status);
5534
tevent_req_done(req);
5537
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
5539
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_state *state =
5540
tevent_req_data(req,
5541
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_state);
5544
if (tevent_req_is_nterror(req, &status)) {
5545
tevent_req_received(req);
5549
talloc_steal(mem_ctx, state->out_mem_ctx);
5551
tevent_req_received(req);
5552
return NT_STATUS_OK;
5555
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetPublisherMetadata *r)
5559
status = dcerpc_binding_handle_call(h,
5560
NULL, &ndr_table_eventlog6,
5561
NDR_EVENTLOG6_EVTRPCGETPUBLISHERMETADATA, mem_ctx, r);
5566
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state {
5567
struct eventlog6_EvtRpcGetPublisherMetadata orig;
5568
struct eventlog6_EvtRpcGetPublisherMetadata tmp;
5569
TALLOC_CTX *out_mem_ctx;
5572
static void dcerpc_eventlog6_EvtRpcGetPublisherMetadata_done(struct tevent_req *subreq);
5574
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherMetadata_send(TALLOC_CTX *mem_ctx,
5575
struct tevent_context *ev,
5576
struct dcerpc_binding_handle *h,
5577
const char *_publisherId /* [in] [unique,range(0,MAX_RPC_PUBLISHER_ID_LENGTH),charset(UTF16)] */,
5578
const char *_logFilePath /* [in] [unique,range(0,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
5579
uint32_t _locale /* [in] */,
5580
uint32_t _flags /* [in] */,
5581
struct eventlog6_EvtRpcVariantList *_pubMetadataProps /* [out] [ref] */,
5582
struct policy_handle *_pubMetadata /* [out] [ref] */)
5584
struct tevent_req *req;
5585
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state *state;
5586
struct tevent_req *subreq;
5588
req = tevent_req_create(mem_ctx, &state,
5589
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state);
5593
state->out_mem_ctx = NULL;
5596
state->orig.in.publisherId = _publisherId;
5597
state->orig.in.logFilePath = _logFilePath;
5598
state->orig.in.locale = _locale;
5599
state->orig.in.flags = _flags;
5601
/* Out parameters */
5602
state->orig.out.pubMetadataProps = _pubMetadataProps;
5603
state->orig.out.pubMetadata = _pubMetadata;
5606
ZERO_STRUCT(state->orig.out.result);
5608
state->out_mem_ctx = talloc_named_const(state, 0,
5609
"dcerpc_eventlog6_EvtRpcGetPublisherMetadata_out_memory");
5610
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5611
return tevent_req_post(req, ev);
5614
/* make a temporary copy, that we pass to the dispatch function */
5615
state->tmp = state->orig;
5617
subreq = dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_send(state, ev, h, &state->tmp);
5618
if (tevent_req_nomem(subreq, req)) {
5619
return tevent_req_post(req, ev);
5621
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherMetadata_done, req);
5625
static void dcerpc_eventlog6_EvtRpcGetPublisherMetadata_done(struct tevent_req *subreq)
5627
struct tevent_req *req = tevent_req_callback_data(
5628
subreq, struct tevent_req);
5629
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state *state = tevent_req_data(
5630
req, struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state);
5632
TALLOC_CTX *mem_ctx;
5634
if (state->out_mem_ctx) {
5635
mem_ctx = state->out_mem_ctx;
5640
status = dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r_recv(subreq, mem_ctx);
5641
TALLOC_FREE(subreq);
5642
if (!NT_STATUS_IS_OK(status)) {
5643
tevent_req_nterror(req, status);
5647
/* Copy out parameters */
5648
*state->orig.out.pubMetadataProps = *state->tmp.out.pubMetadataProps;
5649
*state->orig.out.pubMetadata = *state->tmp.out.pubMetadata;
5652
state->orig.out.result = state->tmp.out.result;
5654
/* Reset temporary structure */
5655
ZERO_STRUCT(state->tmp);
5657
tevent_req_done(req);
5660
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherMetadata_recv(struct tevent_req *req,
5661
TALLOC_CTX *mem_ctx,
5664
struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state *state = tevent_req_data(
5665
req, struct dcerpc_eventlog6_EvtRpcGetPublisherMetadata_state);
5668
if (tevent_req_is_nterror(req, &status)) {
5669
tevent_req_received(req);
5673
/* Steal possible out parameters to the callers context */
5674
talloc_steal(mem_ctx, state->out_mem_ctx);
5677
*result = state->orig.out.result;
5679
tevent_req_received(req);
5680
return NT_STATUS_OK;
5683
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherMetadata(struct dcerpc_binding_handle *h,
5684
TALLOC_CTX *mem_ctx,
5685
const char *_publisherId /* [in] [unique,range(0,MAX_RPC_PUBLISHER_ID_LENGTH),charset(UTF16)] */,
5686
const char *_logFilePath /* [in] [unique,range(0,MAX_RPC_FILE_PATH_LENGTH),charset(UTF16)] */,
5687
uint32_t _locale /* [in] */,
5688
uint32_t _flags /* [in] */,
5689
struct eventlog6_EvtRpcVariantList *_pubMetadataProps /* [out] [ref] */,
5690
struct policy_handle *_pubMetadata /* [out] [ref] */,
5693
struct eventlog6_EvtRpcGetPublisherMetadata r;
5697
r.in.publisherId = _publisherId;
5698
r.in.logFilePath = _logFilePath;
5699
r.in.locale = _locale;
5700
r.in.flags = _flags;
5702
status = dcerpc_eventlog6_EvtRpcGetPublisherMetadata_r(h, mem_ctx, &r);
5703
if (!NT_STATUS_IS_OK(status)) {
5707
/* Return variables */
5708
*_pubMetadataProps = *r.out.pubMetadataProps;
5709
*_pubMetadata = *r.out.pubMetadata;
5712
*result = r.out.result;
5714
return NT_STATUS_OK;
5717
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_state {
5718
TALLOC_CTX *out_mem_ctx;
5721
static void dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_done(struct tevent_req *subreq);
5723
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_send(TALLOC_CTX *mem_ctx,
5724
struct tevent_context *ev,
5725
struct dcerpc_binding_handle *h,
5726
struct eventlog6_EvtRpcGetPublisherResourceMetadata *r)
5728
struct tevent_req *req;
5729
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_state *state;
5730
struct tevent_req *subreq;
5732
req = tevent_req_create(mem_ctx, &state,
5733
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_state);
5738
state->out_mem_ctx = talloc_new(state);
5739
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5740
return tevent_req_post(req, ev);
5743
subreq = dcerpc_binding_handle_call_send(state, ev, h,
5744
NULL, &ndr_table_eventlog6,
5745
NDR_EVENTLOG6_EVTRPCGETPUBLISHERRESOURCEMETADATA, state->out_mem_ctx, r);
5746
if (tevent_req_nomem(subreq, req)) {
5747
return tevent_req_post(req, ev);
5749
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_done, req);
5754
static void dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_done(struct tevent_req *subreq)
5756
struct tevent_req *req =
5757
tevent_req_callback_data(subreq,
5761
status = dcerpc_binding_handle_call_recv(subreq);
5762
if (!NT_STATUS_IS_OK(status)) {
5763
tevent_req_nterror(req, status);
5767
tevent_req_done(req);
5770
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
5772
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_state *state =
5773
tevent_req_data(req,
5774
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_state);
5777
if (tevent_req_is_nterror(req, &status)) {
5778
tevent_req_received(req);
5782
talloc_steal(mem_ctx, state->out_mem_ctx);
5784
tevent_req_received(req);
5785
return NT_STATUS_OK;
5788
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetPublisherResourceMetadata *r)
5792
status = dcerpc_binding_handle_call(h,
5793
NULL, &ndr_table_eventlog6,
5794
NDR_EVENTLOG6_EVTRPCGETPUBLISHERRESOURCEMETADATA, mem_ctx, r);
5799
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state {
5800
struct eventlog6_EvtRpcGetPublisherResourceMetadata orig;
5801
struct eventlog6_EvtRpcGetPublisherResourceMetadata tmp;
5802
TALLOC_CTX *out_mem_ctx;
5805
static void dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_done(struct tevent_req *subreq);
5807
struct tevent_req *dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_send(TALLOC_CTX *mem_ctx,
5808
struct tevent_context *ev,
5809
struct dcerpc_binding_handle *h,
5810
struct policy_handle *_handle /* [in] [ref] */,
5811
uint32_t _propertyId /* [in] */,
5812
uint32_t _flags /* [in] */,
5813
struct eventlog6_EvtRpcVariantList *_pubMetadataProps /* [out] [ref] */)
5815
struct tevent_req *req;
5816
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state *state;
5817
struct tevent_req *subreq;
5819
req = tevent_req_create(mem_ctx, &state,
5820
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state);
5824
state->out_mem_ctx = NULL;
5827
state->orig.in.handle = _handle;
5828
state->orig.in.propertyId = _propertyId;
5829
state->orig.in.flags = _flags;
5831
/* Out parameters */
5832
state->orig.out.pubMetadataProps = _pubMetadataProps;
5835
ZERO_STRUCT(state->orig.out.result);
5837
state->out_mem_ctx = talloc_named_const(state, 0,
5838
"dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_out_memory");
5839
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5840
return tevent_req_post(req, ev);
5843
/* make a temporary copy, that we pass to the dispatch function */
5844
state->tmp = state->orig;
5846
subreq = dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_send(state, ev, h, &state->tmp);
5847
if (tevent_req_nomem(subreq, req)) {
5848
return tevent_req_post(req, ev);
5850
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_done, req);
5854
static void dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_done(struct tevent_req *subreq)
5856
struct tevent_req *req = tevent_req_callback_data(
5857
subreq, struct tevent_req);
5858
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state *state = tevent_req_data(
5859
req, struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state);
5861
TALLOC_CTX *mem_ctx;
5863
if (state->out_mem_ctx) {
5864
mem_ctx = state->out_mem_ctx;
5869
status = dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r_recv(subreq, mem_ctx);
5870
TALLOC_FREE(subreq);
5871
if (!NT_STATUS_IS_OK(status)) {
5872
tevent_req_nterror(req, status);
5876
/* Copy out parameters */
5877
*state->orig.out.pubMetadataProps = *state->tmp.out.pubMetadataProps;
5880
state->orig.out.result = state->tmp.out.result;
5882
/* Reset temporary structure */
5883
ZERO_STRUCT(state->tmp);
5885
tevent_req_done(req);
5888
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_recv(struct tevent_req *req,
5889
TALLOC_CTX *mem_ctx,
5892
struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state *state = tevent_req_data(
5893
req, struct dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_state);
5896
if (tevent_req_is_nterror(req, &status)) {
5897
tevent_req_received(req);
5901
/* Steal possible out parameters to the callers context */
5902
talloc_steal(mem_ctx, state->out_mem_ctx);
5905
*result = state->orig.out.result;
5907
tevent_req_received(req);
5908
return NT_STATUS_OK;
5911
NTSTATUS dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata(struct dcerpc_binding_handle *h,
5912
TALLOC_CTX *mem_ctx,
5913
struct policy_handle *_handle /* [in] [ref] */,
5914
uint32_t _propertyId /* [in] */,
5915
uint32_t _flags /* [in] */,
5916
struct eventlog6_EvtRpcVariantList *_pubMetadataProps /* [out] [ref] */,
5919
struct eventlog6_EvtRpcGetPublisherResourceMetadata r;
5923
r.in.handle = _handle;
5924
r.in.propertyId = _propertyId;
5925
r.in.flags = _flags;
5927
status = dcerpc_eventlog6_EvtRpcGetPublisherResourceMetadata_r(h, mem_ctx, &r);
5928
if (!NT_STATUS_IS_OK(status)) {
5932
/* Return variables */
5933
*_pubMetadataProps = *r.out.pubMetadataProps;
5936
*result = r.out.result;
5938
return NT_STATUS_OK;
5941
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_state {
5942
TALLOC_CTX *out_mem_ctx;
5945
static void dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_done(struct tevent_req *subreq);
5947
struct tevent_req *dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_send(TALLOC_CTX *mem_ctx,
5948
struct tevent_context *ev,
5949
struct dcerpc_binding_handle *h,
5950
struct eventlog6_EvtRpcGetEventMetadataEnum *r)
5952
struct tevent_req *req;
5953
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_state *state;
5954
struct tevent_req *subreq;
5956
req = tevent_req_create(mem_ctx, &state,
5957
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_state);
5962
state->out_mem_ctx = talloc_new(state);
5963
if (tevent_req_nomem(state->out_mem_ctx, req)) {
5964
return tevent_req_post(req, ev);
5967
subreq = dcerpc_binding_handle_call_send(state, ev, h,
5968
NULL, &ndr_table_eventlog6,
5969
NDR_EVENTLOG6_EVTRPCGETEVENTMETADATAENUM, state->out_mem_ctx, r);
5970
if (tevent_req_nomem(subreq, req)) {
5971
return tevent_req_post(req, ev);
5973
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_done, req);
5978
static void dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_done(struct tevent_req *subreq)
5980
struct tevent_req *req =
5981
tevent_req_callback_data(subreq,
5985
status = dcerpc_binding_handle_call_recv(subreq);
5986
if (!NT_STATUS_IS_OK(status)) {
5987
tevent_req_nterror(req, status);
5991
tevent_req_done(req);
5994
NTSTATUS dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
5996
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_state *state =
5997
tevent_req_data(req,
5998
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_state);
6001
if (tevent_req_is_nterror(req, &status)) {
6002
tevent_req_received(req);
6006
talloc_steal(mem_ctx, state->out_mem_ctx);
6008
tevent_req_received(req);
6009
return NT_STATUS_OK;
6012
NTSTATUS dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetEventMetadataEnum *r)
6016
status = dcerpc_binding_handle_call(h,
6017
NULL, &ndr_table_eventlog6,
6018
NDR_EVENTLOG6_EVTRPCGETEVENTMETADATAENUM, mem_ctx, r);
6023
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state {
6024
struct eventlog6_EvtRpcGetEventMetadataEnum orig;
6025
struct eventlog6_EvtRpcGetEventMetadataEnum tmp;
6026
TALLOC_CTX *out_mem_ctx;
6029
static void dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_done(struct tevent_req *subreq);
6031
struct tevent_req *dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_send(TALLOC_CTX *mem_ctx,
6032
struct tevent_context *ev,
6033
struct dcerpc_binding_handle *h,
6034
struct policy_handle *_pubMetadata /* [in] [ref] */,
6035
uint32_t _flags /* [in] */,
6036
const char *_reservedForFilter /* [in] [unique,range(0,MAX_RPC_FILTER_LENGTH),charset(UTF16)] */,
6037
struct policy_handle *_eventMetaDataEnum /* [out] [ref] */)
6039
struct tevent_req *req;
6040
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state *state;
6041
struct tevent_req *subreq;
6043
req = tevent_req_create(mem_ctx, &state,
6044
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state);
6048
state->out_mem_ctx = NULL;
6051
state->orig.in.pubMetadata = _pubMetadata;
6052
state->orig.in.flags = _flags;
6053
state->orig.in.reservedForFilter = _reservedForFilter;
6055
/* Out parameters */
6056
state->orig.out.eventMetaDataEnum = _eventMetaDataEnum;
6059
ZERO_STRUCT(state->orig.out.result);
6061
state->out_mem_ctx = talloc_named_const(state, 0,
6062
"dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_out_memory");
6063
if (tevent_req_nomem(state->out_mem_ctx, req)) {
6064
return tevent_req_post(req, ev);
6067
/* make a temporary copy, that we pass to the dispatch function */
6068
state->tmp = state->orig;
6070
subreq = dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_send(state, ev, h, &state->tmp);
6071
if (tevent_req_nomem(subreq, req)) {
6072
return tevent_req_post(req, ev);
6074
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_done, req);
6078
static void dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_done(struct tevent_req *subreq)
6080
struct tevent_req *req = tevent_req_callback_data(
6081
subreq, struct tevent_req);
6082
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state *state = tevent_req_data(
6083
req, struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state);
6085
TALLOC_CTX *mem_ctx;
6087
if (state->out_mem_ctx) {
6088
mem_ctx = state->out_mem_ctx;
6093
status = dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r_recv(subreq, mem_ctx);
6094
TALLOC_FREE(subreq);
6095
if (!NT_STATUS_IS_OK(status)) {
6096
tevent_req_nterror(req, status);
6100
/* Copy out parameters */
6101
*state->orig.out.eventMetaDataEnum = *state->tmp.out.eventMetaDataEnum;
6104
state->orig.out.result = state->tmp.out.result;
6106
/* Reset temporary structure */
6107
ZERO_STRUCT(state->tmp);
6109
tevent_req_done(req);
6112
NTSTATUS dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_recv(struct tevent_req *req,
6113
TALLOC_CTX *mem_ctx,
6116
struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state *state = tevent_req_data(
6117
req, struct dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_state);
6120
if (tevent_req_is_nterror(req, &status)) {
6121
tevent_req_received(req);
6125
/* Steal possible out parameters to the callers context */
6126
talloc_steal(mem_ctx, state->out_mem_ctx);
6129
*result = state->orig.out.result;
6131
tevent_req_received(req);
6132
return NT_STATUS_OK;
6135
NTSTATUS dcerpc_eventlog6_EvtRpcGetEventMetadataEnum(struct dcerpc_binding_handle *h,
6136
TALLOC_CTX *mem_ctx,
6137
struct policy_handle *_pubMetadata /* [in] [ref] */,
6138
uint32_t _flags /* [in] */,
6139
const char *_reservedForFilter /* [in] [unique,range(0,MAX_RPC_FILTER_LENGTH),charset(UTF16)] */,
6140
struct policy_handle *_eventMetaDataEnum /* [out] [ref] */,
6143
struct eventlog6_EvtRpcGetEventMetadataEnum r;
6147
r.in.pubMetadata = _pubMetadata;
6148
r.in.flags = _flags;
6149
r.in.reservedForFilter = _reservedForFilter;
6151
status = dcerpc_eventlog6_EvtRpcGetEventMetadataEnum_r(h, mem_ctx, &r);
6152
if (!NT_STATUS_IS_OK(status)) {
6156
/* Return variables */
6157
*_eventMetaDataEnum = *r.out.eventMetaDataEnum;
6160
*result = r.out.result;
6162
return NT_STATUS_OK;
6165
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_state {
6166
TALLOC_CTX *out_mem_ctx;
6169
static void dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_done(struct tevent_req *subreq);
6171
struct tevent_req *dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_send(TALLOC_CTX *mem_ctx,
6172
struct tevent_context *ev,
6173
struct dcerpc_binding_handle *h,
6174
struct eventlog6_EvtRpcGetNextEventMetadata *r)
6176
struct tevent_req *req;
6177
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_state *state;
6178
struct tevent_req *subreq;
6180
req = tevent_req_create(mem_ctx, &state,
6181
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_state);
6186
state->out_mem_ctx = talloc_new(state);
6187
if (tevent_req_nomem(state->out_mem_ctx, req)) {
6188
return tevent_req_post(req, ev);
6191
subreq = dcerpc_binding_handle_call_send(state, ev, h,
6192
NULL, &ndr_table_eventlog6,
6193
NDR_EVENTLOG6_EVTRPCGETNEXTEVENTMETADATA, state->out_mem_ctx, r);
6194
if (tevent_req_nomem(subreq, req)) {
6195
return tevent_req_post(req, ev);
6197
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_done, req);
6202
static void dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_done(struct tevent_req *subreq)
6204
struct tevent_req *req =
6205
tevent_req_callback_data(subreq,
6209
status = dcerpc_binding_handle_call_recv(subreq);
6210
if (!NT_STATUS_IS_OK(status)) {
6211
tevent_req_nterror(req, status);
6215
tevent_req_done(req);
6218
NTSTATUS dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
6220
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_state *state =
6221
tevent_req_data(req,
6222
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_state);
6225
if (tevent_req_is_nterror(req, &status)) {
6226
tevent_req_received(req);
6230
talloc_steal(mem_ctx, state->out_mem_ctx);
6232
tevent_req_received(req);
6233
return NT_STATUS_OK;
6236
NTSTATUS dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetNextEventMetadata *r)
6240
status = dcerpc_binding_handle_call(h,
6241
NULL, &ndr_table_eventlog6,
6242
NDR_EVENTLOG6_EVTRPCGETNEXTEVENTMETADATA, mem_ctx, r);
6247
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state {
6248
struct eventlog6_EvtRpcGetNextEventMetadata orig;
6249
struct eventlog6_EvtRpcGetNextEventMetadata tmp;
6250
TALLOC_CTX *out_mem_ctx;
6253
static void dcerpc_eventlog6_EvtRpcGetNextEventMetadata_done(struct tevent_req *subreq);
6255
struct tevent_req *dcerpc_eventlog6_EvtRpcGetNextEventMetadata_send(TALLOC_CTX *mem_ctx,
6256
struct tevent_context *ev,
6257
struct dcerpc_binding_handle *h,
6258
struct policy_handle *_eventMetaDataEnum /* [in] [ref] */,
6259
uint32_t _flags /* [in] */,
6260
uint32_t _numRequested /* [in] */,
6261
uint32_t *_numReturned /* [out] [ref] */,
6262
struct eventlog6_EvtRpcVariantList **_eventMetadataInstances /* [out] [ref,range(0,MAX_RPC_EVENT_METADATA_COUNT),size_is(,*numReturned)] */)
6264
struct tevent_req *req;
6265
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state *state;
6266
struct tevent_req *subreq;
6268
req = tevent_req_create(mem_ctx, &state,
6269
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state);
6273
state->out_mem_ctx = NULL;
6276
state->orig.in.eventMetaDataEnum = _eventMetaDataEnum;
6277
state->orig.in.flags = _flags;
6278
state->orig.in.numRequested = _numRequested;
6280
/* Out parameters */
6281
state->orig.out.numReturned = _numReturned;
6282
state->orig.out.eventMetadataInstances = _eventMetadataInstances;
6285
ZERO_STRUCT(state->orig.out.result);
6287
state->out_mem_ctx = talloc_named_const(state, 0,
6288
"dcerpc_eventlog6_EvtRpcGetNextEventMetadata_out_memory");
6289
if (tevent_req_nomem(state->out_mem_ctx, req)) {
6290
return tevent_req_post(req, ev);
6293
/* make a temporary copy, that we pass to the dispatch function */
6294
state->tmp = state->orig;
6296
subreq = dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_send(state, ev, h, &state->tmp);
6297
if (tevent_req_nomem(subreq, req)) {
6298
return tevent_req_post(req, ev);
6300
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetNextEventMetadata_done, req);
6304
static void dcerpc_eventlog6_EvtRpcGetNextEventMetadata_done(struct tevent_req *subreq)
6306
struct tevent_req *req = tevent_req_callback_data(
6307
subreq, struct tevent_req);
6308
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state *state = tevent_req_data(
6309
req, struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state);
6311
TALLOC_CTX *mem_ctx;
6313
if (state->out_mem_ctx) {
6314
mem_ctx = state->out_mem_ctx;
6319
status = dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r_recv(subreq, mem_ctx);
6320
TALLOC_FREE(subreq);
6321
if (!NT_STATUS_IS_OK(status)) {
6322
tevent_req_nterror(req, status);
6326
/* Copy out parameters */
6327
*state->orig.out.numReturned = *state->tmp.out.numReturned;
6328
*state->orig.out.eventMetadataInstances = *state->tmp.out.eventMetadataInstances;
6331
state->orig.out.result = state->tmp.out.result;
6333
/* Reset temporary structure */
6334
ZERO_STRUCT(state->tmp);
6336
tevent_req_done(req);
6339
NTSTATUS dcerpc_eventlog6_EvtRpcGetNextEventMetadata_recv(struct tevent_req *req,
6340
TALLOC_CTX *mem_ctx,
6343
struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state *state = tevent_req_data(
6344
req, struct dcerpc_eventlog6_EvtRpcGetNextEventMetadata_state);
6347
if (tevent_req_is_nterror(req, &status)) {
6348
tevent_req_received(req);
6352
/* Steal possible out parameters to the callers context */
6353
talloc_steal(mem_ctx, state->out_mem_ctx);
6356
*result = state->orig.out.result;
6358
tevent_req_received(req);
6359
return NT_STATUS_OK;
6362
NTSTATUS dcerpc_eventlog6_EvtRpcGetNextEventMetadata(struct dcerpc_binding_handle *h,
6363
TALLOC_CTX *mem_ctx,
6364
struct policy_handle *_eventMetaDataEnum /* [in] [ref] */,
6365
uint32_t _flags /* [in] */,
6366
uint32_t _numRequested /* [in] */,
6367
uint32_t *_numReturned /* [out] [ref] */,
6368
struct eventlog6_EvtRpcVariantList **_eventMetadataInstances /* [out] [ref,range(0,MAX_RPC_EVENT_METADATA_COUNT),size_is(,*numReturned)] */,
6371
struct eventlog6_EvtRpcGetNextEventMetadata r;
6375
r.in.eventMetaDataEnum = _eventMetaDataEnum;
6376
r.in.flags = _flags;
6377
r.in.numRequested = _numRequested;
6379
status = dcerpc_eventlog6_EvtRpcGetNextEventMetadata_r(h, mem_ctx, &r);
6380
if (!NT_STATUS_IS_OK(status)) {
6384
/* Return variables */
6385
*_numReturned = *r.out.numReturned;
6386
*_eventMetadataInstances = *r.out.eventMetadataInstances;
6389
*result = r.out.result;
6391
return NT_STATUS_OK;
6394
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_state {
6395
TALLOC_CTX *out_mem_ctx;
6398
static void dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_done(struct tevent_req *subreq);
6400
struct tevent_req *dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_send(TALLOC_CTX *mem_ctx,
6401
struct tevent_context *ev,
6402
struct dcerpc_binding_handle *h,
6403
struct eventlog6_EvtRpcGetClassicLogDisplayName *r)
6405
struct tevent_req *req;
6406
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_state *state;
6407
struct tevent_req *subreq;
6409
req = tevent_req_create(mem_ctx, &state,
6410
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_state);
6415
state->out_mem_ctx = talloc_new(state);
6416
if (tevent_req_nomem(state->out_mem_ctx, req)) {
6417
return tevent_req_post(req, ev);
6420
subreq = dcerpc_binding_handle_call_send(state, ev, h,
6421
NULL, &ndr_table_eventlog6,
6422
NDR_EVENTLOG6_EVTRPCGETCLASSICLOGDISPLAYNAME, state->out_mem_ctx, r);
6423
if (tevent_req_nomem(subreq, req)) {
6424
return tevent_req_post(req, ev);
6426
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_done, req);
6431
static void dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_done(struct tevent_req *subreq)
6433
struct tevent_req *req =
6434
tevent_req_callback_data(subreq,
6438
status = dcerpc_binding_handle_call_recv(subreq);
6439
if (!NT_STATUS_IS_OK(status)) {
6440
tevent_req_nterror(req, status);
6444
tevent_req_done(req);
6447
NTSTATUS dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
6449
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_state *state =
6450
tevent_req_data(req,
6451
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_state);
6454
if (tevent_req_is_nterror(req, &status)) {
6455
tevent_req_received(req);
6459
talloc_steal(mem_ctx, state->out_mem_ctx);
6461
tevent_req_received(req);
6462
return NT_STATUS_OK;
6465
NTSTATUS dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcGetClassicLogDisplayName *r)
6469
status = dcerpc_binding_handle_call(h,
6470
NULL, &ndr_table_eventlog6,
6471
NDR_EVENTLOG6_EVTRPCGETCLASSICLOGDISPLAYNAME, mem_ctx, r);
6476
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state {
6477
struct eventlog6_EvtRpcGetClassicLogDisplayName orig;
6478
struct eventlog6_EvtRpcGetClassicLogDisplayName tmp;
6479
TALLOC_CTX *out_mem_ctx;
6482
static void dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_done(struct tevent_req *subreq);
6484
struct tevent_req *dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_send(TALLOC_CTX *mem_ctx,
6485
struct tevent_context *ev,
6486
struct dcerpc_binding_handle *h,
6487
const char *_logName /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
6488
uint32_t _locale /* [in] */,
6489
uint32_t _flags /* [in] */,
6490
uint16_t **_displayName /* [out] [ref] */)
6492
struct tevent_req *req;
6493
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state *state;
6494
struct tevent_req *subreq;
6496
req = tevent_req_create(mem_ctx, &state,
6497
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state);
6501
state->out_mem_ctx = NULL;
6504
state->orig.in.logName = _logName;
6505
state->orig.in.locale = _locale;
6506
state->orig.in.flags = _flags;
6508
/* Out parameters */
6509
state->orig.out.displayName = _displayName;
6512
ZERO_STRUCT(state->orig.out.result);
6514
state->out_mem_ctx = talloc_named_const(state, 0,
6515
"dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_out_memory");
6516
if (tevent_req_nomem(state->out_mem_ctx, req)) {
6517
return tevent_req_post(req, ev);
6520
/* make a temporary copy, that we pass to the dispatch function */
6521
state->tmp = state->orig;
6523
subreq = dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_send(state, ev, h, &state->tmp);
6524
if (tevent_req_nomem(subreq, req)) {
6525
return tevent_req_post(req, ev);
6527
tevent_req_set_callback(subreq, dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_done, req);
6531
static void dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_done(struct tevent_req *subreq)
6533
struct tevent_req *req = tevent_req_callback_data(
6534
subreq, struct tevent_req);
6535
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state *state = tevent_req_data(
6536
req, struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state);
6538
TALLOC_CTX *mem_ctx;
6540
if (state->out_mem_ctx) {
6541
mem_ctx = state->out_mem_ctx;
6546
status = dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r_recv(subreq, mem_ctx);
6547
TALLOC_FREE(subreq);
6548
if (!NT_STATUS_IS_OK(status)) {
6549
tevent_req_nterror(req, status);
6553
/* Copy out parameters */
6554
*state->orig.out.displayName = *state->tmp.out.displayName;
6557
state->orig.out.result = state->tmp.out.result;
6559
/* Reset temporary structure */
6560
ZERO_STRUCT(state->tmp);
6562
tevent_req_done(req);
6565
NTSTATUS dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_recv(struct tevent_req *req,
6566
TALLOC_CTX *mem_ctx,
6569
struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state *state = tevent_req_data(
6570
req, struct dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_state);
6573
if (tevent_req_is_nterror(req, &status)) {
6574
tevent_req_received(req);
6578
/* Steal possible out parameters to the callers context */
6579
talloc_steal(mem_ctx, state->out_mem_ctx);
6582
*result = state->orig.out.result;
6584
tevent_req_received(req);
6585
return NT_STATUS_OK;
6588
NTSTATUS dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName(struct dcerpc_binding_handle *h,
6589
TALLOC_CTX *mem_ctx,
6590
const char *_logName /* [in] [ref,range(1,MAX_RPC_CHANNEL_NAME_LENGTH),charset(UTF16)] */,
6591
uint32_t _locale /* [in] */,
6592
uint32_t _flags /* [in] */,
6593
uint16_t **_displayName /* [out] [ref] */,
6596
struct eventlog6_EvtRpcGetClassicLogDisplayName r;
6600
r.in.logName = _logName;
6601
r.in.locale = _locale;
6602
r.in.flags = _flags;
6604
status = dcerpc_eventlog6_EvtRpcGetClassicLogDisplayName_r(h, mem_ctx, &r);
6605
if (!NT_STATUS_IS_OK(status)) {
6609
/* Return variables */
6610
*_displayName = *r.out.displayName;
6613
*result = r.out.result;
6615
return NT_STATUS_OK;