1
/* client functions auto-generated by pidl */
5
#include "lib/util/tevent_ntstatus.h"
6
#include "librpc/gen_ndr/ndr_rap.h"
7
#include "librpc/gen_ndr/ndr_rap_c.h"
9
/* rap - client functions generated by pidl */
11
struct dcerpc_rap_NetShareEnum_r_state {
12
TALLOC_CTX *out_mem_ctx;
15
static void dcerpc_rap_NetShareEnum_r_done(struct tevent_req *subreq);
17
struct tevent_req *dcerpc_rap_NetShareEnum_r_send(TALLOC_CTX *mem_ctx,
18
struct tevent_context *ev,
19
struct dcerpc_binding_handle *h,
20
struct rap_NetShareEnum *r)
22
struct tevent_req *req;
23
struct dcerpc_rap_NetShareEnum_r_state *state;
24
struct tevent_req *subreq;
26
req = tevent_req_create(mem_ctx, &state,
27
struct dcerpc_rap_NetShareEnum_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,
39
NDR_RAP_NETSHAREENUM, 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_rap_NetShareEnum_r_done, req);
48
static void dcerpc_rap_NetShareEnum_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_rap_NetShareEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
66
struct dcerpc_rap_NetShareEnum_r_state *state =
68
struct dcerpc_rap_NetShareEnum_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_rap_NetShareEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetShareEnum *r)
86
status = dcerpc_binding_handle_call(h,
88
NDR_RAP_NETSHAREENUM, mem_ctx, r);
93
struct dcerpc_rap_NetShareAdd_r_state {
94
TALLOC_CTX *out_mem_ctx;
97
static void dcerpc_rap_NetShareAdd_r_done(struct tevent_req *subreq);
99
struct tevent_req *dcerpc_rap_NetShareAdd_r_send(TALLOC_CTX *mem_ctx,
100
struct tevent_context *ev,
101
struct dcerpc_binding_handle *h,
102
struct rap_NetShareAdd *r)
104
struct tevent_req *req;
105
struct dcerpc_rap_NetShareAdd_r_state *state;
106
struct tevent_req *subreq;
108
req = tevent_req_create(mem_ctx, &state,
109
struct dcerpc_rap_NetShareAdd_r_state);
114
state->out_mem_ctx = talloc_new(state);
115
if (tevent_req_nomem(state->out_mem_ctx, req)) {
116
return tevent_req_post(req, ev);
119
subreq = dcerpc_binding_handle_call_send(state, ev, h,
120
NULL, &ndr_table_rap,
121
NDR_RAP_NETSHAREADD, state->out_mem_ctx, r);
122
if (tevent_req_nomem(subreq, req)) {
123
return tevent_req_post(req, ev);
125
tevent_req_set_callback(subreq, dcerpc_rap_NetShareAdd_r_done, req);
130
static void dcerpc_rap_NetShareAdd_r_done(struct tevent_req *subreq)
132
struct tevent_req *req =
133
tevent_req_callback_data(subreq,
137
status = dcerpc_binding_handle_call_recv(subreq);
138
if (!NT_STATUS_IS_OK(status)) {
139
tevent_req_nterror(req, status);
143
tevent_req_done(req);
146
NTSTATUS dcerpc_rap_NetShareAdd_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
148
struct dcerpc_rap_NetShareAdd_r_state *state =
150
struct dcerpc_rap_NetShareAdd_r_state);
153
if (tevent_req_is_nterror(req, &status)) {
154
tevent_req_received(req);
158
talloc_steal(mem_ctx, state->out_mem_ctx);
160
tevent_req_received(req);
164
NTSTATUS dcerpc_rap_NetShareAdd_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetShareAdd *r)
168
status = dcerpc_binding_handle_call(h,
169
NULL, &ndr_table_rap,
170
NDR_RAP_NETSHAREADD, mem_ctx, r);
175
struct dcerpc_rap_NetServerEnum2_r_state {
176
TALLOC_CTX *out_mem_ctx;
179
static void dcerpc_rap_NetServerEnum2_r_done(struct tevent_req *subreq);
181
struct tevent_req *dcerpc_rap_NetServerEnum2_r_send(TALLOC_CTX *mem_ctx,
182
struct tevent_context *ev,
183
struct dcerpc_binding_handle *h,
184
struct rap_NetServerEnum2 *r)
186
struct tevent_req *req;
187
struct dcerpc_rap_NetServerEnum2_r_state *state;
188
struct tevent_req *subreq;
190
req = tevent_req_create(mem_ctx, &state,
191
struct dcerpc_rap_NetServerEnum2_r_state);
196
state->out_mem_ctx = talloc_new(state);
197
if (tevent_req_nomem(state->out_mem_ctx, req)) {
198
return tevent_req_post(req, ev);
201
subreq = dcerpc_binding_handle_call_send(state, ev, h,
202
NULL, &ndr_table_rap,
203
NDR_RAP_NETSERVERENUM2, state->out_mem_ctx, r);
204
if (tevent_req_nomem(subreq, req)) {
205
return tevent_req_post(req, ev);
207
tevent_req_set_callback(subreq, dcerpc_rap_NetServerEnum2_r_done, req);
212
static void dcerpc_rap_NetServerEnum2_r_done(struct tevent_req *subreq)
214
struct tevent_req *req =
215
tevent_req_callback_data(subreq,
219
status = dcerpc_binding_handle_call_recv(subreq);
220
if (!NT_STATUS_IS_OK(status)) {
221
tevent_req_nterror(req, status);
225
tevent_req_done(req);
228
NTSTATUS dcerpc_rap_NetServerEnum2_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
230
struct dcerpc_rap_NetServerEnum2_r_state *state =
232
struct dcerpc_rap_NetServerEnum2_r_state);
235
if (tevent_req_is_nterror(req, &status)) {
236
tevent_req_received(req);
240
talloc_steal(mem_ctx, state->out_mem_ctx);
242
tevent_req_received(req);
246
NTSTATUS dcerpc_rap_NetServerEnum2_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetServerEnum2 *r)
250
status = dcerpc_binding_handle_call(h,
251
NULL, &ndr_table_rap,
252
NDR_RAP_NETSERVERENUM2, mem_ctx, r);
257
struct dcerpc_rap_WserverGetInfo_r_state {
258
TALLOC_CTX *out_mem_ctx;
261
static void dcerpc_rap_WserverGetInfo_r_done(struct tevent_req *subreq);
263
struct tevent_req *dcerpc_rap_WserverGetInfo_r_send(TALLOC_CTX *mem_ctx,
264
struct tevent_context *ev,
265
struct dcerpc_binding_handle *h,
266
struct rap_WserverGetInfo *r)
268
struct tevent_req *req;
269
struct dcerpc_rap_WserverGetInfo_r_state *state;
270
struct tevent_req *subreq;
272
req = tevent_req_create(mem_ctx, &state,
273
struct dcerpc_rap_WserverGetInfo_r_state);
278
state->out_mem_ctx = talloc_new(state);
279
if (tevent_req_nomem(state->out_mem_ctx, req)) {
280
return tevent_req_post(req, ev);
283
subreq = dcerpc_binding_handle_call_send(state, ev, h,
284
NULL, &ndr_table_rap,
285
NDR_RAP_WSERVERGETINFO, state->out_mem_ctx, r);
286
if (tevent_req_nomem(subreq, req)) {
287
return tevent_req_post(req, ev);
289
tevent_req_set_callback(subreq, dcerpc_rap_WserverGetInfo_r_done, req);
294
static void dcerpc_rap_WserverGetInfo_r_done(struct tevent_req *subreq)
296
struct tevent_req *req =
297
tevent_req_callback_data(subreq,
301
status = dcerpc_binding_handle_call_recv(subreq);
302
if (!NT_STATUS_IS_OK(status)) {
303
tevent_req_nterror(req, status);
307
tevent_req_done(req);
310
NTSTATUS dcerpc_rap_WserverGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
312
struct dcerpc_rap_WserverGetInfo_r_state *state =
314
struct dcerpc_rap_WserverGetInfo_r_state);
317
if (tevent_req_is_nterror(req, &status)) {
318
tevent_req_received(req);
322
talloc_steal(mem_ctx, state->out_mem_ctx);
324
tevent_req_received(req);
328
NTSTATUS dcerpc_rap_WserverGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_WserverGetInfo *r)
332
status = dcerpc_binding_handle_call(h,
333
NULL, &ndr_table_rap,
334
NDR_RAP_WSERVERGETINFO, mem_ctx, r);
339
struct dcerpc_rap_NetPrintQEnum_r_state {
340
TALLOC_CTX *out_mem_ctx;
343
static void dcerpc_rap_NetPrintQEnum_r_done(struct tevent_req *subreq);
345
struct tevent_req *dcerpc_rap_NetPrintQEnum_r_send(TALLOC_CTX *mem_ctx,
346
struct tevent_context *ev,
347
struct dcerpc_binding_handle *h,
348
struct rap_NetPrintQEnum *r)
350
struct tevent_req *req;
351
struct dcerpc_rap_NetPrintQEnum_r_state *state;
352
struct tevent_req *subreq;
354
req = tevent_req_create(mem_ctx, &state,
355
struct dcerpc_rap_NetPrintQEnum_r_state);
360
state->out_mem_ctx = talloc_new(state);
361
if (tevent_req_nomem(state->out_mem_ctx, req)) {
362
return tevent_req_post(req, ev);
365
subreq = dcerpc_binding_handle_call_send(state, ev, h,
366
NULL, &ndr_table_rap,
367
NDR_RAP_NETPRINTQENUM, state->out_mem_ctx, r);
368
if (tevent_req_nomem(subreq, req)) {
369
return tevent_req_post(req, ev);
371
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintQEnum_r_done, req);
376
static void dcerpc_rap_NetPrintQEnum_r_done(struct tevent_req *subreq)
378
struct tevent_req *req =
379
tevent_req_callback_data(subreq,
383
status = dcerpc_binding_handle_call_recv(subreq);
384
if (!NT_STATUS_IS_OK(status)) {
385
tevent_req_nterror(req, status);
389
tevent_req_done(req);
392
NTSTATUS dcerpc_rap_NetPrintQEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
394
struct dcerpc_rap_NetPrintQEnum_r_state *state =
396
struct dcerpc_rap_NetPrintQEnum_r_state);
399
if (tevent_req_is_nterror(req, &status)) {
400
tevent_req_received(req);
404
talloc_steal(mem_ctx, state->out_mem_ctx);
406
tevent_req_received(req);
410
NTSTATUS dcerpc_rap_NetPrintQEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintQEnum *r)
414
status = dcerpc_binding_handle_call(h,
415
NULL, &ndr_table_rap,
416
NDR_RAP_NETPRINTQENUM, mem_ctx, r);
421
struct dcerpc_rap_NetPrintQGetInfo_r_state {
422
TALLOC_CTX *out_mem_ctx;
425
static void dcerpc_rap_NetPrintQGetInfo_r_done(struct tevent_req *subreq);
427
struct tevent_req *dcerpc_rap_NetPrintQGetInfo_r_send(TALLOC_CTX *mem_ctx,
428
struct tevent_context *ev,
429
struct dcerpc_binding_handle *h,
430
struct rap_NetPrintQGetInfo *r)
432
struct tevent_req *req;
433
struct dcerpc_rap_NetPrintQGetInfo_r_state *state;
434
struct tevent_req *subreq;
436
req = tevent_req_create(mem_ctx, &state,
437
struct dcerpc_rap_NetPrintQGetInfo_r_state);
442
state->out_mem_ctx = talloc_new(state);
443
if (tevent_req_nomem(state->out_mem_ctx, req)) {
444
return tevent_req_post(req, ev);
447
subreq = dcerpc_binding_handle_call_send(state, ev, h,
448
NULL, &ndr_table_rap,
449
NDR_RAP_NETPRINTQGETINFO, state->out_mem_ctx, r);
450
if (tevent_req_nomem(subreq, req)) {
451
return tevent_req_post(req, ev);
453
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintQGetInfo_r_done, req);
458
static void dcerpc_rap_NetPrintQGetInfo_r_done(struct tevent_req *subreq)
460
struct tevent_req *req =
461
tevent_req_callback_data(subreq,
465
status = dcerpc_binding_handle_call_recv(subreq);
466
if (!NT_STATUS_IS_OK(status)) {
467
tevent_req_nterror(req, status);
471
tevent_req_done(req);
474
NTSTATUS dcerpc_rap_NetPrintQGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
476
struct dcerpc_rap_NetPrintQGetInfo_r_state *state =
478
struct dcerpc_rap_NetPrintQGetInfo_r_state);
481
if (tevent_req_is_nterror(req, &status)) {
482
tevent_req_received(req);
486
talloc_steal(mem_ctx, state->out_mem_ctx);
488
tevent_req_received(req);
492
NTSTATUS dcerpc_rap_NetPrintQGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintQGetInfo *r)
496
status = dcerpc_binding_handle_call(h,
497
NULL, &ndr_table_rap,
498
NDR_RAP_NETPRINTQGETINFO, mem_ctx, r);
503
struct dcerpc_rap_NetPrintJobPause_r_state {
504
TALLOC_CTX *out_mem_ctx;
507
static void dcerpc_rap_NetPrintJobPause_r_done(struct tevent_req *subreq);
509
struct tevent_req *dcerpc_rap_NetPrintJobPause_r_send(TALLOC_CTX *mem_ctx,
510
struct tevent_context *ev,
511
struct dcerpc_binding_handle *h,
512
struct rap_NetPrintJobPause *r)
514
struct tevent_req *req;
515
struct dcerpc_rap_NetPrintJobPause_r_state *state;
516
struct tevent_req *subreq;
518
req = tevent_req_create(mem_ctx, &state,
519
struct dcerpc_rap_NetPrintJobPause_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_rap,
531
NDR_RAP_NETPRINTJOBPAUSE, 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_rap_NetPrintJobPause_r_done, req);
540
static void dcerpc_rap_NetPrintJobPause_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_rap_NetPrintJobPause_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
558
struct dcerpc_rap_NetPrintJobPause_r_state *state =
560
struct dcerpc_rap_NetPrintJobPause_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_rap_NetPrintJobPause_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobPause *r)
578
status = dcerpc_binding_handle_call(h,
579
NULL, &ndr_table_rap,
580
NDR_RAP_NETPRINTJOBPAUSE, mem_ctx, r);
585
struct dcerpc_rap_NetPrintJobContinue_r_state {
586
TALLOC_CTX *out_mem_ctx;
589
static void dcerpc_rap_NetPrintJobContinue_r_done(struct tevent_req *subreq);
591
struct tevent_req *dcerpc_rap_NetPrintJobContinue_r_send(TALLOC_CTX *mem_ctx,
592
struct tevent_context *ev,
593
struct dcerpc_binding_handle *h,
594
struct rap_NetPrintJobContinue *r)
596
struct tevent_req *req;
597
struct dcerpc_rap_NetPrintJobContinue_r_state *state;
598
struct tevent_req *subreq;
600
req = tevent_req_create(mem_ctx, &state,
601
struct dcerpc_rap_NetPrintJobContinue_r_state);
606
state->out_mem_ctx = talloc_new(state);
607
if (tevent_req_nomem(state->out_mem_ctx, req)) {
608
return tevent_req_post(req, ev);
611
subreq = dcerpc_binding_handle_call_send(state, ev, h,
612
NULL, &ndr_table_rap,
613
NDR_RAP_NETPRINTJOBCONTINUE, state->out_mem_ctx, r);
614
if (tevent_req_nomem(subreq, req)) {
615
return tevent_req_post(req, ev);
617
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintJobContinue_r_done, req);
622
static void dcerpc_rap_NetPrintJobContinue_r_done(struct tevent_req *subreq)
624
struct tevent_req *req =
625
tevent_req_callback_data(subreq,
629
status = dcerpc_binding_handle_call_recv(subreq);
630
if (!NT_STATUS_IS_OK(status)) {
631
tevent_req_nterror(req, status);
635
tevent_req_done(req);
638
NTSTATUS dcerpc_rap_NetPrintJobContinue_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
640
struct dcerpc_rap_NetPrintJobContinue_r_state *state =
642
struct dcerpc_rap_NetPrintJobContinue_r_state);
645
if (tevent_req_is_nterror(req, &status)) {
646
tevent_req_received(req);
650
talloc_steal(mem_ctx, state->out_mem_ctx);
652
tevent_req_received(req);
656
NTSTATUS dcerpc_rap_NetPrintJobContinue_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobContinue *r)
660
status = dcerpc_binding_handle_call(h,
661
NULL, &ndr_table_rap,
662
NDR_RAP_NETPRINTJOBCONTINUE, mem_ctx, r);
667
struct dcerpc_rap_NetPrintJobDelete_r_state {
668
TALLOC_CTX *out_mem_ctx;
671
static void dcerpc_rap_NetPrintJobDelete_r_done(struct tevent_req *subreq);
673
struct tevent_req *dcerpc_rap_NetPrintJobDelete_r_send(TALLOC_CTX *mem_ctx,
674
struct tevent_context *ev,
675
struct dcerpc_binding_handle *h,
676
struct rap_NetPrintJobDelete *r)
678
struct tevent_req *req;
679
struct dcerpc_rap_NetPrintJobDelete_r_state *state;
680
struct tevent_req *subreq;
682
req = tevent_req_create(mem_ctx, &state,
683
struct dcerpc_rap_NetPrintJobDelete_r_state);
688
state->out_mem_ctx = talloc_new(state);
689
if (tevent_req_nomem(state->out_mem_ctx, req)) {
690
return tevent_req_post(req, ev);
693
subreq = dcerpc_binding_handle_call_send(state, ev, h,
694
NULL, &ndr_table_rap,
695
NDR_RAP_NETPRINTJOBDELETE, state->out_mem_ctx, r);
696
if (tevent_req_nomem(subreq, req)) {
697
return tevent_req_post(req, ev);
699
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintJobDelete_r_done, req);
704
static void dcerpc_rap_NetPrintJobDelete_r_done(struct tevent_req *subreq)
706
struct tevent_req *req =
707
tevent_req_callback_data(subreq,
711
status = dcerpc_binding_handle_call_recv(subreq);
712
if (!NT_STATUS_IS_OK(status)) {
713
tevent_req_nterror(req, status);
717
tevent_req_done(req);
720
NTSTATUS dcerpc_rap_NetPrintJobDelete_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
722
struct dcerpc_rap_NetPrintJobDelete_r_state *state =
724
struct dcerpc_rap_NetPrintJobDelete_r_state);
727
if (tevent_req_is_nterror(req, &status)) {
728
tevent_req_received(req);
732
talloc_steal(mem_ctx, state->out_mem_ctx);
734
tevent_req_received(req);
738
NTSTATUS dcerpc_rap_NetPrintJobDelete_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobDelete *r)
742
status = dcerpc_binding_handle_call(h,
743
NULL, &ndr_table_rap,
744
NDR_RAP_NETPRINTJOBDELETE, mem_ctx, r);
749
struct dcerpc_rap_NetPrintQueuePause_r_state {
750
TALLOC_CTX *out_mem_ctx;
753
static void dcerpc_rap_NetPrintQueuePause_r_done(struct tevent_req *subreq);
755
struct tevent_req *dcerpc_rap_NetPrintQueuePause_r_send(TALLOC_CTX *mem_ctx,
756
struct tevent_context *ev,
757
struct dcerpc_binding_handle *h,
758
struct rap_NetPrintQueuePause *r)
760
struct tevent_req *req;
761
struct dcerpc_rap_NetPrintQueuePause_r_state *state;
762
struct tevent_req *subreq;
764
req = tevent_req_create(mem_ctx, &state,
765
struct dcerpc_rap_NetPrintQueuePause_r_state);
770
state->out_mem_ctx = talloc_new(state);
771
if (tevent_req_nomem(state->out_mem_ctx, req)) {
772
return tevent_req_post(req, ev);
775
subreq = dcerpc_binding_handle_call_send(state, ev, h,
776
NULL, &ndr_table_rap,
777
NDR_RAP_NETPRINTQUEUEPAUSE, state->out_mem_ctx, r);
778
if (tevent_req_nomem(subreq, req)) {
779
return tevent_req_post(req, ev);
781
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintQueuePause_r_done, req);
786
static void dcerpc_rap_NetPrintQueuePause_r_done(struct tevent_req *subreq)
788
struct tevent_req *req =
789
tevent_req_callback_data(subreq,
793
status = dcerpc_binding_handle_call_recv(subreq);
794
if (!NT_STATUS_IS_OK(status)) {
795
tevent_req_nterror(req, status);
799
tevent_req_done(req);
802
NTSTATUS dcerpc_rap_NetPrintQueuePause_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
804
struct dcerpc_rap_NetPrintQueuePause_r_state *state =
806
struct dcerpc_rap_NetPrintQueuePause_r_state);
809
if (tevent_req_is_nterror(req, &status)) {
810
tevent_req_received(req);
814
talloc_steal(mem_ctx, state->out_mem_ctx);
816
tevent_req_received(req);
820
NTSTATUS dcerpc_rap_NetPrintQueuePause_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintQueuePause *r)
824
status = dcerpc_binding_handle_call(h,
825
NULL, &ndr_table_rap,
826
NDR_RAP_NETPRINTQUEUEPAUSE, mem_ctx, r);
831
struct dcerpc_rap_NetPrintQueueResume_r_state {
832
TALLOC_CTX *out_mem_ctx;
835
static void dcerpc_rap_NetPrintQueueResume_r_done(struct tevent_req *subreq);
837
struct tevent_req *dcerpc_rap_NetPrintQueueResume_r_send(TALLOC_CTX *mem_ctx,
838
struct tevent_context *ev,
839
struct dcerpc_binding_handle *h,
840
struct rap_NetPrintQueueResume *r)
842
struct tevent_req *req;
843
struct dcerpc_rap_NetPrintQueueResume_r_state *state;
844
struct tevent_req *subreq;
846
req = tevent_req_create(mem_ctx, &state,
847
struct dcerpc_rap_NetPrintQueueResume_r_state);
852
state->out_mem_ctx = talloc_new(state);
853
if (tevent_req_nomem(state->out_mem_ctx, req)) {
854
return tevent_req_post(req, ev);
857
subreq = dcerpc_binding_handle_call_send(state, ev, h,
858
NULL, &ndr_table_rap,
859
NDR_RAP_NETPRINTQUEUERESUME, state->out_mem_ctx, r);
860
if (tevent_req_nomem(subreq, req)) {
861
return tevent_req_post(req, ev);
863
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintQueueResume_r_done, req);
868
static void dcerpc_rap_NetPrintQueueResume_r_done(struct tevent_req *subreq)
870
struct tevent_req *req =
871
tevent_req_callback_data(subreq,
875
status = dcerpc_binding_handle_call_recv(subreq);
876
if (!NT_STATUS_IS_OK(status)) {
877
tevent_req_nterror(req, status);
881
tevent_req_done(req);
884
NTSTATUS dcerpc_rap_NetPrintQueueResume_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
886
struct dcerpc_rap_NetPrintQueueResume_r_state *state =
888
struct dcerpc_rap_NetPrintQueueResume_r_state);
891
if (tevent_req_is_nterror(req, &status)) {
892
tevent_req_received(req);
896
talloc_steal(mem_ctx, state->out_mem_ctx);
898
tevent_req_received(req);
902
NTSTATUS dcerpc_rap_NetPrintQueueResume_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintQueueResume *r)
906
status = dcerpc_binding_handle_call(h,
907
NULL, &ndr_table_rap,
908
NDR_RAP_NETPRINTQUEUERESUME, mem_ctx, r);
913
struct dcerpc_rap_NetPrintQueuePurge_r_state {
914
TALLOC_CTX *out_mem_ctx;
917
static void dcerpc_rap_NetPrintQueuePurge_r_done(struct tevent_req *subreq);
919
struct tevent_req *dcerpc_rap_NetPrintQueuePurge_r_send(TALLOC_CTX *mem_ctx,
920
struct tevent_context *ev,
921
struct dcerpc_binding_handle *h,
922
struct rap_NetPrintQueuePurge *r)
924
struct tevent_req *req;
925
struct dcerpc_rap_NetPrintQueuePurge_r_state *state;
926
struct tevent_req *subreq;
928
req = tevent_req_create(mem_ctx, &state,
929
struct dcerpc_rap_NetPrintQueuePurge_r_state);
934
state->out_mem_ctx = talloc_new(state);
935
if (tevent_req_nomem(state->out_mem_ctx, req)) {
936
return tevent_req_post(req, ev);
939
subreq = dcerpc_binding_handle_call_send(state, ev, h,
940
NULL, &ndr_table_rap,
941
NDR_RAP_NETPRINTQUEUEPURGE, state->out_mem_ctx, r);
942
if (tevent_req_nomem(subreq, req)) {
943
return tevent_req_post(req, ev);
945
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintQueuePurge_r_done, req);
950
static void dcerpc_rap_NetPrintQueuePurge_r_done(struct tevent_req *subreq)
952
struct tevent_req *req =
953
tevent_req_callback_data(subreq,
957
status = dcerpc_binding_handle_call_recv(subreq);
958
if (!NT_STATUS_IS_OK(status)) {
959
tevent_req_nterror(req, status);
963
tevent_req_done(req);
966
NTSTATUS dcerpc_rap_NetPrintQueuePurge_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
968
struct dcerpc_rap_NetPrintQueuePurge_r_state *state =
970
struct dcerpc_rap_NetPrintQueuePurge_r_state);
973
if (tevent_req_is_nterror(req, &status)) {
974
tevent_req_received(req);
978
talloc_steal(mem_ctx, state->out_mem_ctx);
980
tevent_req_received(req);
984
NTSTATUS dcerpc_rap_NetPrintQueuePurge_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintQueuePurge *r)
988
status = dcerpc_binding_handle_call(h,
989
NULL, &ndr_table_rap,
990
NDR_RAP_NETPRINTQUEUEPURGE, mem_ctx, r);
995
struct dcerpc_rap_NetPrintJobEnum_r_state {
996
TALLOC_CTX *out_mem_ctx;
999
static void dcerpc_rap_NetPrintJobEnum_r_done(struct tevent_req *subreq);
1001
struct tevent_req *dcerpc_rap_NetPrintJobEnum_r_send(TALLOC_CTX *mem_ctx,
1002
struct tevent_context *ev,
1003
struct dcerpc_binding_handle *h,
1004
struct rap_NetPrintJobEnum *r)
1006
struct tevent_req *req;
1007
struct dcerpc_rap_NetPrintJobEnum_r_state *state;
1008
struct tevent_req *subreq;
1010
req = tevent_req_create(mem_ctx, &state,
1011
struct dcerpc_rap_NetPrintJobEnum_r_state);
1016
state->out_mem_ctx = talloc_new(state);
1017
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1018
return tevent_req_post(req, ev);
1021
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1022
NULL, &ndr_table_rap,
1023
NDR_RAP_NETPRINTJOBENUM, state->out_mem_ctx, r);
1024
if (tevent_req_nomem(subreq, req)) {
1025
return tevent_req_post(req, ev);
1027
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintJobEnum_r_done, req);
1032
static void dcerpc_rap_NetPrintJobEnum_r_done(struct tevent_req *subreq)
1034
struct tevent_req *req =
1035
tevent_req_callback_data(subreq,
1039
status = dcerpc_binding_handle_call_recv(subreq);
1040
if (!NT_STATUS_IS_OK(status)) {
1041
tevent_req_nterror(req, status);
1045
tevent_req_done(req);
1048
NTSTATUS dcerpc_rap_NetPrintJobEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1050
struct dcerpc_rap_NetPrintJobEnum_r_state *state =
1051
tevent_req_data(req,
1052
struct dcerpc_rap_NetPrintJobEnum_r_state);
1055
if (tevent_req_is_nterror(req, &status)) {
1056
tevent_req_received(req);
1060
talloc_steal(mem_ctx, state->out_mem_ctx);
1062
tevent_req_received(req);
1063
return NT_STATUS_OK;
1066
NTSTATUS dcerpc_rap_NetPrintJobEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobEnum *r)
1070
status = dcerpc_binding_handle_call(h,
1071
NULL, &ndr_table_rap,
1072
NDR_RAP_NETPRINTJOBENUM, mem_ctx, r);
1077
struct dcerpc_rap_NetPrintJobGetInfo_r_state {
1078
TALLOC_CTX *out_mem_ctx;
1081
static void dcerpc_rap_NetPrintJobGetInfo_r_done(struct tevent_req *subreq);
1083
struct tevent_req *dcerpc_rap_NetPrintJobGetInfo_r_send(TALLOC_CTX *mem_ctx,
1084
struct tevent_context *ev,
1085
struct dcerpc_binding_handle *h,
1086
struct rap_NetPrintJobGetInfo *r)
1088
struct tevent_req *req;
1089
struct dcerpc_rap_NetPrintJobGetInfo_r_state *state;
1090
struct tevent_req *subreq;
1092
req = tevent_req_create(mem_ctx, &state,
1093
struct dcerpc_rap_NetPrintJobGetInfo_r_state);
1098
state->out_mem_ctx = talloc_new(state);
1099
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1100
return tevent_req_post(req, ev);
1103
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1104
NULL, &ndr_table_rap,
1105
NDR_RAP_NETPRINTJOBGETINFO, state->out_mem_ctx, r);
1106
if (tevent_req_nomem(subreq, req)) {
1107
return tevent_req_post(req, ev);
1109
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintJobGetInfo_r_done, req);
1114
static void dcerpc_rap_NetPrintJobGetInfo_r_done(struct tevent_req *subreq)
1116
struct tevent_req *req =
1117
tevent_req_callback_data(subreq,
1121
status = dcerpc_binding_handle_call_recv(subreq);
1122
if (!NT_STATUS_IS_OK(status)) {
1123
tevent_req_nterror(req, status);
1127
tevent_req_done(req);
1130
NTSTATUS dcerpc_rap_NetPrintJobGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1132
struct dcerpc_rap_NetPrintJobGetInfo_r_state *state =
1133
tevent_req_data(req,
1134
struct dcerpc_rap_NetPrintJobGetInfo_r_state);
1137
if (tevent_req_is_nterror(req, &status)) {
1138
tevent_req_received(req);
1142
talloc_steal(mem_ctx, state->out_mem_ctx);
1144
tevent_req_received(req);
1145
return NT_STATUS_OK;
1148
NTSTATUS dcerpc_rap_NetPrintJobGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobGetInfo *r)
1152
status = dcerpc_binding_handle_call(h,
1153
NULL, &ndr_table_rap,
1154
NDR_RAP_NETPRINTJOBGETINFO, mem_ctx, r);
1159
struct dcerpc_rap_NetPrintJobSetInfo_r_state {
1160
TALLOC_CTX *out_mem_ctx;
1163
static void dcerpc_rap_NetPrintJobSetInfo_r_done(struct tevent_req *subreq);
1165
struct tevent_req *dcerpc_rap_NetPrintJobSetInfo_r_send(TALLOC_CTX *mem_ctx,
1166
struct tevent_context *ev,
1167
struct dcerpc_binding_handle *h,
1168
struct rap_NetPrintJobSetInfo *r)
1170
struct tevent_req *req;
1171
struct dcerpc_rap_NetPrintJobSetInfo_r_state *state;
1172
struct tevent_req *subreq;
1174
req = tevent_req_create(mem_ctx, &state,
1175
struct dcerpc_rap_NetPrintJobSetInfo_r_state);
1180
state->out_mem_ctx = talloc_new(state);
1181
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1182
return tevent_req_post(req, ev);
1185
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1186
NULL, &ndr_table_rap,
1187
NDR_RAP_NETPRINTJOBSETINFO, state->out_mem_ctx, r);
1188
if (tevent_req_nomem(subreq, req)) {
1189
return tevent_req_post(req, ev);
1191
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintJobSetInfo_r_done, req);
1196
static void dcerpc_rap_NetPrintJobSetInfo_r_done(struct tevent_req *subreq)
1198
struct tevent_req *req =
1199
tevent_req_callback_data(subreq,
1203
status = dcerpc_binding_handle_call_recv(subreq);
1204
if (!NT_STATUS_IS_OK(status)) {
1205
tevent_req_nterror(req, status);
1209
tevent_req_done(req);
1212
NTSTATUS dcerpc_rap_NetPrintJobSetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1214
struct dcerpc_rap_NetPrintJobSetInfo_r_state *state =
1215
tevent_req_data(req,
1216
struct dcerpc_rap_NetPrintJobSetInfo_r_state);
1219
if (tevent_req_is_nterror(req, &status)) {
1220
tevent_req_received(req);
1224
talloc_steal(mem_ctx, state->out_mem_ctx);
1226
tevent_req_received(req);
1227
return NT_STATUS_OK;
1230
NTSTATUS dcerpc_rap_NetPrintJobSetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintJobSetInfo *r)
1234
status = dcerpc_binding_handle_call(h,
1235
NULL, &ndr_table_rap,
1236
NDR_RAP_NETPRINTJOBSETINFO, mem_ctx, r);
1241
struct dcerpc_rap_NetPrintDestEnum_r_state {
1242
TALLOC_CTX *out_mem_ctx;
1245
static void dcerpc_rap_NetPrintDestEnum_r_done(struct tevent_req *subreq);
1247
struct tevent_req *dcerpc_rap_NetPrintDestEnum_r_send(TALLOC_CTX *mem_ctx,
1248
struct tevent_context *ev,
1249
struct dcerpc_binding_handle *h,
1250
struct rap_NetPrintDestEnum *r)
1252
struct tevent_req *req;
1253
struct dcerpc_rap_NetPrintDestEnum_r_state *state;
1254
struct tevent_req *subreq;
1256
req = tevent_req_create(mem_ctx, &state,
1257
struct dcerpc_rap_NetPrintDestEnum_r_state);
1262
state->out_mem_ctx = talloc_new(state);
1263
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1264
return tevent_req_post(req, ev);
1267
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1268
NULL, &ndr_table_rap,
1269
NDR_RAP_NETPRINTDESTENUM, state->out_mem_ctx, r);
1270
if (tevent_req_nomem(subreq, req)) {
1271
return tevent_req_post(req, ev);
1273
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintDestEnum_r_done, req);
1278
static void dcerpc_rap_NetPrintDestEnum_r_done(struct tevent_req *subreq)
1280
struct tevent_req *req =
1281
tevent_req_callback_data(subreq,
1285
status = dcerpc_binding_handle_call_recv(subreq);
1286
if (!NT_STATUS_IS_OK(status)) {
1287
tevent_req_nterror(req, status);
1291
tevent_req_done(req);
1294
NTSTATUS dcerpc_rap_NetPrintDestEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1296
struct dcerpc_rap_NetPrintDestEnum_r_state *state =
1297
tevent_req_data(req,
1298
struct dcerpc_rap_NetPrintDestEnum_r_state);
1301
if (tevent_req_is_nterror(req, &status)) {
1302
tevent_req_received(req);
1306
talloc_steal(mem_ctx, state->out_mem_ctx);
1308
tevent_req_received(req);
1309
return NT_STATUS_OK;
1312
NTSTATUS dcerpc_rap_NetPrintDestEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintDestEnum *r)
1316
status = dcerpc_binding_handle_call(h,
1317
NULL, &ndr_table_rap,
1318
NDR_RAP_NETPRINTDESTENUM, mem_ctx, r);
1323
struct dcerpc_rap_NetPrintDestGetInfo_r_state {
1324
TALLOC_CTX *out_mem_ctx;
1327
static void dcerpc_rap_NetPrintDestGetInfo_r_done(struct tevent_req *subreq);
1329
struct tevent_req *dcerpc_rap_NetPrintDestGetInfo_r_send(TALLOC_CTX *mem_ctx,
1330
struct tevent_context *ev,
1331
struct dcerpc_binding_handle *h,
1332
struct rap_NetPrintDestGetInfo *r)
1334
struct tevent_req *req;
1335
struct dcerpc_rap_NetPrintDestGetInfo_r_state *state;
1336
struct tevent_req *subreq;
1338
req = tevent_req_create(mem_ctx, &state,
1339
struct dcerpc_rap_NetPrintDestGetInfo_r_state);
1344
state->out_mem_ctx = talloc_new(state);
1345
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1346
return tevent_req_post(req, ev);
1349
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1350
NULL, &ndr_table_rap,
1351
NDR_RAP_NETPRINTDESTGETINFO, state->out_mem_ctx, r);
1352
if (tevent_req_nomem(subreq, req)) {
1353
return tevent_req_post(req, ev);
1355
tevent_req_set_callback(subreq, dcerpc_rap_NetPrintDestGetInfo_r_done, req);
1360
static void dcerpc_rap_NetPrintDestGetInfo_r_done(struct tevent_req *subreq)
1362
struct tevent_req *req =
1363
tevent_req_callback_data(subreq,
1367
status = dcerpc_binding_handle_call_recv(subreq);
1368
if (!NT_STATUS_IS_OK(status)) {
1369
tevent_req_nterror(req, status);
1373
tevent_req_done(req);
1376
NTSTATUS dcerpc_rap_NetPrintDestGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1378
struct dcerpc_rap_NetPrintDestGetInfo_r_state *state =
1379
tevent_req_data(req,
1380
struct dcerpc_rap_NetPrintDestGetInfo_r_state);
1383
if (tevent_req_is_nterror(req, &status)) {
1384
tevent_req_received(req);
1388
talloc_steal(mem_ctx, state->out_mem_ctx);
1390
tevent_req_received(req);
1391
return NT_STATUS_OK;
1394
NTSTATUS dcerpc_rap_NetPrintDestGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetPrintDestGetInfo *r)
1398
status = dcerpc_binding_handle_call(h,
1399
NULL, &ndr_table_rap,
1400
NDR_RAP_NETPRINTDESTGETINFO, mem_ctx, r);
1405
struct dcerpc_rap_NetUserPasswordSet2_r_state {
1406
TALLOC_CTX *out_mem_ctx;
1409
static void dcerpc_rap_NetUserPasswordSet2_r_done(struct tevent_req *subreq);
1411
struct tevent_req *dcerpc_rap_NetUserPasswordSet2_r_send(TALLOC_CTX *mem_ctx,
1412
struct tevent_context *ev,
1413
struct dcerpc_binding_handle *h,
1414
struct rap_NetUserPasswordSet2 *r)
1416
struct tevent_req *req;
1417
struct dcerpc_rap_NetUserPasswordSet2_r_state *state;
1418
struct tevent_req *subreq;
1420
req = tevent_req_create(mem_ctx, &state,
1421
struct dcerpc_rap_NetUserPasswordSet2_r_state);
1426
state->out_mem_ctx = talloc_new(state);
1427
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1428
return tevent_req_post(req, ev);
1431
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1432
NULL, &ndr_table_rap,
1433
NDR_RAP_NETUSERPASSWORDSET2, state->out_mem_ctx, r);
1434
if (tevent_req_nomem(subreq, req)) {
1435
return tevent_req_post(req, ev);
1437
tevent_req_set_callback(subreq, dcerpc_rap_NetUserPasswordSet2_r_done, req);
1442
static void dcerpc_rap_NetUserPasswordSet2_r_done(struct tevent_req *subreq)
1444
struct tevent_req *req =
1445
tevent_req_callback_data(subreq,
1449
status = dcerpc_binding_handle_call_recv(subreq);
1450
if (!NT_STATUS_IS_OK(status)) {
1451
tevent_req_nterror(req, status);
1455
tevent_req_done(req);
1458
NTSTATUS dcerpc_rap_NetUserPasswordSet2_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1460
struct dcerpc_rap_NetUserPasswordSet2_r_state *state =
1461
tevent_req_data(req,
1462
struct dcerpc_rap_NetUserPasswordSet2_r_state);
1465
if (tevent_req_is_nterror(req, &status)) {
1466
tevent_req_received(req);
1470
talloc_steal(mem_ctx, state->out_mem_ctx);
1472
tevent_req_received(req);
1473
return NT_STATUS_OK;
1476
NTSTATUS dcerpc_rap_NetUserPasswordSet2_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetUserPasswordSet2 *r)
1480
status = dcerpc_binding_handle_call(h,
1481
NULL, &ndr_table_rap,
1482
NDR_RAP_NETUSERPASSWORDSET2, mem_ctx, r);
1487
struct dcerpc_rap_NetOEMChangePassword_r_state {
1488
TALLOC_CTX *out_mem_ctx;
1491
static void dcerpc_rap_NetOEMChangePassword_r_done(struct tevent_req *subreq);
1493
struct tevent_req *dcerpc_rap_NetOEMChangePassword_r_send(TALLOC_CTX *mem_ctx,
1494
struct tevent_context *ev,
1495
struct dcerpc_binding_handle *h,
1496
struct rap_NetOEMChangePassword *r)
1498
struct tevent_req *req;
1499
struct dcerpc_rap_NetOEMChangePassword_r_state *state;
1500
struct tevent_req *subreq;
1502
req = tevent_req_create(mem_ctx, &state,
1503
struct dcerpc_rap_NetOEMChangePassword_r_state);
1508
state->out_mem_ctx = talloc_new(state);
1509
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1510
return tevent_req_post(req, ev);
1513
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1514
NULL, &ndr_table_rap,
1515
NDR_RAP_NETOEMCHANGEPASSWORD, state->out_mem_ctx, r);
1516
if (tevent_req_nomem(subreq, req)) {
1517
return tevent_req_post(req, ev);
1519
tevent_req_set_callback(subreq, dcerpc_rap_NetOEMChangePassword_r_done, req);
1524
static void dcerpc_rap_NetOEMChangePassword_r_done(struct tevent_req *subreq)
1526
struct tevent_req *req =
1527
tevent_req_callback_data(subreq,
1531
status = dcerpc_binding_handle_call_recv(subreq);
1532
if (!NT_STATUS_IS_OK(status)) {
1533
tevent_req_nterror(req, status);
1537
tevent_req_done(req);
1540
NTSTATUS dcerpc_rap_NetOEMChangePassword_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1542
struct dcerpc_rap_NetOEMChangePassword_r_state *state =
1543
tevent_req_data(req,
1544
struct dcerpc_rap_NetOEMChangePassword_r_state);
1547
if (tevent_req_is_nterror(req, &status)) {
1548
tevent_req_received(req);
1552
talloc_steal(mem_ctx, state->out_mem_ctx);
1554
tevent_req_received(req);
1555
return NT_STATUS_OK;
1558
NTSTATUS dcerpc_rap_NetOEMChangePassword_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetOEMChangePassword *r)
1562
status = dcerpc_binding_handle_call(h,
1563
NULL, &ndr_table_rap,
1564
NDR_RAP_NETOEMCHANGEPASSWORD, mem_ctx, r);
1569
struct dcerpc_rap_NetUserGetInfo_r_state {
1570
TALLOC_CTX *out_mem_ctx;
1573
static void dcerpc_rap_NetUserGetInfo_r_done(struct tevent_req *subreq);
1575
struct tevent_req *dcerpc_rap_NetUserGetInfo_r_send(TALLOC_CTX *mem_ctx,
1576
struct tevent_context *ev,
1577
struct dcerpc_binding_handle *h,
1578
struct rap_NetUserGetInfo *r)
1580
struct tevent_req *req;
1581
struct dcerpc_rap_NetUserGetInfo_r_state *state;
1582
struct tevent_req *subreq;
1584
req = tevent_req_create(mem_ctx, &state,
1585
struct dcerpc_rap_NetUserGetInfo_r_state);
1590
state->out_mem_ctx = talloc_new(state);
1591
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1592
return tevent_req_post(req, ev);
1595
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1596
NULL, &ndr_table_rap,
1597
NDR_RAP_NETUSERGETINFO, state->out_mem_ctx, r);
1598
if (tevent_req_nomem(subreq, req)) {
1599
return tevent_req_post(req, ev);
1601
tevent_req_set_callback(subreq, dcerpc_rap_NetUserGetInfo_r_done, req);
1606
static void dcerpc_rap_NetUserGetInfo_r_done(struct tevent_req *subreq)
1608
struct tevent_req *req =
1609
tevent_req_callback_data(subreq,
1613
status = dcerpc_binding_handle_call_recv(subreq);
1614
if (!NT_STATUS_IS_OK(status)) {
1615
tevent_req_nterror(req, status);
1619
tevent_req_done(req);
1622
NTSTATUS dcerpc_rap_NetUserGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1624
struct dcerpc_rap_NetUserGetInfo_r_state *state =
1625
tevent_req_data(req,
1626
struct dcerpc_rap_NetUserGetInfo_r_state);
1629
if (tevent_req_is_nterror(req, &status)) {
1630
tevent_req_received(req);
1634
talloc_steal(mem_ctx, state->out_mem_ctx);
1636
tevent_req_received(req);
1637
return NT_STATUS_OK;
1640
NTSTATUS dcerpc_rap_NetUserGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetUserGetInfo *r)
1644
status = dcerpc_binding_handle_call(h,
1645
NULL, &ndr_table_rap,
1646
NDR_RAP_NETUSERGETINFO, mem_ctx, r);
1651
struct dcerpc_rap_NetSessionEnum_r_state {
1652
TALLOC_CTX *out_mem_ctx;
1655
static void dcerpc_rap_NetSessionEnum_r_done(struct tevent_req *subreq);
1657
struct tevent_req *dcerpc_rap_NetSessionEnum_r_send(TALLOC_CTX *mem_ctx,
1658
struct tevent_context *ev,
1659
struct dcerpc_binding_handle *h,
1660
struct rap_NetSessionEnum *r)
1662
struct tevent_req *req;
1663
struct dcerpc_rap_NetSessionEnum_r_state *state;
1664
struct tevent_req *subreq;
1666
req = tevent_req_create(mem_ctx, &state,
1667
struct dcerpc_rap_NetSessionEnum_r_state);
1672
state->out_mem_ctx = talloc_new(state);
1673
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1674
return tevent_req_post(req, ev);
1677
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1678
NULL, &ndr_table_rap,
1679
NDR_RAP_NETSESSIONENUM, state->out_mem_ctx, r);
1680
if (tevent_req_nomem(subreq, req)) {
1681
return tevent_req_post(req, ev);
1683
tevent_req_set_callback(subreq, dcerpc_rap_NetSessionEnum_r_done, req);
1688
static void dcerpc_rap_NetSessionEnum_r_done(struct tevent_req *subreq)
1690
struct tevent_req *req =
1691
tevent_req_callback_data(subreq,
1695
status = dcerpc_binding_handle_call_recv(subreq);
1696
if (!NT_STATUS_IS_OK(status)) {
1697
tevent_req_nterror(req, status);
1701
tevent_req_done(req);
1704
NTSTATUS dcerpc_rap_NetSessionEnum_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1706
struct dcerpc_rap_NetSessionEnum_r_state *state =
1707
tevent_req_data(req,
1708
struct dcerpc_rap_NetSessionEnum_r_state);
1711
if (tevent_req_is_nterror(req, &status)) {
1712
tevent_req_received(req);
1716
talloc_steal(mem_ctx, state->out_mem_ctx);
1718
tevent_req_received(req);
1719
return NT_STATUS_OK;
1722
NTSTATUS dcerpc_rap_NetSessionEnum_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetSessionEnum *r)
1726
status = dcerpc_binding_handle_call(h,
1727
NULL, &ndr_table_rap,
1728
NDR_RAP_NETSESSIONENUM, mem_ctx, r);
1733
struct dcerpc_rap_NetSessionGetInfo_r_state {
1734
TALLOC_CTX *out_mem_ctx;
1737
static void dcerpc_rap_NetSessionGetInfo_r_done(struct tevent_req *subreq);
1739
struct tevent_req *dcerpc_rap_NetSessionGetInfo_r_send(TALLOC_CTX *mem_ctx,
1740
struct tevent_context *ev,
1741
struct dcerpc_binding_handle *h,
1742
struct rap_NetSessionGetInfo *r)
1744
struct tevent_req *req;
1745
struct dcerpc_rap_NetSessionGetInfo_r_state *state;
1746
struct tevent_req *subreq;
1748
req = tevent_req_create(mem_ctx, &state,
1749
struct dcerpc_rap_NetSessionGetInfo_r_state);
1754
state->out_mem_ctx = talloc_new(state);
1755
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1756
return tevent_req_post(req, ev);
1759
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1760
NULL, &ndr_table_rap,
1761
NDR_RAP_NETSESSIONGETINFO, state->out_mem_ctx, r);
1762
if (tevent_req_nomem(subreq, req)) {
1763
return tevent_req_post(req, ev);
1765
tevent_req_set_callback(subreq, dcerpc_rap_NetSessionGetInfo_r_done, req);
1770
static void dcerpc_rap_NetSessionGetInfo_r_done(struct tevent_req *subreq)
1772
struct tevent_req *req =
1773
tevent_req_callback_data(subreq,
1777
status = dcerpc_binding_handle_call_recv(subreq);
1778
if (!NT_STATUS_IS_OK(status)) {
1779
tevent_req_nterror(req, status);
1783
tevent_req_done(req);
1786
NTSTATUS dcerpc_rap_NetSessionGetInfo_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1788
struct dcerpc_rap_NetSessionGetInfo_r_state *state =
1789
tevent_req_data(req,
1790
struct dcerpc_rap_NetSessionGetInfo_r_state);
1793
if (tevent_req_is_nterror(req, &status)) {
1794
tevent_req_received(req);
1798
talloc_steal(mem_ctx, state->out_mem_ctx);
1800
tevent_req_received(req);
1801
return NT_STATUS_OK;
1804
NTSTATUS dcerpc_rap_NetSessionGetInfo_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetSessionGetInfo *r)
1808
status = dcerpc_binding_handle_call(h,
1809
NULL, &ndr_table_rap,
1810
NDR_RAP_NETSESSIONGETINFO, mem_ctx, r);
1815
struct dcerpc_rap_NetUserAdd_r_state {
1816
TALLOC_CTX *out_mem_ctx;
1819
static void dcerpc_rap_NetUserAdd_r_done(struct tevent_req *subreq);
1821
struct tevent_req *dcerpc_rap_NetUserAdd_r_send(TALLOC_CTX *mem_ctx,
1822
struct tevent_context *ev,
1823
struct dcerpc_binding_handle *h,
1824
struct rap_NetUserAdd *r)
1826
struct tevent_req *req;
1827
struct dcerpc_rap_NetUserAdd_r_state *state;
1828
struct tevent_req *subreq;
1830
req = tevent_req_create(mem_ctx, &state,
1831
struct dcerpc_rap_NetUserAdd_r_state);
1836
state->out_mem_ctx = talloc_new(state);
1837
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1838
return tevent_req_post(req, ev);
1841
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1842
NULL, &ndr_table_rap,
1843
NDR_RAP_NETUSERADD, state->out_mem_ctx, r);
1844
if (tevent_req_nomem(subreq, req)) {
1845
return tevent_req_post(req, ev);
1847
tevent_req_set_callback(subreq, dcerpc_rap_NetUserAdd_r_done, req);
1852
static void dcerpc_rap_NetUserAdd_r_done(struct tevent_req *subreq)
1854
struct tevent_req *req =
1855
tevent_req_callback_data(subreq,
1859
status = dcerpc_binding_handle_call_recv(subreq);
1860
if (!NT_STATUS_IS_OK(status)) {
1861
tevent_req_nterror(req, status);
1865
tevent_req_done(req);
1868
NTSTATUS dcerpc_rap_NetUserAdd_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1870
struct dcerpc_rap_NetUserAdd_r_state *state =
1871
tevent_req_data(req,
1872
struct dcerpc_rap_NetUserAdd_r_state);
1875
if (tevent_req_is_nterror(req, &status)) {
1876
tevent_req_received(req);
1880
talloc_steal(mem_ctx, state->out_mem_ctx);
1882
tevent_req_received(req);
1883
return NT_STATUS_OK;
1886
NTSTATUS dcerpc_rap_NetUserAdd_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetUserAdd *r)
1890
status = dcerpc_binding_handle_call(h,
1891
NULL, &ndr_table_rap,
1892
NDR_RAP_NETUSERADD, mem_ctx, r);
1897
struct dcerpc_rap_NetUserDelete_r_state {
1898
TALLOC_CTX *out_mem_ctx;
1901
static void dcerpc_rap_NetUserDelete_r_done(struct tevent_req *subreq);
1903
struct tevent_req *dcerpc_rap_NetUserDelete_r_send(TALLOC_CTX *mem_ctx,
1904
struct tevent_context *ev,
1905
struct dcerpc_binding_handle *h,
1906
struct rap_NetUserDelete *r)
1908
struct tevent_req *req;
1909
struct dcerpc_rap_NetUserDelete_r_state *state;
1910
struct tevent_req *subreq;
1912
req = tevent_req_create(mem_ctx, &state,
1913
struct dcerpc_rap_NetUserDelete_r_state);
1918
state->out_mem_ctx = talloc_new(state);
1919
if (tevent_req_nomem(state->out_mem_ctx, req)) {
1920
return tevent_req_post(req, ev);
1923
subreq = dcerpc_binding_handle_call_send(state, ev, h,
1924
NULL, &ndr_table_rap,
1925
NDR_RAP_NETUSERDELETE, state->out_mem_ctx, r);
1926
if (tevent_req_nomem(subreq, req)) {
1927
return tevent_req_post(req, ev);
1929
tevent_req_set_callback(subreq, dcerpc_rap_NetUserDelete_r_done, req);
1934
static void dcerpc_rap_NetUserDelete_r_done(struct tevent_req *subreq)
1936
struct tevent_req *req =
1937
tevent_req_callback_data(subreq,
1941
status = dcerpc_binding_handle_call_recv(subreq);
1942
if (!NT_STATUS_IS_OK(status)) {
1943
tevent_req_nterror(req, status);
1947
tevent_req_done(req);
1950
NTSTATUS dcerpc_rap_NetUserDelete_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
1952
struct dcerpc_rap_NetUserDelete_r_state *state =
1953
tevent_req_data(req,
1954
struct dcerpc_rap_NetUserDelete_r_state);
1957
if (tevent_req_is_nterror(req, &status)) {
1958
tevent_req_received(req);
1962
talloc_steal(mem_ctx, state->out_mem_ctx);
1964
tevent_req_received(req);
1965
return NT_STATUS_OK;
1968
NTSTATUS dcerpc_rap_NetUserDelete_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetUserDelete *r)
1972
status = dcerpc_binding_handle_call(h,
1973
NULL, &ndr_table_rap,
1974
NDR_RAP_NETUSERDELETE, mem_ctx, r);
1979
struct dcerpc_rap_NetRemoteTOD_r_state {
1980
TALLOC_CTX *out_mem_ctx;
1983
static void dcerpc_rap_NetRemoteTOD_r_done(struct tevent_req *subreq);
1985
struct tevent_req *dcerpc_rap_NetRemoteTOD_r_send(TALLOC_CTX *mem_ctx,
1986
struct tevent_context *ev,
1987
struct dcerpc_binding_handle *h,
1988
struct rap_NetRemoteTOD *r)
1990
struct tevent_req *req;
1991
struct dcerpc_rap_NetRemoteTOD_r_state *state;
1992
struct tevent_req *subreq;
1994
req = tevent_req_create(mem_ctx, &state,
1995
struct dcerpc_rap_NetRemoteTOD_r_state);
2000
state->out_mem_ctx = talloc_new(state);
2001
if (tevent_req_nomem(state->out_mem_ctx, req)) {
2002
return tevent_req_post(req, ev);
2005
subreq = dcerpc_binding_handle_call_send(state, ev, h,
2006
NULL, &ndr_table_rap,
2007
NDR_RAP_NETREMOTETOD, state->out_mem_ctx, r);
2008
if (tevent_req_nomem(subreq, req)) {
2009
return tevent_req_post(req, ev);
2011
tevent_req_set_callback(subreq, dcerpc_rap_NetRemoteTOD_r_done, req);
2016
static void dcerpc_rap_NetRemoteTOD_r_done(struct tevent_req *subreq)
2018
struct tevent_req *req =
2019
tevent_req_callback_data(subreq,
2023
status = dcerpc_binding_handle_call_recv(subreq);
2024
if (!NT_STATUS_IS_OK(status)) {
2025
tevent_req_nterror(req, status);
2029
tevent_req_done(req);
2032
NTSTATUS dcerpc_rap_NetRemoteTOD_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx)
2034
struct dcerpc_rap_NetRemoteTOD_r_state *state =
2035
tevent_req_data(req,
2036
struct dcerpc_rap_NetRemoteTOD_r_state);
2039
if (tevent_req_is_nterror(req, &status)) {
2040
tevent_req_received(req);
2044
talloc_steal(mem_ctx, state->out_mem_ctx);
2046
tevent_req_received(req);
2047
return NT_STATUS_OK;
2050
NTSTATUS dcerpc_rap_NetRemoteTOD_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct rap_NetRemoteTOD *r)
2054
status = dcerpc_binding_handle_call(h,
2055
NULL, &ndr_table_rap,
2056
NDR_RAP_NETREMOTETOD, mem_ctx, r);