1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
|
/* dcerpc client calls auto-generated by pidl */
#include "includes.h"
NTSTATUS dcerpc_lsa_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_Close *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_CLOSE, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_Close,
(ndr_pull_fn_t) ndr_pull_lsa_Close,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_Delete(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_Delete *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_DELETE, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_Delete,
(ndr_pull_fn_t) ndr_pull_lsa_Delete,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_EnumPrivs(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_EnumPrivs *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_ENUMPRIVS, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_EnumPrivs,
(ndr_pull_fn_t) ndr_pull_lsa_EnumPrivs,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_QuerySecObj(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_QuerySecObj *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_QUERYSECOBJ, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_QuerySecObj,
(ndr_pull_fn_t) ndr_pull_lsa_QuerySecObj,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_SetSecObj(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_SetSecObj *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_SETSECOBJ, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_SetSecObj,
(ndr_pull_fn_t) ndr_pull_lsa_SetSecObj,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_ChangePassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_ChangePassword *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_CHANGEPASSWORD, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_ChangePassword,
(ndr_pull_fn_t) ndr_pull_lsa_ChangePassword,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_OpenPolicy(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_OpenPolicy *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_OPENPOLICY, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_OpenPolicy,
(ndr_pull_fn_t) ndr_pull_lsa_OpenPolicy,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_QueryInfoPolicy(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_QueryInfoPolicy *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_QUERYINFOPOLICY, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_QueryInfoPolicy,
(ndr_pull_fn_t) ndr_pull_lsa_QueryInfoPolicy,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_SetInfoPolicy(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_SetInfoPolicy *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_SETINFOPOLICY, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_SetInfoPolicy,
(ndr_pull_fn_t) ndr_pull_lsa_SetInfoPolicy,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_ClearAuditLog(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_ClearAuditLog *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_CLEARAUDITLOG, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_ClearAuditLog,
(ndr_pull_fn_t) ndr_pull_lsa_ClearAuditLog,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_CreateAccount(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_CreateAccount *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_CREATEACCOUNT, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_CreateAccount,
(ndr_pull_fn_t) ndr_pull_lsa_CreateAccount,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_EnumAccounts(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_EnumAccounts *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_ENUMACCOUNTS, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_EnumAccounts,
(ndr_pull_fn_t) ndr_pull_lsa_EnumAccounts,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_CreateTrustDom(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_CreateTrustDom *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_CREATETRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_CreateTrustDom,
(ndr_pull_fn_t) ndr_pull_lsa_CreateTrustDom,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_EnumTrustDom(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_EnumTrustDom *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_ENUMTRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_EnumTrustDom,
(ndr_pull_fn_t) ndr_pull_lsa_EnumTrustDom,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_LookupNames(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_LookupNames *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_LOOKUPNAMES, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_LookupNames,
(ndr_pull_fn_t) ndr_pull_lsa_LookupNames,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_LookupSids(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_LookupSids *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_LOOKUPSIDS, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_LookupSids,
(ndr_pull_fn_t) ndr_pull_lsa_LookupSids,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_CREATESECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct CREATESECRET *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_CREATESECRET, mem_ctx,
(ndr_push_fn_t) ndr_push_CREATESECRET,
(ndr_pull_fn_t) ndr_pull_CREATESECRET,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_OpenAccount(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_OpenAccount *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_OPENACCOUNT, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_OpenAccount,
(ndr_pull_fn_t) ndr_pull_lsa_OpenAccount,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_EnumPrivsAccount(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_EnumPrivsAccount *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_ENUMPRIVSACCOUNT, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_EnumPrivsAccount,
(ndr_pull_fn_t) ndr_pull_lsa_EnumPrivsAccount,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_ADDPRIVS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct ADDPRIVS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_ADDPRIVS, mem_ctx,
(ndr_push_fn_t) ndr_push_ADDPRIVS,
(ndr_pull_fn_t) ndr_pull_ADDPRIVS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_REMOVEPRIVS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct REMOVEPRIVS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_REMOVEPRIVS, mem_ctx,
(ndr_push_fn_t) ndr_push_REMOVEPRIVS,
(ndr_pull_fn_t) ndr_pull_REMOVEPRIVS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_GETQUOTAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct GETQUOTAS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_GETQUOTAS, mem_ctx,
(ndr_push_fn_t) ndr_push_GETQUOTAS,
(ndr_pull_fn_t) ndr_pull_GETQUOTAS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_SETQUOTAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct SETQUOTAS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_SETQUOTAS, mem_ctx,
(ndr_push_fn_t) ndr_push_SETQUOTAS,
(ndr_pull_fn_t) ndr_pull_SETQUOTAS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_GETSYSTEMACCOUNT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct GETSYSTEMACCOUNT *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_GETSYSTEMACCOUNT, mem_ctx,
(ndr_push_fn_t) ndr_push_GETSYSTEMACCOUNT,
(ndr_pull_fn_t) ndr_pull_GETSYSTEMACCOUNT,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_SETSYSTEMACCOUNT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct SETSYSTEMACCOUNT *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_SETSYSTEMACCOUNT, mem_ctx,
(ndr_push_fn_t) ndr_push_SETSYSTEMACCOUNT,
(ndr_pull_fn_t) ndr_pull_SETSYSTEMACCOUNT,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_OPENTRUSTDOM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct OPENTRUSTDOM *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_OPENTRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_OPENTRUSTDOM,
(ndr_pull_fn_t) ndr_pull_OPENTRUSTDOM,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_QUERYTRUSTDOM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct QUERYTRUSTDOM *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_QUERYTRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_QUERYTRUSTDOM,
(ndr_pull_fn_t) ndr_pull_QUERYTRUSTDOM,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_SETINFOTRUSTDOM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct SETINFOTRUSTDOM *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_SETINFOTRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_SETINFOTRUSTDOM,
(ndr_pull_fn_t) ndr_pull_SETINFOTRUSTDOM,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_OPENSECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct OPENSECRET *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_OPENSECRET, mem_ctx,
(ndr_push_fn_t) ndr_push_OPENSECRET,
(ndr_pull_fn_t) ndr_pull_OPENSECRET,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_SETSECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct SETSECRET *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_SETSECRET, mem_ctx,
(ndr_push_fn_t) ndr_push_SETSECRET,
(ndr_pull_fn_t) ndr_pull_SETSECRET,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_QUERYSECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct QUERYSECRET *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_QUERYSECRET, mem_ctx,
(ndr_push_fn_t) ndr_push_QUERYSECRET,
(ndr_pull_fn_t) ndr_pull_QUERYSECRET,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_LOOKUPPRIVVALUE(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct LOOKUPPRIVVALUE *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LOOKUPPRIVVALUE, mem_ctx,
(ndr_push_fn_t) ndr_push_LOOKUPPRIVVALUE,
(ndr_pull_fn_t) ndr_pull_LOOKUPPRIVVALUE,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_LookupPrivName(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_LookupPrivName *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_LOOKUPPRIVNAME, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_LookupPrivName,
(ndr_pull_fn_t) ndr_pull_lsa_LookupPrivName,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_PRIV_GET_DISPNAME(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct PRIV_GET_DISPNAME *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_PRIV_GET_DISPNAME, mem_ctx,
(ndr_push_fn_t) ndr_push_PRIV_GET_DISPNAME,
(ndr_pull_fn_t) ndr_pull_PRIV_GET_DISPNAME,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_DELETEOBJECT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct DELETEOBJECT *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_DELETEOBJECT, mem_ctx,
(ndr_push_fn_t) ndr_push_DELETEOBJECT,
(ndr_pull_fn_t) ndr_pull_DELETEOBJECT,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_ENUMACCTWITHRIGHT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct ENUMACCTWITHRIGHT *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_ENUMACCTWITHRIGHT, mem_ctx,
(ndr_push_fn_t) ndr_push_ENUMACCTWITHRIGHT,
(ndr_pull_fn_t) ndr_pull_ENUMACCTWITHRIGHT,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_EnumAccountRights(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_EnumAccountRights *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_ENUMACCOUNTRIGHTS, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_EnumAccountRights,
(ndr_pull_fn_t) ndr_pull_lsa_EnumAccountRights,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_ADDACCTRIGHTS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct ADDACCTRIGHTS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_ADDACCTRIGHTS, mem_ctx,
(ndr_push_fn_t) ndr_push_ADDACCTRIGHTS,
(ndr_pull_fn_t) ndr_pull_ADDACCTRIGHTS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_REMOVEACCTRIGHTS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct REMOVEACCTRIGHTS *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_REMOVEACCTRIGHTS, mem_ctx,
(ndr_push_fn_t) ndr_push_REMOVEACCTRIGHTS,
(ndr_pull_fn_t) ndr_pull_REMOVEACCTRIGHTS,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_QUERYTRUSTDOMINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct QUERYTRUSTDOMINFO *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_QUERYTRUSTDOMINFO, mem_ctx,
(ndr_push_fn_t) ndr_push_QUERYTRUSTDOMINFO,
(ndr_pull_fn_t) ndr_pull_QUERYTRUSTDOMINFO,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_SETTRUSTDOMINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct SETTRUSTDOMINFO *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_SETTRUSTDOMINFO, mem_ctx,
(ndr_push_fn_t) ndr_push_SETTRUSTDOMINFO,
(ndr_pull_fn_t) ndr_pull_SETTRUSTDOMINFO,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_DELETETRUSTDOM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct DELETETRUSTDOM *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_DELETETRUSTDOM, mem_ctx,
(ndr_push_fn_t) ndr_push_DELETETRUSTDOM,
(ndr_pull_fn_t) ndr_pull_DELETETRUSTDOM,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_STOREPRIVDATA(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct STOREPRIVDATA *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_STOREPRIVDATA, mem_ctx,
(ndr_push_fn_t) ndr_push_STOREPRIVDATA,
(ndr_pull_fn_t) ndr_pull_STOREPRIVDATA,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_RETRPRIVDATA(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct RETRPRIVDATA *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_RETRPRIVDATA, mem_ctx,
(ndr_push_fn_t) ndr_push_RETRPRIVDATA,
(ndr_pull_fn_t) ndr_pull_RETRPRIVDATA,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_lsa_OpenPolicy2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_OpenPolicy2 *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_LSA_OPENPOLICY2, mem_ctx,
(ndr_push_fn_t) ndr_push_lsa_OpenPolicy2,
(ndr_pull_fn_t) ndr_pull_lsa_OpenPolicy2,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_UNK_GET_CONNUSER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct UNK_GET_CONNUSER *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_UNK_GET_CONNUSER, mem_ctx,
(ndr_push_fn_t) ndr_push_UNK_GET_CONNUSER,
(ndr_pull_fn_t) ndr_pull_UNK_GET_CONNUSER,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
NTSTATUS dcerpc_QUERYINFO2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct QUERYINFO2 *r)
{
NTSTATUS status;
status = dcerpc_ndr_request(p, DCERPC_QUERYINFO2, mem_ctx,
(ndr_push_fn_t) ndr_push_QUERYINFO2,
(ndr_pull_fn_t) ndr_pull_QUERYINFO2,
r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
return r->out.result;
}
|