summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/srvsvc.idl
blob: 4d737a6c0d72e99f9c50b9198fce41e876096fe5 (plain)
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
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
#include "idl_types.h"

/*
  srvsvc interface definitions
*/

[ uuid(4b324fc8-1670-01d3-1278-5a47bf6ee188),
  version(3.0),
  pointer_default(unique)
] interface srvsvc
{
/**************************/
/* srvsvc_NetCharDev      */
/**************************/
	typedef struct {
		unistr *device;
	} srvsvc_NetCharDevInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetCharDevInfo0 *array;
	} srvsvc_NetCharDevCtr0;

	typedef struct {
		unistr *device;
		uint32 status;
		unistr *user;
		uint32 time;
	} srvsvc_NetCharDevInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetCharDevInfo1 *array;
	} srvsvc_NetCharDevCtr1;

	typedef union {
		[case(0)] srvsvc_NetCharDevInfo0 *info0;
		[case(1)] srvsvc_NetCharDevInfo1 *info1;
		[default] ;
	} srvsvc_NetCharDevInfo;

	typedef union {
		[case(0)] srvsvc_NetCharDevCtr0 *ctr0;
		[case(1)] srvsvc_NetCharDevCtr1 *ctr1;
		[default] ;
	} srvsvc_NetCharDevCtr;

	/******************/
	/* Function: 0x00 */
	WERROR srvsvc_NetCharDevEnum(
		[in]   unistr *server_unc, 
		[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetCharDevCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x01 */
	WERROR srvsvc_NetCharDevGetInfo(
		[in]   unistr *server_unc,
		[in]   unistr device_name,
		[in]   uint32 level,
		[out,switch_is(level)]   srvsvc_NetCharDevInfo info
		);

	/******************/
	/* Function: 0x02 */
	WERROR srvsvc_NetCharDevControl(
		[in]   unistr *server_unc,
		[in]   unistr device_name,
		[in]   uint32 opcode
		);

/**************************/
/* srvsvc_NetCharDevQ     */
/**************************/
	typedef struct {
		unistr *device;
	} srvsvc_NetCharDevQInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetCharDevQInfo0 *array;
	} srvsvc_NetCharDevQCtr0;

	typedef struct {
		unistr *device;
		uint32 priority;
		unistr *devices;
		uint32 users;
		uint32 num_ahead;
	} srvsvc_NetCharDevQInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetCharDevQInfo1 *array;
	} srvsvc_NetCharDevQCtr1;

	typedef union {
		[case(0)] srvsvc_NetCharDevQInfo0 *info0;
		[case(1)] srvsvc_NetCharDevQInfo1 *info1;
		[default] ;
	} srvsvc_NetCharDevQInfo;

	typedef union {
		[case(0)] srvsvc_NetCharDevQCtr0 *ctr0;
		[case(1)] srvsvc_NetCharDevQCtr1 *ctr1;
		[default] ;
	} srvsvc_NetCharDevQCtr;

	/******************/
	/* Function: 0x03 */
	WERROR srvsvc_NetCharDevQEnum(
		[in]   unistr *server_unc,
		[in]   unistr *user,
		[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetCharDevQCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x04 */
	WERROR srvsvc_NetCharDevQGetInfo(
		[in]   unistr *server_unc,
		[in]   unistr queue_name,
		[in]   unistr user,
		[in]   uint32 level,
		[out,switch_is(level)]   srvsvc_NetCharDevQInfo info
		);

	/******************/
	/* Function: 0x05 */
	WERROR srvsvc_NetCharDevQSetInfo(
		[in]   unistr *server_unc,
		[in]   unistr queue_name,
		[in]   uint32 level,
		[in,switch_is(level)]   srvsvc_NetCharDevQInfo info,
		[in,out]   uint32 *parm_error
		);

	/******************/
	/* Function: 0x06 */
	WERROR srvsvc_NetCharDevQPurge(
		[in]   unistr *server_unc,
		[in]   unistr queue_name
		);

	/******************/
	/* Function: 0x07 */
	WERROR srvsvc_NetCharDevQPurgeSelf(
		[in]   unistr *server_unc,
		[in]   unistr queue_name,
		[in]   unistr computer_name
		);

/**************************/
/* srvsvc_NetConn         */
/**************************/
	typedef struct {
		uint32 conn_id;
	} srvsvc_NetConnInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetConnInfo0 *array;
	} srvsvc_NetConnCtr0;

	typedef struct {
		uint32 conn_id;
		uint32 conn_type;
		uint32 num_open;
		uint32 num_users;
		uint32 conn_time;
		unistr *user;
		unistr *client;
	} srvsvc_NetConnInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetConnInfo1 *array;
	} srvsvc_NetConnCtr1;

	typedef union {
		[case(0)] srvsvc_NetConnCtr0 *ctr0;
		[case(1)] srvsvc_NetConnCtr1 *ctr1;
		[default] ;
	} srvsvc_NetConnCtr;

	/******************/
	/* Function: 0x08 */
	WERROR srvsvc_NetConnEnum(
		[in]   unistr *server_unc,
		[in]   unistr *path,
		[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetConnCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

/**************************/
/* srvsvc_NetFile         */
/**************************/
	typedef struct {
		uint32 fid;
	} srvsvc_NetFileInfo2;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetFileInfo2 *array;
	} srvsvc_NetFileCtr2;

	typedef struct {
		uint32 fid;
		uint32 permissions;
		uint32 num_locks;
		unistr *path;
		unistr *user;
	} srvsvc_NetFileInfo3;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetFileInfo3 *array;
	} srvsvc_NetFileCtr3;

	typedef union {
		[case(2)] srvsvc_NetFileInfo2 *info2;
		[case(3)] srvsvc_NetFileInfo3 *info3;
		[default] ;
	} srvsvc_NetFileInfo;

	typedef union {
		[case(2)] srvsvc_NetFileCtr2 *ctr2;
		[case(3)] srvsvc_NetFileCtr3 *ctr3;
		[default] ;
	} srvsvc_NetFileCtr;

	/******************/
	/* Function: 0x09 */
	WERROR srvsvc_NetFileEnum(
		[in]   unistr *server_unc,
		[in]   unistr *path,
		[in]   unistr *user,
		[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetFileCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x0a */
	WERROR srvsvc_NetFileGetInfo(
		[in]   unistr *server_unc,
		[in]   uint32 fid,
		[in]   uint32 level,
		[out,switch_is(level)]   srvsvc_NetFileInfo info
		);

	/******************/
	/* Function: 0x0b */
	WERROR srvsvc_NetFileClose(
		[in]   unistr *server_unc,
		[in]   uint32 fid	
		);

/**************************/
/* srvsvc_NetSess         */
/**************************/
	typedef struct {
		unistr *client;
	} srvsvc_NetSessInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetSessInfo0 *array;
	} srvsvc_NetSessCtr0;

	typedef struct {
		unistr *client;
		unistr *user;
		uint32 num_open;
		uint32 time;
		uint32 idle_time;
		uint32 user_flags;
	} srvsvc_NetSessInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetSessInfo1 *array;
	} srvsvc_NetSessCtr1;

	typedef struct {
		unistr *client;
		unistr *user;
		uint32 num_open;
		uint32 time;
		uint32 idle_time;
		uint32 user_flags;
		unistr *client_type;
	} srvsvc_NetSessInfo2;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetSessInfo2 *array;
	} srvsvc_NetSessCtr2;

	typedef struct {
		unistr *client;
		unistr *user;
		uint32 time;
		uint32 idle_time;
	} srvsvc_NetSessInfo10;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetSessInfo10 *array;
	} srvsvc_NetSessCtr10;

	typedef struct {
		unistr *client;
		unistr *user;
		uint32 num_open;
		uint32 time;
		uint32 idle_time;
		uint32 user_flags;
		unistr *client_type;
		unistr *transport;
	} srvsvc_NetSessInfo502;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetSessInfo502 *array;
	} srvsvc_NetSessCtr502;

	typedef union {
		[case(0)] srvsvc_NetSessCtr0 *ctr0;
		[case(1)] srvsvc_NetSessCtr1 *ctr1;
		[case(2)] srvsvc_NetSessCtr2 *ctr2;
		[case(10)] srvsvc_NetSessCtr10 *ctr10;
		[case(502)] srvsvc_NetSessCtr502 *ctr502;
		[default] ;
	} srvsvc_NetSessCtr;

	/******************/
	/* Function: 0x0c */
	WERROR srvsvc_NetSessEnum(
		[in]   unistr *server_unc,
		[in]   unistr *client,
		[in]   unistr *user,
		[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetSessCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x0d */
	WERROR srvsvc_NetSessDel(
		[in]   unistr *server_unc,
		[in]   unistr *client,
		[in]   unistr *user
		);

/**************************/
/* srvsvc_NetShare        */
/**************************/
	typedef struct {
		unistr *name;
	} srvsvc_NetShareInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetShareInfo0 *array;
	} srvsvc_NetShareCtr0;

	typedef struct {
		unistr *name;
		uint32 type;
		unistr *comment;
	} srvsvc_NetShareInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetShareInfo1 *array;
	} srvsvc_NetShareCtr1;

	typedef struct {
		unistr *name;
		uint32 type;
		unistr *comment;
		uint32 permissions;
		uint32 max_users;
		uint32 current_users;
		unistr *path;
		unistr *password;
	} srvsvc_NetShareInfo2;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetShareInfo2 *array;
	} srvsvc_NetShareCtr2;

	typedef struct {
		unistr *name;
		uint32 type;
		unistr *comment;
		uint32 csc_policy;
	} srvsvc_NetShareInfo501;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetShareInfo501 *array;
	} srvsvc_NetShareCtr501;

	typedef struct {
		unistr *name;
		uint32 type;
		unistr *comment;
		uint32 permissions;
		uint32 max_users;
		uint32 current_users;
		unistr *path;
		unistr *password;
		uint32 unknown;
		[subcontext(4)] security_descriptor *sd;
	} srvsvc_NetShareInfo502;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetShareInfo502 *array;
	} srvsvc_NetShareCtr502;

	typedef union {
		[case(0)] srvsvc_NetShareInfo0 *info0;
		[case(1)] srvsvc_NetShareInfo1 *info1;
		[case(2)] srvsvc_NetShareInfo2 *info2;
		[case(501)] srvsvc_NetShareInfo501 *info501;
		[case(502)] srvsvc_NetShareInfo502 *info502;
		[default] ;
	} srvsvc_NetShareInfo;

	typedef union {
		[case(0)] srvsvc_NetShareCtr0 *ctr0;
		[case(1)] srvsvc_NetShareCtr1 *ctr1;
		[case(2)] srvsvc_NetShareCtr2 *ctr2;
		[case(501)] srvsvc_NetShareCtr501 *ctr501;
		[case(502)] srvsvc_NetShareCtr502 *ctr502;
		[default] ;
	} srvsvc_NetShareCtr;

	/******************/
	/* Function: 0x0e */
	WERROR srvsvc_NetShareAdd(
		[in]   unistr *server_unc,
		[in]   uint32 level,
		[in,switch_is(level)] srvsvc_NetShareInfo info,
		[in,out]   uint32 *parm_error
		);

	/******************/
	/* Function: 0x0f */
	WERROR srvsvc_NetShareEnumAll (
		[in]   unistr *server_unc,
		[in,out]   uint32 level,
		[in,out,switch_is(level)] srvsvc_NetShareCtr ctr,
		[in]   uint32 max_buffer,
		[out]  uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x10 */
	WERROR srvsvc_NetShareGetInfo(
		[in]   unistr *server_unc,
		[in]   unistr *share_name,
		[in]   uint32 level,
		[out,switch_is(level)] srvsvc_NetShareInfo info
		);

	/******************/
	/* Function: 0x11 */
	WERROR srvsvc_NetShareSetInfo(
		[in]   unistr *server_unc,
		[in]   unistr *share_name,
		[in]   uint32 level,
		[in,switch_is(level)] srvsvc_NetShareInfo info,
		[in,out]   uint32 *parm_error
		);

	/******************/
	/* Function: 0x12 */
	WERROR srvsvc_NetShareDel(
		[in]   unistr *server_unc,
		[in]   unistr *share_name,
		[in]   uint32 reserved
		);

	/******************/
	/* Function: 0x13 */
	WERROR srvsvc_NetShareDelSticky(
		[in]   unistr *server_unc,
		[in]   unistr *share_name,
		[in]   uint32 reserved
		);
	
	/******************/
	/* Function: 0x14 */
	WERROR srvsvc_NetShareCheck(
		[in]   unistr *server_unc,
		[in]   unistr *share_name,
		[out]   uint32 type
		);

/**************************/
/* srvsvc_NetSrv          */
/**************************/
	typedef struct {
		uint32 platform_id;
		unistr *server_unc;
	} srvsvc_NetSrvInfo100;

	typedef struct {
		uint32 platform_id;
		unistr *server_unc;
		uint32 ver_major;
		uint32 ver_minor;
		uint32 type;
		unistr *comment;
	} srvsvc_NetSrvInfo101;

	typedef struct {
		uint32 platform_id;
		unistr *server_unc;
		uint32 ver_major;
		uint32 ver_minor;
		uint32 type;
		unistr *comment;
		uint32 users;
		uint32 disc;
		uint32 hidden;
		uint32 announce;
		uint32 anndelta;
		uint32 licences;
		unistr *userpath;
	} srvsvc_NetSrvInfo102;

	typedef struct {
		uint32 ulist_mtime;
		uint32 glist_mtime;
		uint32 alist_mtime;
		unistr *alerts;
		uint32 security;
		uint32 numadmin;
		uint32 lanmask;
		unistr *guestaccount;
		uint32 chdevs;
		uint32 chdevqs;
		uint32 chdevjobs;
		uint32 connections;
		uint32 shares;
		uint32 openfiles;
		uint32 sessopen;
		uint32 sesssvc;
		uint32 sessreqs;
		uint32 opensearch;
		uint32 activelocks;
		uint32 sizereqbufs;
		uint32 numbigbufs;
		uint32 numfiletasks;
		uint32 alertsched;
		uint32 eroralert;
		uint32 logonalert;
		uint32 accessalert;
		uint32 diskalert;
		uint32 netioalert;
		uint32 maxaudits;
		unistr *srvheuristics;
	} srvsvc_NetSrvInfo402;

	typedef struct {
		uint32 ulist_mtime;
		uint32 glist_mtime;
		uint32 alist_mtime;
		unistr *alerts;
		uint32 security;
		uint32 numadmin;
		uint32 lanmask;
		unistr *guestaccount;
		uint32 chdevs;
		uint32 chdevqs;
		uint32 chdevjobs;
		uint32 connections;
		uint32 shares;
		uint32 openfiles;
		uint32 sessopen;
		uint32 sesssvc;
		uint32 sessreqs;
		uint32 opensearch;
		uint32 activelocks;
		uint32 sizereqbufs;
		uint32 numbigbufs;
		uint32 numfiletasks;
		uint32 alertsched;
		uint32 eroralert;
		uint32 logonalert;
		uint32 accessalert;
		uint32 diskalert;
		uint32 netioalert;
		uint32 maxaudits;
		unistr *srvheuristics;
		uint32 auditedevents;
		uint32 auditprofile;
		unistr *autopath;
	} srvsvc_NetSrvInfo403;

	typedef struct {
		uint32 sessopen;
		uint32 sesssvc;
		uint32 opensearch;
		uint32 sizereqbufs;
		uint32 initworkitems;
		uint32 maxworkitems;
		uint32 rawworkitems;
		uint32 irpstacksize;
		uint32 maxrawbuflen;
		uint32 sessusers;
		uint32 sessconns;
		uint32 maxpagedmemoryusage;
		uint32 maxnonpagedmemoryusage;
		uint32 enablesoftcompat;
		uint32 enableforcedlogoff;
		uint32 timesource;
		uint32 acceptdownlevelapis;
		uint32 lmannounce;
	} srvsvc_NetSrvInfo502;

        typedef struct{
		uint32 sessopen;
		uint32 sesssvc;
		uint32 opensearch;
		uint32 sizereqbufs;
		uint32 initworkitems;
		uint32 maxworkitems;
		uint32 rawworkitems;
		uint32 irpstacksize;
		uint32 maxrawbuflen;
		uint32 sessusers;
		uint32 sessconns;
		uint32 maxpagedmemoryusage;
		uint32 maxnonpagedmemoryusage;
		uint32 enablesoftcompat;
		uint32 enableforcedlogoff;
		uint32 timesource;
		uint32 acceptdownlevelapis;
		uint32 lmannounce;
		unistr *domain;
		uint32 maxcopyreadlen;
		uint32 maxcopywritelen;
		uint32 minkeepsearch;
		uint32 maxkeepsearch;
		uint32 minkeepcomplsearch;
		uint32 maxkeepcomplsearch;
		uint32 threadcountadd;
		uint32 numlockthreads;
		uint32 scavtimeout;
		uint32 minrcvqueue;
		uint32 minfreeworkitems;
		uint32 xactmemsize;
		uint32 threadpriority;
		uint32 maxmpxct;
		uint32 oplockbreakwait;
		uint32 oplockbreakresponsewait;
		uint32 enableoplocks;
		uint32 enableoplockforceclose;
		uint32 enablefcbopens;
		uint32 enableraw;
		uint32 enablesharednetdrives;
		uint32 minfreeconnections;
		uint32 maxfreeconnections;
        } srvsvc_NetSrvInfo503;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo599;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1005;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1010;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1016;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1017;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1018;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1107;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1501;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1502;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1503;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1506;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1509;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1510;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1511;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1512;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1513;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1514;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1515;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1516;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1518;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1520;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1521;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1522;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1523;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1524;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1525;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1528;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1529;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1530;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1533;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1534;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1535;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1536;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1537;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1538;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1539;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1540;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1541;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1542;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1543;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1544;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1545;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1546;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1547;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1548;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1549;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1550;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1552;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1553;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1554;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1555;

        typedef struct{
                uint32 dummy;
        } srvsvc_NetSrvInfo1556;


	typedef union{
                [case(100)]     srvsvc_NetSrvInfo100 *info100;
                [case(101)]     srvsvc_NetSrvInfo101 *info101;
                [case(102)]     srvsvc_NetSrvInfo102 *info102;
                [case(402)]     srvsvc_NetSrvInfo402 *info402;
                [case(403)]     srvsvc_NetSrvInfo403 *info403;
                [case(502)]     srvsvc_NetSrvInfo502 *info502;
                [case(503)]     srvsvc_NetSrvInfo503 *info503;
                [case(599)]     srvsvc_NetSrvInfo599 *info599;
                [case(1005)]    srvsvc_NetSrvInfo1005 *info1005;
                [case(1010)]    srvsvc_NetSrvInfo1010 *info1010;
                [case(1016)]    srvsvc_NetSrvInfo1016 *info1016;
                [case(1017)]    srvsvc_NetSrvInfo1017 *info1017;
                [case(1018)]    srvsvc_NetSrvInfo1018 *info1018;
                [case(1107)]    srvsvc_NetSrvInfo1107 *info1107;
                [case(1501)]    srvsvc_NetSrvInfo1501 *info1501;
                [case(1502)]    srvsvc_NetSrvInfo1502 *info1502;
                [case(1503)]    srvsvc_NetSrvInfo1503 *info1503;
                [case(1506)]    srvsvc_NetSrvInfo1506 *info1506;
                [case(1509)]    srvsvc_NetSrvInfo1509 *info1509;
                [case(1510)]    srvsvc_NetSrvInfo1510 *info1510;
                [case(1511)]    srvsvc_NetSrvInfo1511 *info1511;
                [case(1512)]    srvsvc_NetSrvInfo1512 *info1512;
                [case(1513)]    srvsvc_NetSrvInfo1513 *info1513;
                [case(1514)]    srvsvc_NetSrvInfo1514 *info1514;
                [case(1515)]    srvsvc_NetSrvInfo1515 *info1515;
                [case(1516)]    srvsvc_NetSrvInfo1516 *info1516;
                [case(1518)]    srvsvc_NetSrvInfo1518 *info1518;
                [case(1520)]    srvsvc_NetSrvInfo1520 *info1520;
                [case(1521)]    srvsvc_NetSrvInfo1521 *info1521;
                [case(1522)]    srvsvc_NetSrvInfo1522 *info1522;
                [case(1523)]    srvsvc_NetSrvInfo1523 *info1523;
                [case(1524)]    srvsvc_NetSrvInfo1524 *info1524;
                [case(1525)]    srvsvc_NetSrvInfo1525 *info1525;
                [case(1528)]    srvsvc_NetSrvInfo1528 *info1528;
                [case(1529)]    srvsvc_NetSrvInfo1529 *info1529;
                [case(1530)]    srvsvc_NetSrvInfo1530 *info1530;
                [case(1533)]    srvsvc_NetSrvInfo1533 *info1533;
                [case(1534)]    srvsvc_NetSrvInfo1534 *info1534;
                [case(1535)]    srvsvc_NetSrvInfo1535 *info1535;
                [case(1536)]    srvsvc_NetSrvInfo1536 *info1536;
                [case(1537)]    srvsvc_NetSrvInfo1537 *info1537;
                [case(1538)]    srvsvc_NetSrvInfo1538 *info1538;
                [case(1539)]    srvsvc_NetSrvInfo1539 *info1539;
                [case(1540)]    srvsvc_NetSrvInfo1540 *info1540;
                [case(1541)]    srvsvc_NetSrvInfo1541 *info1541;
                [case(1542)]    srvsvc_NetSrvInfo1542 *info1542;
                [case(1543)]    srvsvc_NetSrvInfo1543 *info1543;
                [case(1544)]    srvsvc_NetSrvInfo1544 *info1544;
                [case(1545)]    srvsvc_NetSrvInfo1545 *info1545;
                [case(1546)]    srvsvc_NetSrvInfo1546 *info1546;
                [case(1547)]    srvsvc_NetSrvInfo1547 *info1547;
                [case(1548)]    srvsvc_NetSrvInfo1548 *info1548;
                [case(1549)]    srvsvc_NetSrvInfo1549 *info1549;
                [case(1550)]    srvsvc_NetSrvInfo1550 *info1550;
                [case(1552)]    srvsvc_NetSrvInfo1552 *info1552;
                [case(1553)]    srvsvc_NetSrvInfo1553 *info1553;
                [case(1554)]    srvsvc_NetSrvInfo1554 *info1554;
                [case(1555)]    srvsvc_NetSrvInfo1555 *info1555;
                [case(1556)]    srvsvc_NetSrvInfo1556 *info1556;
		[default];
	} srvsvc_NetSrvInfo;

	/******************/
	/* Function: 0x15 */
	WERROR srvsvc_NetSrvGetInfo(
		[in]   unistr *server_unc,
		[in]   uint32 level,
		[out,switch_is(level)] srvsvc_NetSrvInfo info
		);

	/******************/
	/* Function: 0x16 */
	WERROR srvsvc_NetSrvSetInfo(
		[in]   unistr *server_unc,
		[in]   uint32 level,
		[in,switch_is(level)] srvsvc_NetSrvInfo info,
		[in,out]   uint32 *parm_error
		);

/**************************/
/* srvsvc_NetDisk         */
/**************************/
	typedef struct {
		uint32 unknown;
		lstring disk;
		uint16 unknown2;
	} srvsvc_NetDiskInfo0;

	typedef struct {
		uint32 unknown;
		uint32 count;
		[size_is(count)] srvsvc_NetDiskInfo0 array[];
	} srvsvc_NetDiskCtr0;

	typedef union {
		[case(0)]  srvsvc_NetDiskCtr0 *ctr0;
	} srvsvc_NetDiskCtr;

	/******************/
	/* Function: 0x17 */
	WERROR srvsvc_NetDiskEnum(
		[in]      unistr *server_unc,
		[in]      uint32 level,
		[out]     uint32 count,
		[in,switch_is(level)] srvsvc_NetDiskCtr ctr,
		[out]     srvsvc_NetDiskCtr0 *ctr0,
		[in]      uint32 unknown,
		[out]     uint32 totalentries,
		[in,out]  uint32 *resume_handle
		);

	/******************/
	/* Function: 0x18 */
	NTSTATUS srvsvc_NETRSERVERSTATISTICSGET(
		);

	/******************/
	/* Function: 0x19 */
	NTSTATUS srvsvc_NETRSERVERTRANSPORTADD(
		);

/**************************/
/* srvsvc_NetTransport    */
/**************************/		
	typedef struct {
		uint32 count;
		uint8 addr[count];
	} srvsvc_NetTransportAddress;

	typedef struct {
		uint32 vcs;
		unistr *name;
		srvsvc_NetTransportAddress *addr;
		uint32 addr_len;
		unistr *net_addr;
	} srvsvc_NetTransportInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetTransportInfo0 *array;
	} srvsvc_NetTransportCtr0;

	typedef struct {
		uint32 vcs;
		unistr *name;
		srvsvc_NetTransportAddress *addr;
		uint32 addr_len;
		unistr *net_addr;
		unistr *domain;
	} srvsvc_NetTransportInfo1;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetTransportInfo1 *array;
	} srvsvc_NetTransportCtr1;

	typedef struct {
		uint32 dummy;
	} srvsvc_NetTransportInfo2;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetTransportInfo2 *array;
	} srvsvc_NetTransportCtr2;

	typedef struct {
		uint32 dummy;
	} srvsvc_NetTransportInfo3;

	typedef struct {
		uint32 count;
		[size_is(count)] srvsvc_NetTransportInfo3 *array;
	} srvsvc_NetTransportCtr3;

	typedef union {
		[case(0)] srvsvc_NetTransportInfo0 *info0;
		[case(1)] srvsvc_NetTransportInfo1 *info1;
		[case(2)] srvsvc_NetTransportInfo2 *info2;
		[case(3)] srvsvc_NetTransportInfo3 *info3;
		[default];
	} srvsvc_NetTransportInfo;

	typedef union {
		[case(0)] srvsvc_NetTransportCtr0 *ctr0;
		[case(1)] srvsvc_NetTransportCtr1 *ctr1;
		[case(2)] srvsvc_NetTransportCtr2 *ctr2;
		[case(3)] srvsvc_NetTransportCtr3 *ctr3;
		[default];
	} srvsvc_NetTransportCtr;

	/******************/
	/* Function: 0x1a */
	WERROR srvsvc_NetTransportEnum(
		[in]   unistr *server_unc,
		[in,out] uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetTransportCtr ctr,
		[in]   uint32 max_buffer,
		[out]   uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x1b */
	NTSTATUS srvsvc_NETRSERVERTRANSPORTDEL(
		);

	/******************/
	/* Function: 0x1c */
	NTSTATUS srvsvc_NET_REMOTE_TOD(
		);

	/******************/
	/* Function: 0x1d */
	NTSTATUS srvsvc_NETRSERVERSETSERVICEBITS(
		);

	/******************/
	/* Function: 0x1e */
	NTSTATUS srvsvc_NETRPRPATHTYPE(
		);

	/******************/
	/* Function: 0x1f */
	NTSTATUS srvsvc_NETRPRPATHCANONICALIZE(
		);

	/******************/
	/* Function: 0x20 */
	NTSTATUS srvsvc_NETRPRPATHCOMPARE(
		);

	/******************/
	/* Function: 0x21 */
	NTSTATUS srvsvc_NET_NAME_VALIDATE(
		);

	/******************/
	/* Function: 0x22 */
	NTSTATUS srvsvc_NETRPRNAMECANONICALIZE(
		);

	/******************/
	/* Function: 0x23 */
	NTSTATUS srvsvc_NETRPRNAMECOMPARE(
		);

	/******************/
	/* Function: 0x24 */
	/* Note, there must be some way to return entries read vs 
	   total entries ... */
	WERROR srvsvc_NetShareEnum(
		[in]       unistr *server_unc,
	 	[in,out]   uint32 level,
		[in,out,switch_is(level)]   srvsvc_NetShareCtr ctr,
		[in]       uint32 max_buffer,
		[out]      uint32 totalentries,
		[in,out]   uint32 *resume_handle
		);

	/******************/
	/* Function: 0x25 */
	NTSTATUS srvsvc_NETRSHAREDELSTART(
		);

	/******************/
	/* Function: 0x26 */
	NTSTATUS srvsvc_NETRSHAREDELCOMMIT(
		);

	/******************/
	/* Function: 0x27 */
	NTSTATUS srvsvc_NET_FILE_QUERY_SECDESC(
		);

	/******************/
	/* Function: 0x28 */
	NTSTATUS srvsvc_NET_FILE_SET_SECDESC(
		);

	/******************/
	/* Function: 0x29 */
	NTSTATUS srvsvc_NETRSERVERTRANSPORTADDEX(
		);

	/******************/
	/* Function: 0x2a */
	NTSTATUS srvsvc_NETRSERVERSETSERVICEBITSEX(
		);

	/******************/
	/* Function: 0x2b */
	NTSTATUS srvsvc_NETRDFSGETVERSION(
		);

	/******************/
	/* Function: 0x2c */
	NTSTATUS srvsvc_NETRDFSCREATELOCALPARTITION(
		);

	/******************/
	/* Function: 0x2d */
	NTSTATUS srvsvc_NETRDFSDELETELOCALPARTITION(
		);

	/******************/
	/* Function: 0x2e */
	NTSTATUS srvsvc_NETRDFSSETLOCALVOLUMESTATE(
		);

	/******************/
	/* Function: 0x2f */
	NTSTATUS srvsvc_NETRDFSSETSERVERINFO(
		);

	/******************/
	/* Function: 0x30 */
	NTSTATUS srvsvc_NETRDFSCREATEEXITPOINT(
		);

	/******************/
	/* Function: 0x31 */
	NTSTATUS srvsvc_NETRDFSDELETEEXITPOINT(
		);

	/******************/
	/* Function: 0x32 */
	NTSTATUS srvsvc_NETRDFSMODIFYPREFIX(
		);

	/******************/
	/* Function: 0x33 */
	NTSTATUS srvsvc_NETRDFSFIXLOCALVOLUME(
		);

	/******************/
	/* Function: 0x34 */
	NTSTATUS srvsvc_NETRDFSMANAGERREPORTSITEINFO(
		);

	/******************/
	/* Function: 0x35 */
	NTSTATUS srvsvc_NETRSERVERTRANSPORTDELEX(
		);
}