notifyd: Add notifydd
[Samba.git] / librpc / idl / srvsvc.idl
blobdb804e58c01f3392c4ec6eb30643c36bcb8be683
1 #include "idl_types.h"
3 /*
4 srvsvc interface definitions
5 */
6 import "misc.idl", "security.idl", "svcctl.idl";
8 [ uuid("4b324fc8-1670-01d3-1278-5a47bf6ee188"),
9 version(3.0),
10 endpoint("ncacn_np:[\\pipe\\srvsvc]", "ncacn_ip_tcp:", "ncalrpc:"),
11 pointer_default(unique),
12 helpstring("Server Service")
13 ] interface srvsvc
15 typedef bitmap svcctl_ServerType svcctl_ServerType;
16 typedef bitmap security_secinfo security_secinfo;
18 /**************************/
19 /* srvsvc_NetCharDev */
20 /**************************/
21 typedef struct {
22 [string,charset(UTF16)] uint16 *device;
23 } srvsvc_NetCharDevInfo0;
25 typedef struct {
26 uint32 count;
27 [size_is(count)] srvsvc_NetCharDevInfo0 *array;
28 } srvsvc_NetCharDevCtr0;
30 typedef struct {
31 [string,charset(UTF16)] uint16 *device;
32 uint32 status;
33 [string,charset(UTF16)] uint16 *user;
34 uint32 time;
35 } srvsvc_NetCharDevInfo1;
37 typedef struct {
38 uint32 count;
39 [size_is(count)] srvsvc_NetCharDevInfo1 *array;
40 } srvsvc_NetCharDevCtr1;
42 typedef union {
43 [case(0)] srvsvc_NetCharDevInfo0 *info0;
44 [case(1)] srvsvc_NetCharDevInfo1 *info1;
45 [default] ;
46 } srvsvc_NetCharDevInfo;
48 typedef union {
49 [case(0)] srvsvc_NetCharDevCtr0 *ctr0;
50 [case(1)] srvsvc_NetCharDevCtr1 *ctr1;
51 [default] ;
52 } srvsvc_NetCharDevCtr;
54 typedef struct {
55 uint32 level;
56 [switch_is(level)] srvsvc_NetCharDevCtr ctr;
57 } srvsvc_NetCharDevInfoCtr;
59 /******************/
60 /* Function: 0x00 */
61 WERROR srvsvc_NetCharDevEnum(
62 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
63 [in,out,ref] srvsvc_NetCharDevInfoCtr *info_ctr,
64 [in] uint32 max_buffer,
65 [out,ref] uint32 *totalentries,
66 [in,out,unique] uint32 *resume_handle
69 /******************/
70 /* Function: 0x01 */
71 WERROR srvsvc_NetCharDevGetInfo(
72 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
73 [in] [string,charset(UTF16)] uint16 device_name[],
74 [in] uint32 level,
75 [out,ref,switch_is(level)] srvsvc_NetCharDevInfo *info
78 /******************/
79 /* Function: 0x02 */
80 WERROR srvsvc_NetCharDevControl(
81 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
82 [in] [string,charset(UTF16)] uint16 device_name[],
83 [in] uint32 opcode
86 /**************************/
87 /* srvsvc_NetCharDevQ */
88 /**************************/
89 typedef struct {
90 [string,charset(UTF16)] uint16 *device;
91 } srvsvc_NetCharDevQInfo0;
93 typedef struct {
94 uint32 count;
95 [size_is(count)] srvsvc_NetCharDevQInfo0 *array;
96 } srvsvc_NetCharDevQCtr0;
98 typedef struct {
99 [string,charset(UTF16)] uint16 *device;
100 uint32 priority;
101 [string,charset(UTF16)] uint16 *devices;
102 uint32 users;
103 uint32 num_ahead;
104 } srvsvc_NetCharDevQInfo1;
106 typedef struct {
107 uint32 count;
108 [size_is(count)] srvsvc_NetCharDevQInfo1 *array;
109 } srvsvc_NetCharDevQCtr1;
111 typedef union {
112 [case(0)] srvsvc_NetCharDevQInfo0 *info0;
113 [case(1)] srvsvc_NetCharDevQInfo1 *info1;
114 [default] ;
115 } srvsvc_NetCharDevQInfo;
117 typedef union {
118 [case(0)] srvsvc_NetCharDevQCtr0 *ctr0;
119 [case(1)] srvsvc_NetCharDevQCtr1 *ctr1;
120 [default] ;
121 } srvsvc_NetCharDevQCtr;
123 typedef struct {
124 uint32 level;
125 [switch_is(level)] srvsvc_NetCharDevQCtr ctr;
126 } srvsvc_NetCharDevQInfoCtr;
128 /******************/
129 /* Function: 0x03 */
130 WERROR srvsvc_NetCharDevQEnum(
131 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
132 [in,unique] [string,charset(UTF16)] uint16 *user,
133 [in,out,ref] srvsvc_NetCharDevQInfoCtr *info_ctr,
134 [in] uint32 max_buffer,
135 [out,ref] uint32 *totalentries,
136 [in,out,unique] uint32 *resume_handle
139 /******************/
140 /* Function: 0x04 */
141 WERROR srvsvc_NetCharDevQGetInfo(
142 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
143 [in] [string,charset(UTF16)] uint16 queue_name[],
144 [in] [string,charset(UTF16)] uint16 user[],
145 [in] uint32 level,
146 [out,switch_is(level),ref] srvsvc_NetCharDevQInfo *info
149 /******************/
150 /* Function: 0x05 */
151 WERROR srvsvc_NetCharDevQSetInfo(
152 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
153 [in] [string,charset(UTF16)] uint16 queue_name[],
154 [in] uint32 level,
155 [in,switch_is(level)] srvsvc_NetCharDevQInfo info,
156 [in,out,unique] uint32 *parm_error
159 /******************/
160 /* Function: 0x06 */
161 WERROR srvsvc_NetCharDevQPurge(
162 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
163 [in] [string,charset(UTF16)] uint16 queue_name[]
166 /******************/
167 /* Function: 0x07 */
168 WERROR srvsvc_NetCharDevQPurgeSelf(
169 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
170 [in] [string,charset(UTF16)] uint16 queue_name[],
171 [in] [string,charset(UTF16)] uint16 computer_name[]
174 /**************************/
175 /* srvsvc_NetConn */
176 /**************************/
177 typedef struct {
178 uint32 conn_id;
179 } srvsvc_NetConnInfo0;
181 typedef struct {
182 uint32 count;
183 [size_is(count)] srvsvc_NetConnInfo0 *array;
184 } srvsvc_NetConnCtr0;
186 typedef struct {
187 uint32 conn_id;
188 uint32 conn_type;
189 uint32 num_open;
190 uint32 num_users;
191 uint32 conn_time;
192 [string,charset(UTF16)] uint16 *user;
193 [string,charset(UTF16)] uint16 *share;
194 } srvsvc_NetConnInfo1;
196 typedef struct {
197 uint32 count;
198 [size_is(count)] srvsvc_NetConnInfo1 *array;
199 } srvsvc_NetConnCtr1;
201 typedef union {
202 [case(0)] srvsvc_NetConnCtr0 *ctr0;
203 [case(1)] srvsvc_NetConnCtr1 *ctr1;
204 [default] ;
205 } srvsvc_NetConnCtr;
207 typedef struct {
208 uint32 level;
209 [switch_is(level)] srvsvc_NetConnCtr ctr;
210 } srvsvc_NetConnInfoCtr;
212 /******************/
213 /* Function: 0x08 */
214 WERROR srvsvc_NetConnEnum(
215 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
216 [in,unique] [string,charset(UTF16)] uint16 *path,
217 [in,out,ref] srvsvc_NetConnInfoCtr *info_ctr,
218 [in] uint32 max_buffer,
219 [out,ref] uint32 *totalentries,
220 [in,out,unique] uint32 *resume_handle
223 /**************************/
224 /* srvsvc_NetFile */
225 /**************************/
226 typedef struct {
227 uint32 fid;
228 } srvsvc_NetFileInfo2;
230 typedef struct {
231 uint32 count;
232 [size_is(count)] srvsvc_NetFileInfo2 *array;
233 } srvsvc_NetFileCtr2;
235 typedef struct {
236 uint32 fid;
237 uint32 permissions;
238 uint32 num_locks;
239 [string,charset(UTF16)] uint16 *path;
240 [string,charset(UTF16)] uint16 *user;
241 } srvsvc_NetFileInfo3;
243 typedef struct {
244 uint32 count;
245 [size_is(count)] srvsvc_NetFileInfo3 *array;
246 } srvsvc_NetFileCtr3;
248 typedef union {
249 [case(2)] srvsvc_NetFileInfo2 *info2;
250 [case(3)] srvsvc_NetFileInfo3 *info3;
251 [default] ;
252 } srvsvc_NetFileInfo;
254 typedef union {
255 [case(2)] srvsvc_NetFileCtr2 *ctr2;
256 [case(3)] srvsvc_NetFileCtr3 *ctr3;
257 [default] ;
258 } srvsvc_NetFileCtr;
260 typedef struct {
261 uint32 level;
262 [switch_is(level)] srvsvc_NetFileCtr ctr;
263 } srvsvc_NetFileInfoCtr;
265 /******************/
266 /* Function: 0x09 */
267 WERROR srvsvc_NetFileEnum(
268 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
269 [in,unique] [string,charset(UTF16)] uint16 *path,
270 [in,unique] [string,charset(UTF16)] uint16 *user,
271 [in,out,ref] srvsvc_NetFileInfoCtr *info_ctr,
272 [in] uint32 max_buffer,
273 [out,ref] uint32 *totalentries,
274 [in,out,unique] uint32 *resume_handle
277 /******************/
278 /* Function: 0x0a */
279 WERROR srvsvc_NetFileGetInfo(
280 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
281 [in] uint32 fid,
282 [in] uint32 level,
283 [out,switch_is(level),ref] srvsvc_NetFileInfo *info
286 /******************/
287 /* Function: 0x0b */
288 WERROR srvsvc_NetFileClose(
289 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
290 [in] uint32 fid
293 /**************************/
294 /* srvsvc_NetSess */
295 /**************************/
296 typedef struct {
297 [string,charset(UTF16)] uint16 *client;
298 } srvsvc_NetSessInfo0;
300 typedef struct {
301 uint32 count;
302 [size_is(count)] srvsvc_NetSessInfo0 *array;
303 } srvsvc_NetSessCtr0;
305 typedef struct {
306 [string,charset(UTF16)] uint16 *client;
307 [string,charset(UTF16)] uint16 *user;
308 uint32 num_open;
309 uint32 time;
310 uint32 idle_time;
311 uint32 user_flags;
312 } srvsvc_NetSessInfo1;
314 typedef struct {
315 uint32 count;
316 [size_is(count)] srvsvc_NetSessInfo1 *array;
317 } srvsvc_NetSessCtr1;
319 typedef struct {
320 [string,charset(UTF16)] uint16 *client;
321 [string,charset(UTF16)] uint16 *user;
322 uint32 num_open;
323 uint32 time;
324 uint32 idle_time;
325 uint32 user_flags;
326 [string,charset(UTF16)] uint16 *client_type;
327 } srvsvc_NetSessInfo2;
329 typedef struct {
330 uint32 count;
331 [size_is(count)] srvsvc_NetSessInfo2 *array;
332 } srvsvc_NetSessCtr2;
334 typedef struct {
335 [string,charset(UTF16)] uint16 *client;
336 [string,charset(UTF16)] uint16 *user;
337 uint32 time;
338 uint32 idle_time;
339 } srvsvc_NetSessInfo10;
341 typedef struct {
342 uint32 count;
343 [size_is(count)] srvsvc_NetSessInfo10 *array;
344 } srvsvc_NetSessCtr10;
346 typedef struct {
347 [string,charset(UTF16)] uint16 *client;
348 [string,charset(UTF16)] uint16 *user;
349 uint32 num_open;
350 uint32 time;
351 uint32 idle_time;
352 uint32 user_flags;
353 [string,charset(UTF16)] uint16 *client_type;
354 [string,charset(UTF16)] uint16 *transport;
355 } srvsvc_NetSessInfo502;
357 typedef struct {
358 uint32 count;
359 [size_is(count)] srvsvc_NetSessInfo502 *array;
360 } srvsvc_NetSessCtr502;
362 typedef union {
363 [case(0)] srvsvc_NetSessCtr0 *ctr0;
364 [case(1)] srvsvc_NetSessCtr1 *ctr1;
365 [case(2)] srvsvc_NetSessCtr2 *ctr2;
366 [case(10)] srvsvc_NetSessCtr10 *ctr10;
367 [case(502)] srvsvc_NetSessCtr502 *ctr502;
368 [default] ;
369 } srvsvc_NetSessCtr;
371 /******************/
372 /* Function: 0x0c */
374 typedef struct {
375 uint32 level;
376 [switch_is(level)] srvsvc_NetSessCtr ctr;
377 } srvsvc_NetSessInfoCtr;
379 WERROR srvsvc_NetSessEnum(
380 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
381 [in,unique] [string,charset(UTF16)] uint16 *client,
382 [in,unique] [string,charset(UTF16)] uint16 *user,
383 [in,out,ref] srvsvc_NetSessInfoCtr *info_ctr,
384 [in] uint32 max_buffer,
385 [out,ref] uint32 *totalentries,
386 [in,out,unique] uint32 *resume_handle
389 /******************/
390 /* Function: 0x0d */
391 WERROR srvsvc_NetSessDel(
392 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
393 [in,unique] [string,charset(UTF16)] uint16 *client,
394 [in,unique] [string,charset(UTF16)] uint16 *user
397 /**************************/
398 /* srvsvc_NetShare */
399 /**************************/
401 /* share types */
402 const uint32 STYPE_TEMPORARY = 0x40000000; /* share is a temporary one */
403 const uint32 STYPE_HIDDEN = 0x80000000; /* share is a hidden one */
405 typedef [v1_enum, flag(NDR_PAHEX)] enum {
406 STYPE_DISKTREE = 0,
407 STYPE_DISKTREE_TEMPORARY = STYPE_DISKTREE|STYPE_TEMPORARY,
408 STYPE_DISKTREE_HIDDEN = STYPE_DISKTREE|STYPE_HIDDEN,
409 STYPE_PRINTQ = 1,
410 STYPE_PRINTQ_TEMPORARY = STYPE_PRINTQ|STYPE_TEMPORARY,
411 STYPE_PRINTQ_HIDDEN = STYPE_PRINTQ|STYPE_HIDDEN,
412 STYPE_DEVICE = 2, /* Serial device */
413 STYPE_DEVICE_TEMPORARY = STYPE_DEVICE|STYPE_TEMPORARY,
414 STYPE_DEVICE_HIDDEN = STYPE_DEVICE|STYPE_HIDDEN,
415 STYPE_IPC = 3, /* Interprocess communication (IPC) */
416 STYPE_IPC_TEMPORARY = STYPE_IPC|STYPE_TEMPORARY,
417 STYPE_IPC_HIDDEN = STYPE_IPC|STYPE_HIDDEN,
418 STYPE_CLUSTER_FS = 0x02000000, /* A cluster share */
419 STYPE_CLUSTER_FS_TEMPORARY = STYPE_CLUSTER_FS|STYPE_TEMPORARY,
420 STYPE_CLUSTER_FS_HIDDEN = STYPE_CLUSTER_FS|STYPE_HIDDEN,
421 STYPE_CLUSTER_SOFS = 0x04000000, /* A Scale-Out cluster share */
422 STYPE_CLUSTER_SOFS_TEMPORARY = STYPE_CLUSTER_SOFS|STYPE_TEMPORARY,
423 STYPE_CLUSTER_SOFS_HIDDEN = STYPE_CLUSTER_SOFS|STYPE_HIDDEN,
424 STYPE_CLUSTER_DFS = 0x08000000, /* A DFS share in a cluster */
425 STYPE_CLUSTER_DFS_TEMPORARY = STYPE_CLUSTER_DFS|STYPE_TEMPORARY,
426 STYPE_CLUSTER_DFS_HIDDEN = STYPE_CLUSTER_DFS|STYPE_HIDDEN
427 } srvsvc_ShareType;
429 typedef struct {
430 [string,charset(UTF16)] uint16 *name;
431 } srvsvc_NetShareInfo0;
433 typedef struct {
434 uint32 count;
435 [size_is(count)] srvsvc_NetShareInfo0 *array;
436 } srvsvc_NetShareCtr0;
438 typedef struct {
439 [string,charset(UTF16)] uint16 *name;
440 srvsvc_ShareType type;
441 [string,charset(UTF16)] uint16 *comment;
442 } srvsvc_NetShareInfo1;
444 typedef struct {
445 uint32 count;
446 [size_is(count)] srvsvc_NetShareInfo1 *array;
447 } srvsvc_NetShareCtr1;
449 typedef struct {
450 [string,charset(UTF16)] uint16 *name;
451 srvsvc_ShareType type;
452 [string,charset(UTF16)] uint16 *comment;
453 uint32 permissions;
454 uint32 max_users;
455 uint32 current_users;
456 [string,charset(UTF16)] uint16 *path;
457 [string,charset(UTF16)] uint16 *password;
458 } srvsvc_NetShareInfo2;
460 typedef struct {
461 uint32 count;
462 [size_is(count)] srvsvc_NetShareInfo2 *array;
463 } srvsvc_NetShareCtr2;
465 typedef struct {
466 [string,charset(UTF16)] uint16 *name;
467 srvsvc_ShareType type;
468 [string,charset(UTF16)] uint16 *comment;
469 uint32 csc_policy;
470 } srvsvc_NetShareInfo501;
472 typedef struct {
473 uint32 count;
474 [size_is(count)] srvsvc_NetShareInfo501 *array;
475 } srvsvc_NetShareCtr501;
477 typedef struct {
478 [string,charset(UTF16)] uint16 *name;
479 srvsvc_ShareType type;
480 [string,charset(UTF16)] uint16 *comment;
481 uint32 permissions;
482 uint32 max_users;
483 uint32 current_users;
484 [string,charset(UTF16)] uint16 *path;
485 [string,charset(UTF16)] uint16 *password;
486 sec_desc_buf sd_buf;
487 } srvsvc_NetShareInfo502;
489 typedef struct {
490 uint32 count;
491 [size_is(count)] srvsvc_NetShareInfo502 *array;
492 } srvsvc_NetShareCtr502;
494 typedef struct {
495 [string,charset(UTF16)] uint16 *comment;
496 } srvsvc_NetShareInfo1004;
498 typedef struct {
499 uint32 count;
500 [size_is(count)] srvsvc_NetShareInfo1004 *array;
501 } srvsvc_NetShareCtr1004;
503 const uint32 SHARE_1005_CSC_CACHE_MANUAL_REINT = 0x00000000;
505 typedef bitmap {
506 SHARE_1005_IN_DFS = 0x00000001,
507 SHARE_1005_DFS_ROOT = 0x00000002,
508 SHARE_1005_CSC_CACHE_AUTO_REINT = 0x00000010,
509 SHARE_1005_CSC_CACHE_VDO = 0x00000020,
510 SHARE_1005_CSC_CACHE_NONE = 0x00000030,
511 SHARE_1005_RESTRICT_EXCLUSIVE_OPENS = 0x00000100,
512 SHARE_1005_FORCE_SHARED_DELETE = 0x00000200,
513 SHARE_1005_ALLOW_NAMESPACE_CACHING = 0x00000400,
514 SHARE_1005_ACCESS_BASED_DIRECTORY_ENUM = 0x00000800,
515 SHARE_1005_FORCE_LEVELII_OPLOCK = 0x00001000,
516 SHARE_1005_ENABLE_HASH = 0x00002000,
517 SHARE_1005_ENABLE_CA = 0x00004000,
518 SHARE_1005_ENCRYPT_DATA = 0x00008000
519 } NetShareInfo1005Flags;
521 const uint32 SHARE_1005_CSC_POLICY_MASK = 0x00000030;
522 const uint32 SHARE_1005_CSC_POLICY_SHIFT = 4;
524 typedef struct {
525 NetShareInfo1005Flags dfs_flags;
526 } srvsvc_NetShareInfo1005;
528 typedef struct {
529 uint32 count;
530 [size_is(count)] srvsvc_NetShareInfo1005 *array;
531 } srvsvc_NetShareCtr1005;
533 typedef struct {
534 uint32 max_users;
535 } srvsvc_NetShareInfo1006;
537 typedef struct {
538 uint32 count;
539 [size_is(count)] srvsvc_NetShareInfo1006 *array;
540 } srvsvc_NetShareCtr1006;
542 typedef struct {
543 uint32 flags;
544 [string,charset(UTF16)] uint16 *alternate_directory_name;
545 } srvsvc_NetShareInfo1007;
547 typedef struct {
548 uint32 count;
549 [size_is(count)] srvsvc_NetShareInfo1007 *array;
550 } srvsvc_NetShareCtr1007;
552 typedef struct {
553 uint32 count;
554 [size_is(count)] sec_desc_buf *array;
555 } srvsvc_NetShareCtr1501;
557 typedef union {
558 [case(0)] srvsvc_NetShareInfo0 *info0;
559 [case(1)] srvsvc_NetShareInfo1 *info1;
560 [case(2)] srvsvc_NetShareInfo2 *info2;
561 [case(501)] srvsvc_NetShareInfo501 *info501;
562 [case(502)] srvsvc_NetShareInfo502 *info502;
563 [case(1004)] srvsvc_NetShareInfo1004 *info1004;
564 [case(1005)] srvsvc_NetShareInfo1005 *info1005;
565 [case(1006)] srvsvc_NetShareInfo1006 *info1006;
566 [case(1007)] srvsvc_NetShareInfo1007 *info1007;
567 [case(1501)] sec_desc_buf *info1501;
568 [default] ;
569 } srvsvc_NetShareInfo;
571 typedef union {
572 [case(0)] srvsvc_NetShareCtr0 *ctr0;
573 [case(1)] srvsvc_NetShareCtr1 *ctr1;
574 [case(2)] srvsvc_NetShareCtr2 *ctr2;
575 [case(501)] srvsvc_NetShareCtr501 *ctr501;
576 [case(502)] srvsvc_NetShareCtr502 *ctr502;
577 [case(1004)] srvsvc_NetShareCtr1004 *ctr1004;
578 [case(1005)] srvsvc_NetShareCtr1005 *ctr1005;
579 [case(1006)] srvsvc_NetShareCtr1006 *ctr1006;
580 [case(1007)] srvsvc_NetShareCtr1007 *ctr1007;
581 [case(1501)] srvsvc_NetShareCtr1501 *ctr1501;
582 [default] ;
583 } srvsvc_NetShareCtr;
585 typedef struct {
586 uint32 level;
587 [switch_is(level)] srvsvc_NetShareCtr ctr;
588 } srvsvc_NetShareInfoCtr;
590 /******************/
591 /* Function: 0x0e */
592 WERROR srvsvc_NetShareAdd(
593 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
594 [in] uint32 level,
595 [in,ref,switch_is(level)] srvsvc_NetShareInfo *info,
596 [in,out,unique] uint32 *parm_error
599 /******************/
600 /* Function: 0x0f */
601 WERROR srvsvc_NetShareEnumAll (
602 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
603 [in,out,ref] srvsvc_NetShareInfoCtr *info_ctr,
604 [in] uint32 max_buffer,
605 [out,ref] uint32 *totalentries,
606 [in,out,unique] uint32 *resume_handle
609 /******************/
610 /* Function: 0x10 */
611 WERROR srvsvc_NetShareGetInfo(
612 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
613 [in] [string,charset(UTF16)] uint16 share_name[],
614 [in] uint32 level,
615 [out,ref,switch_is(level)] srvsvc_NetShareInfo *info
618 /******************/
619 /* Function: 0x11 */
620 WERROR srvsvc_NetShareSetInfo(
621 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
622 [in] [string,charset(UTF16)] uint16 share_name[],
623 [in] uint32 level,
624 [in,ref,switch_is(level)] srvsvc_NetShareInfo *info,
625 [in,out,unique] uint32 *parm_error
628 /******************/
629 /* Function: 0x12 */
630 WERROR srvsvc_NetShareDel(
631 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
632 [in] [string,charset(UTF16)] uint16 share_name[],
633 [in] uint32 reserved
636 /******************/
637 /* Function: 0x13 */
638 WERROR srvsvc_NetShareDelSticky(
639 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
640 [in] [string,charset(UTF16)] uint16 share_name[],
641 [in] uint32 reserved
644 /******************/
645 /* Function: 0x14 */
646 WERROR srvsvc_NetShareCheck(
647 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
648 [in] [string,charset(UTF16)] uint16 device_name[],
649 [out,ref] srvsvc_ShareType *type
652 /**************************/
653 /* srvsvc_NetSrv */
654 /**************************/
655 typedef [public,v1_enum] enum {
656 PLATFORM_ID_DOS = 300,
657 PLATFORM_ID_OS2 = 400,
658 PLATFORM_ID_NT = 500,
659 PLATFORM_ID_OSF = 600,
660 PLATFORM_ID_VMS = 700
661 } srvsvc_PlatformId;
663 typedef [public] struct {
664 srvsvc_PlatformId platform_id;
665 [string,charset(UTF16)] uint16 *server_name;
666 } srvsvc_NetSrvInfo100;
668 typedef [public] struct {
669 srvsvc_PlatformId platform_id;
670 [string,charset(UTF16)] uint16 *server_name;
671 uint32 version_major;
672 uint32 version_minor;
673 svcctl_ServerType server_type;
674 [string,charset(UTF16)] uint16 *comment;
675 } srvsvc_NetSrvInfo101;
677 typedef struct {
678 srvsvc_PlatformId platform_id;
679 [string,charset(UTF16)] uint16 *server_name;
680 uint32 version_major;
681 uint32 version_minor;
682 svcctl_ServerType server_type;
683 [string,charset(UTF16)] uint16 *comment;
684 uint32 users;
685 uint32 disc;
686 uint32 hidden;
687 uint32 announce;
688 uint32 anndelta;
689 uint32 licenses;
690 [string,charset(UTF16)] uint16 *userpath;
691 } srvsvc_NetSrvInfo102;
693 typedef struct {
694 uint32 ulist_mtime;
695 uint32 glist_mtime;
696 uint32 alist_mtime;
697 [string,charset(UTF16)] uint16 *alerts;
698 uint32 security;
699 uint32 numadmin;
700 uint32 lanmask;
701 [string,charset(UTF16)] uint16 *guestaccount;
702 uint32 chdevs;
703 uint32 chdevqs;
704 uint32 chdevjobs;
705 uint32 connections;
706 uint32 shares;
707 uint32 openfiles;
708 uint32 sessopen;
709 uint32 sesssvc;
710 uint32 sessreqs;
711 uint32 opensearch;
712 uint32 activelocks;
713 uint32 numreqbufs;
714 uint32 sizereqbufs;
715 uint32 numbigbufs;
716 uint32 numfiletasks;
717 uint32 alertsched;
718 uint32 erroralert;
719 uint32 logonalert;
720 uint32 accessalert;
721 uint32 diskalert;
722 uint32 netioalert;
723 uint32 maxaudits;
724 [string,charset(UTF16)] uint16 *srvheuristics;
725 } srvsvc_NetSrvInfo402;
727 typedef struct {
728 uint32 ulist_mtime;
729 uint32 glist_mtime;
730 uint32 alist_mtime;
731 [string,charset(UTF16)] uint16 *alerts;
732 uint32 security;
733 uint32 numadmin;
734 uint32 lanmask;
735 [string,charset(UTF16)] uint16 *guestaccount;
736 uint32 chdevs;
737 uint32 chdevqs;
738 uint32 chdevjobs;
739 uint32 connections;
740 uint32 shares;
741 uint32 openfiles;
742 uint32 sessopen;
743 uint32 sesssvc;
744 uint32 sessreqs;
745 uint32 opensearch;
746 uint32 activelocks;
747 uint32 numreqbufs;
748 uint32 sizereqbufs;
749 uint32 numbigbufs;
750 uint32 numfiletasks;
751 uint32 alertsched;
752 uint32 erroralert;
753 uint32 logonalert;
754 uint32 accessalert;
755 uint32 diskalert;
756 uint32 netioalert;
757 uint32 maxaudits;
758 [string,charset(UTF16)] uint16 *srvheuristics;
759 uint32 auditedevents;
760 uint32 auditprofile;
761 [string,charset(UTF16)] uint16 *autopath;
762 } srvsvc_NetSrvInfo403;
764 typedef struct {
765 uint32 sessopen;
766 uint32 sesssvc;
767 uint32 opensearch;
768 uint32 sizereqbufs;
769 uint32 initworkitems;
770 uint32 maxworkitems;
771 uint32 rawworkitems;
772 uint32 irpstacksize;
773 uint32 maxrawbuflen;
774 uint32 sessusers;
775 uint32 sessconns;
776 uint32 maxpagedmemoryusage;
777 uint32 maxnonpagedmemoryusage;
778 uint32 enablesoftcompat;
779 uint32 enableforcedlogoff;
780 uint32 timesource;
781 uint32 acceptdownlevelapis;
782 uint32 lmannounce;
783 } srvsvc_NetSrvInfo502;
785 typedef struct{
786 uint32 sessopen;
787 uint32 sesssvc;
788 uint32 opensearch;
789 uint32 sizereqbufs;
790 uint32 initworkitems;
791 uint32 maxworkitems;
792 uint32 rawworkitems;
793 uint32 irpstacksize;
794 uint32 maxrawbuflen;
795 uint32 sessusers;
796 uint32 sessconns;
797 uint32 maxpagedmemoryusage;
798 uint32 maxnonpagedmemoryusage;
799 uint32 enablesoftcompat;
800 uint32 enableforcedlogoff;
801 uint32 timesource;
802 uint32 acceptdownlevelapis;
803 uint32 lmannounce;
804 [string,charset(UTF16)] uint16 *domain;
805 uint32 maxcopyreadlen;
806 uint32 maxcopywritelen;
807 uint32 minkeepsearch;
808 uint32 maxkeepsearch;
809 uint32 minkeepcomplsearch;
810 uint32 maxkeepcomplsearch;
811 uint32 threadcountadd;
812 uint32 numlockthreads;
813 uint32 scavtimeout;
814 uint32 minrcvqueue;
815 uint32 minfreeworkitems;
816 uint32 xactmemsize;
817 uint32 threadpriority;
818 uint32 maxmpxct;
819 uint32 oplockbreakwait;
820 uint32 oplockbreakresponsewait;
821 uint32 enableoplocks;
822 uint32 enableoplockforceclose;
823 uint32 enablefcbopens;
824 uint32 enableraw;
825 uint32 enablesharednetdrives;
826 uint32 minfreeconnections;
827 uint32 maxfreeconnections;
828 } srvsvc_NetSrvInfo503;
830 typedef struct{
831 uint32 sessopen;
832 uint32 sesssvc;
833 uint32 opensearch;
834 uint32 sizereqbufs;
835 uint32 initworkitems;
836 uint32 maxworkitems;
837 uint32 rawworkitems;
838 uint32 irpstacksize;
839 uint32 maxrawbuflen;
840 uint32 sessusers;
841 uint32 sessconns;
842 uint32 maxpagedmemoryusage;
843 uint32 maxnonpagedmemoryusage;
844 uint32 enablesoftcompat;
845 uint32 enableforcedlogoff;
846 uint32 timesource;
847 uint32 acceptdownlevelapis;
848 uint32 lmannounce;
849 [string,charset(UTF16)] uint16 *domain;
850 uint32 maxcopyreadlen;
851 uint32 maxcopywritelen;
852 uint32 minkeepsearch;
853 uint32 minkeepcomplsearch;
854 uint32 maxkeepcomplsearch;
855 uint32 threadcountadd;
856 uint32 numlockthreads;
857 uint32 scavtimeout;
858 uint32 minrcvqueue;
859 uint32 minfreeworkitems;
860 uint32 xactmemsize;
861 uint32 threadpriority;
862 uint32 maxmpxct;
863 uint32 oplockbreakwait;
864 uint32 oplockbreakresponsewait;
865 uint32 enableoplocks;
866 uint32 enableoplockforceclose;
867 uint32 enablefcbopens;
868 uint32 enableraw;
869 uint32 enablesharednetdrives;
870 uint32 minfreeconnections;
871 uint32 maxfreeconnections;
872 uint32 initsesstable;
873 uint32 initconntable;
874 uint32 initfiletable;
875 uint32 initsearchtable;
876 uint32 alertsched;
877 uint32 errortreshold;
878 uint32 networkerrortreshold;
879 uint32 diskspacetreshold;
880 uint32 reserved;
881 uint32 maxlinkdelay;
882 uint32 minlinkthroughput;
883 uint32 linkinfovalidtime;
884 uint32 scavqosinfoupdatetime;
885 uint32 maxworkitemidletime;
886 } srvsvc_NetSrvInfo599;
888 typedef struct{
889 [string,charset(UTF16)] uint16 *comment;
890 } srvsvc_NetSrvInfo1005;
892 typedef struct{
893 uint32 disc;
894 } srvsvc_NetSrvInfo1010;
896 typedef struct{
897 uint32 hidden;
898 } srvsvc_NetSrvInfo1016;
900 typedef struct{
901 uint32 announce;
902 } srvsvc_NetSrvInfo1017;
904 typedef struct{
905 uint32 anndelta;
906 } srvsvc_NetSrvInfo1018;
908 typedef struct{
909 uint32 users;
910 } srvsvc_NetSrvInfo1107;
912 typedef struct{
913 uint32 sessopens;
914 } srvsvc_NetSrvInfo1501;
916 typedef struct{
917 uint32 sessvcs;
918 } srvsvc_NetSrvInfo1502;
920 typedef struct{
921 uint32 opensearch;
922 } srvsvc_NetSrvInfo1503;
924 typedef struct{
925 uint32 maxworkitems;
926 } srvsvc_NetSrvInfo1506;
928 typedef struct{
929 uint32 maxrawbuflen;
930 } srvsvc_NetSrvInfo1509;
932 typedef struct{
933 uint32 sessusers;
934 } srvsvc_NetSrvInfo1510;
936 typedef struct{
937 uint32 sesscons;
938 } srvsvc_NetSrvInfo1511;
940 typedef struct{
941 uint32 maxnonpagedmemoryusage;
942 } srvsvc_NetSrvInfo1512;
944 typedef struct{
945 uint32 maxpagedmemoryusage;
946 } srvsvc_NetSrvInfo1513;
948 typedef struct{
949 uint32 enablesoftcompat;
950 } srvsvc_NetSrvInfo1514;
952 typedef struct{
953 uint32 enableforcedlogoff;
954 } srvsvc_NetSrvInfo1515;
956 typedef struct{
957 uint32 timesource;
958 } srvsvc_NetSrvInfo1516;
960 typedef struct{
961 uint32 lmannounce;
962 } srvsvc_NetSrvInfo1518;
964 typedef struct{
965 uint32 maxcopyreadlen;
966 } srvsvc_NetSrvInfo1520;
968 typedef struct{
969 uint32 maxcopywritelen;
970 } srvsvc_NetSrvInfo1521;
972 typedef struct{
973 uint32 minkeepsearch;
974 } srvsvc_NetSrvInfo1522;
976 typedef struct{
977 uint32 maxkeepsearch;
978 } srvsvc_NetSrvInfo1523;
980 typedef struct{
981 uint32 minkeepcomplsearch;
982 } srvsvc_NetSrvInfo1524;
984 typedef struct{
985 uint32 maxkeepcomplsearch;
986 } srvsvc_NetSrvInfo1525;
988 typedef struct{
989 uint32 scavtimeout;
990 } srvsvc_NetSrvInfo1528;
992 typedef struct{
993 uint32 minrcvqueue;
994 } srvsvc_NetSrvInfo1529;
996 typedef struct{
997 uint32 minfreeworkitems;
998 } srvsvc_NetSrvInfo1530;
1000 typedef struct{
1001 uint32 maxmpxct;
1002 } srvsvc_NetSrvInfo1533;
1004 typedef struct{
1005 uint32 oplockbreakwait;
1006 } srvsvc_NetSrvInfo1534;
1008 typedef struct{
1009 uint32 oplockbreakresponsewait;
1010 } srvsvc_NetSrvInfo1535;
1012 typedef struct{
1013 uint32 enableoplocks;
1014 } srvsvc_NetSrvInfo1536;
1016 typedef struct{
1017 uint32 enableoplockforceclose;
1018 } srvsvc_NetSrvInfo1537;
1020 typedef struct{
1021 uint32 enablefcbopens;
1022 } srvsvc_NetSrvInfo1538;
1024 typedef struct{
1025 uint32 enableraw;
1026 } srvsvc_NetSrvInfo1539;
1028 typedef struct{
1029 uint32 enablesharednetdrives;
1030 } srvsvc_NetSrvInfo1540;
1032 typedef struct{
1033 uint32 minfreeconnections;
1034 } srvsvc_NetSrvInfo1541;
1036 typedef struct{
1037 uint32 maxfreeconnections;
1038 } srvsvc_NetSrvInfo1542;
1040 typedef struct{
1041 uint32 initsesstable;
1042 } srvsvc_NetSrvInfo1543;
1044 typedef struct{
1045 uint32 initconntable;
1046 } srvsvc_NetSrvInfo1544;
1048 typedef struct{
1049 uint32 initfiletable;
1050 } srvsvc_NetSrvInfo1545;
1052 typedef struct{
1053 uint32 initsearchtable;
1054 } srvsvc_NetSrvInfo1546;
1056 typedef struct{
1057 uint32 alertsched;
1058 } srvsvc_NetSrvInfo1547;
1060 typedef struct{
1061 uint32 errortreshold;
1062 } srvsvc_NetSrvInfo1548;
1064 typedef struct{
1065 uint32 networkerrortreshold;
1066 } srvsvc_NetSrvInfo1549;
1068 typedef struct{
1069 uint32 diskspacetreshold;
1070 } srvsvc_NetSrvInfo1550;
1072 typedef struct{
1073 uint32 maxlinkdelay;
1074 } srvsvc_NetSrvInfo1552;
1076 typedef struct{
1077 uint32 minlinkthroughput;
1078 } srvsvc_NetSrvInfo1553;
1080 typedef struct{
1081 uint32 linkinfovalidtime;
1082 } srvsvc_NetSrvInfo1554;
1084 typedef struct{
1085 uint32 scavqosinfoupdatetime;
1086 } srvsvc_NetSrvInfo1555;
1088 typedef struct{
1089 uint32 maxworkitemidletime;
1090 } srvsvc_NetSrvInfo1556;
1093 typedef union{
1094 [case(100)] srvsvc_NetSrvInfo100 *info100;
1095 [case(101)] srvsvc_NetSrvInfo101 *info101;
1096 [case(102)] srvsvc_NetSrvInfo102 *info102;
1097 [case(402)] srvsvc_NetSrvInfo402 *info402;
1098 [case(403)] srvsvc_NetSrvInfo403 *info403;
1099 [case(502)] srvsvc_NetSrvInfo502 *info502;
1100 [case(503)] srvsvc_NetSrvInfo503 *info503;
1101 [case(599)] srvsvc_NetSrvInfo599 *info599;
1102 [case(1005)] srvsvc_NetSrvInfo1005 *info1005;
1103 [case(1010)] srvsvc_NetSrvInfo1010 *info1010;
1104 [case(1016)] srvsvc_NetSrvInfo1016 *info1016;
1105 [case(1017)] srvsvc_NetSrvInfo1017 *info1017;
1106 [case(1018)] srvsvc_NetSrvInfo1018 *info1018;
1107 [case(1107)] srvsvc_NetSrvInfo1107 *info1107;
1108 [case(1501)] srvsvc_NetSrvInfo1501 *info1501;
1109 [case(1502)] srvsvc_NetSrvInfo1502 *info1502;
1110 [case(1503)] srvsvc_NetSrvInfo1503 *info1503;
1111 [case(1506)] srvsvc_NetSrvInfo1506 *info1506;
1112 [case(1509)] srvsvc_NetSrvInfo1509 *info1509;
1113 [case(1510)] srvsvc_NetSrvInfo1510 *info1510;
1114 [case(1511)] srvsvc_NetSrvInfo1511 *info1511;
1115 [case(1512)] srvsvc_NetSrvInfo1512 *info1512;
1116 [case(1513)] srvsvc_NetSrvInfo1513 *info1513;
1117 [case(1514)] srvsvc_NetSrvInfo1514 *info1514;
1118 [case(1515)] srvsvc_NetSrvInfo1515 *info1515;
1119 [case(1516)] srvsvc_NetSrvInfo1516 *info1516;
1120 [case(1518)] srvsvc_NetSrvInfo1518 *info1518;
1121 [case(1520)] srvsvc_NetSrvInfo1520 *info1520;
1122 [case(1521)] srvsvc_NetSrvInfo1521 *info1521;
1123 [case(1522)] srvsvc_NetSrvInfo1522 *info1522;
1124 [case(1523)] srvsvc_NetSrvInfo1523 *info1523;
1125 [case(1524)] srvsvc_NetSrvInfo1524 *info1524;
1126 [case(1525)] srvsvc_NetSrvInfo1525 *info1525;
1127 [case(1528)] srvsvc_NetSrvInfo1528 *info1528;
1128 [case(1529)] srvsvc_NetSrvInfo1529 *info1529;
1129 [case(1530)] srvsvc_NetSrvInfo1530 *info1530;
1130 [case(1533)] srvsvc_NetSrvInfo1533 *info1533;
1131 [case(1534)] srvsvc_NetSrvInfo1534 *info1534;
1132 [case(1535)] srvsvc_NetSrvInfo1535 *info1535;
1133 [case(1536)] srvsvc_NetSrvInfo1536 *info1536;
1134 [case(1537)] srvsvc_NetSrvInfo1537 *info1537;
1135 [case(1538)] srvsvc_NetSrvInfo1538 *info1538;
1136 [case(1539)] srvsvc_NetSrvInfo1539 *info1539;
1137 [case(1540)] srvsvc_NetSrvInfo1540 *info1540;
1138 [case(1541)] srvsvc_NetSrvInfo1541 *info1541;
1139 [case(1542)] srvsvc_NetSrvInfo1542 *info1542;
1140 [case(1543)] srvsvc_NetSrvInfo1543 *info1543;
1141 [case(1544)] srvsvc_NetSrvInfo1544 *info1544;
1142 [case(1545)] srvsvc_NetSrvInfo1545 *info1545;
1143 [case(1546)] srvsvc_NetSrvInfo1546 *info1546;
1144 [case(1547)] srvsvc_NetSrvInfo1547 *info1547;
1145 [case(1548)] srvsvc_NetSrvInfo1548 *info1548;
1146 [case(1549)] srvsvc_NetSrvInfo1549 *info1549;
1147 [case(1550)] srvsvc_NetSrvInfo1550 *info1550;
1148 [case(1552)] srvsvc_NetSrvInfo1552 *info1552;
1149 [case(1553)] srvsvc_NetSrvInfo1553 *info1553;
1150 [case(1554)] srvsvc_NetSrvInfo1554 *info1554;
1151 [case(1555)] srvsvc_NetSrvInfo1555 *info1555;
1152 [case(1556)] srvsvc_NetSrvInfo1556 *info1556;
1153 [default];
1154 } srvsvc_NetSrvInfo;
1156 /******************/
1157 /* Function: 0x15 */
1158 WERROR srvsvc_NetSrvGetInfo(
1159 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1160 [in] uint32 level,
1161 [out,ref,switch_is(level)] srvsvc_NetSrvInfo *info
1164 /******************/
1165 /* Function: 0x16 */
1166 WERROR srvsvc_NetSrvSetInfo(
1167 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1168 [in] uint32 level,
1169 [in,ref,switch_is(level)] srvsvc_NetSrvInfo *info,
1170 [in,out,unique] uint32 *parm_error
1173 /**************************/
1174 /* srvsvc_NetDisk */
1175 /**************************/
1176 typedef struct {
1178 * In theory this should be:
1179 * [charset(UTF16),string] uint16 annotation[3]
1180 * But midl treats this as:
1181 * [charset(UTF16),string] uint16 annotation[]
1182 * and pidl doesn't support this yet
1184 [value(0)] uint32 __disk_offset;
1185 [value(strlen(disk)+1)] uint32 __disk_length;
1186 [charset(UTF16)] uint16 disk[__disk_length];
1187 } srvsvc_NetDiskInfo0;
1189 typedef struct {
1190 uint32 count;
1191 [size_is(count), length_is(count)] srvsvc_NetDiskInfo0 *disks;
1192 } srvsvc_NetDiskInfo;
1194 /******************/
1195 /* Function: 0x17 */
1196 WERROR srvsvc_NetDiskEnum(
1197 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1198 [in] uint32 level,
1199 [in,out,ref] srvsvc_NetDiskInfo *info,
1200 [in] uint32 maxlen,
1201 [out,ref] uint32 *totalentries,
1202 [in,out,unique] uint32 *resume_handle
1205 /**************************/
1206 /* srvsvc_NetStatistics */
1207 /**************************/
1208 typedef struct {
1209 uint32 start;
1210 uint32 fopens;
1211 uint32 devopens;
1212 uint32 jobsqueued;
1213 uint32 sopens;
1214 uint32 stimeouts;
1215 uint32 serrorout;
1216 uint32 pwerrors;
1217 uint32 permerrors;
1218 uint32 syserrors;
1219 uint32 bytessent_low;
1220 uint32 bytessent_high;
1221 uint32 bytesrcvd_low;
1222 uint32 bytesrcvd_high;
1223 uint32 avresponse;
1224 uint32 reqbufneed;
1225 uint32 bigbufneed;
1226 } srvsvc_Statistics;
1228 /******************/
1229 /* Function: 0x18 */
1230 WERROR srvsvc_NetServerStatisticsGet(
1231 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1232 [in,unique] [string,charset(UTF16)] uint16 *service,
1233 [in] uint32 level,
1234 [in] uint32 options,
1235 [out,ref] srvsvc_Statistics **stats
1238 /**************************/
1239 /* srvsvc_NetTransport */
1240 /**************************/
1241 typedef struct {
1242 uint32 vcs;
1243 [string,charset(UTF16)] uint16 *name;
1244 [size_is(addr_len)] uint8 *addr;
1245 uint32 addr_len;
1246 [string,charset(UTF16)] uint16 *net_addr;
1247 } srvsvc_NetTransportInfo0;
1249 /******************/
1250 /* Function: 0x19 */
1251 WERROR srvsvc_NetTransportAdd(
1252 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1253 [in] uint32 level,
1254 [in,switch_is(level)] srvsvc_NetTransportInfo info
1257 typedef struct {
1258 uint32 count;
1259 [size_is(count)] srvsvc_NetTransportInfo0 *array;
1260 } srvsvc_NetTransportCtr0;
1262 typedef struct {
1263 uint32 vcs;
1264 [string,charset(UTF16)] uint16 *name;
1265 [size_is(addr_len)] uint8 *addr;
1266 uint32 addr_len;
1267 [string,charset(UTF16)] uint16 *net_addr;
1268 [string,charset(UTF16)] uint16 *domain;
1269 } srvsvc_NetTransportInfo1;
1271 typedef struct {
1272 uint32 count;
1273 [size_is(count)] srvsvc_NetTransportInfo1 *array;
1274 } srvsvc_NetTransportCtr1;
1276 typedef struct {
1277 uint32 vcs;
1278 [string,charset(UTF16)] uint16 *name;
1279 [size_is(addr_len)] uint8 *addr;
1280 uint32 addr_len;
1281 [string,charset(UTF16)] uint16 *net_addr;
1282 [string,charset(UTF16)] uint16 *domain;
1283 uint32 unknown;
1284 } srvsvc_NetTransportInfo2;
1286 typedef struct {
1287 uint32 count;
1288 [size_is(count)] srvsvc_NetTransportInfo2 *array;
1289 } srvsvc_NetTransportCtr2;
1291 typedef struct {
1292 uint32 vcs;
1293 [string,charset(UTF16)] uint16 *name;
1294 [size_is(addr_len)] uint8 *addr;
1295 uint32 addr_len;
1296 [string,charset(UTF16)] uint16 *net_addr;
1297 [string,charset(UTF16)] uint16 *domain;
1298 uint32 unknown1;
1299 uint32 unknown2;
1300 uint8 unknown3[256];
1301 } srvsvc_NetTransportInfo3;
1303 typedef struct {
1304 uint32 count;
1305 [size_is(count)] srvsvc_NetTransportInfo3 *array;
1306 } srvsvc_NetTransportCtr3;
1308 typedef union {
1309 [case(0)] srvsvc_NetTransportCtr0 *ctr0;
1310 [case(1)] srvsvc_NetTransportCtr1 *ctr1;
1311 [case(2)] srvsvc_NetTransportCtr2 *ctr2;
1312 [case(3)] srvsvc_NetTransportCtr3 *ctr3;
1313 [default];
1314 } srvsvc_NetTransportCtr;
1316 typedef struct {
1317 uint32 level;
1318 [switch_is(level)] srvsvc_NetTransportCtr ctr;
1319 } srvsvc_NetTransportInfoCtr;
1321 /******************/
1322 /* Function: 0x1a */
1323 WERROR srvsvc_NetTransportEnum(
1324 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1325 [in,out,ref] srvsvc_NetTransportInfoCtr *transports,
1326 [in] uint32 max_buffer,
1327 [out,ref] uint32 *totalentries,
1328 [in,out,unique] uint32 *resume_handle
1331 /******************/
1332 /* Function: 0x1b */
1333 WERROR srvsvc_NetTransportDel(
1334 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1335 [in] uint32 level,
1336 [in] srvsvc_NetTransportInfo0 *info0
1339 /**************************/
1340 /* srvsvc_NetRemoteTOD */
1341 /**************************/
1342 typedef struct {
1343 uint32 elapsed; /* time(NULL) */
1344 uint32 msecs; /* milliseconds till system reboot (uptime) */
1345 uint32 hours;
1346 uint32 mins;
1347 uint32 secs;
1348 uint32 hunds;
1349 int32 timezone; /* in minutes */
1350 uint32 tinterval; /* clock tick interval in 0.0001 second units; 310 on windows */
1351 uint32 day;
1352 uint32 month;
1353 uint32 year;
1354 uint32 weekday;
1355 } srvsvc_NetRemoteTODInfo;
1357 /******************/
1358 /* Function: 0x1c */
1359 WERROR srvsvc_NetRemoteTOD(
1360 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1361 [out,ref] srvsvc_NetRemoteTODInfo **info
1364 /**************************/
1365 /* srvsvc_NetServiceBits */
1366 /**************************/
1367 /******************/
1368 /* Function: 0x1d */
1369 WERROR srvsvc_NetSetServiceBits(
1370 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1371 [in,unique] [string,charset(UTF16)] uint16 *transport,
1372 [in] uint32 servicebits,
1373 [in] uint32 updateimmediately
1376 /**************************/
1377 /* srvsvc_NetPath */
1378 /**************************/
1379 /******************/
1380 /* Function: 0x1e */
1381 WERROR srvsvc_NetPathType(
1382 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1383 [in] [string,charset(UTF16)] uint16 path[],
1384 [in] uint32 pathflags,
1385 [out,ref] uint32 *pathtype
1388 /******************/
1389 /* Function: 0x1f */
1390 WERROR srvsvc_NetPathCanonicalize(
1391 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1392 [in] [string,charset(UTF16)] uint16 path[],
1393 [out] [size_is(maxbuf)] uint8 can_path[],
1394 [in] uint32 maxbuf,
1395 [in] [string,charset(UTF16)] uint16 prefix[],
1396 [in,out,ref] uint32 *pathtype,
1397 [in] uint32 pathflags
1400 /******************/
1401 /* Function: 0x20 */
1402 WERROR srvsvc_NetPathCompare(
1403 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1404 [in] [string,charset(UTF16)] uint16 path1[],
1405 [in] [string,charset(UTF16)] uint16 path2[],
1406 [in] uint32 pathtype,
1407 [in] uint32 pathflags
1410 /**************************/
1411 /* srvsvc_NetName */
1412 /**************************/
1413 /******************/
1414 /* Function: 0x21 */
1415 WERROR srvsvc_NetNameValidate(
1416 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1417 [in] [string,charset(UTF16)] uint16 name[],
1418 [in] uint32 name_type,
1419 [in] uint32 flags
1422 /******************/
1423 /* Function: 0x22 */
1424 [todo] WERROR srvsvc_NETRPRNAMECANONICALIZE(
1427 /******************/
1428 /* Function: 0x23 */
1429 WERROR srvsvc_NetPRNameCompare(
1430 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1431 [in] [string,charset(UTF16)] uint16 name1[],
1432 [in] [string,charset(UTF16)] uint16 name2[],
1433 [in] uint32 name_type,
1434 [in] uint32 flags
1437 /**************************/
1438 /* srvsvc_NetShare ... */
1439 /**************************/
1440 /******************/
1441 /* Function: 0x24 */
1442 /* Note, there must be some way to return entries read vs
1443 total entries ... */
1444 WERROR srvsvc_NetShareEnum(
1445 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1446 [in,out,ref] srvsvc_NetShareInfoCtr *info_ctr,
1447 [in] uint32 max_buffer,
1448 [out,ref] uint32 *totalentries,
1449 [in,out,unique] uint32 *resume_handle
1452 /******************/
1453 /* Function: 0x25 */
1454 WERROR srvsvc_NetShareDelStart(
1455 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1456 [in] [string,charset(UTF16)] uint16 share[],
1457 [in] uint32 reserved,
1458 [out,unique] policy_handle *hnd
1461 /******************/
1462 /* Function: 0x26 */
1463 WERROR srvsvc_NetShareDelCommit(
1464 [in, out,unique] policy_handle *hnd
1467 /******************/
1468 /* Function: 0x27 */
1469 WERROR srvsvc_NetGetFileSecurity(
1470 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1471 [in,unique] [string,charset(UTF16)] uint16 *share,
1472 [in] [string,charset(UTF16)] uint16 file[],
1473 [in] security_secinfo securityinformation,
1474 [out,ref] sec_desc_buf **sd_buf
1477 /******************/
1478 /* Function: 0x28 */
1479 WERROR srvsvc_NetSetFileSecurity(
1480 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1481 [in,unique] [string,charset(UTF16)] uint16 *share,
1482 [in] [string,charset(UTF16)] uint16 file[],
1483 [in] security_secinfo securityinformation,
1484 [in,ref] sec_desc_buf *sd_buf
1489 typedef [switch_type(uint32)] union {
1490 [case(0)] srvsvc_NetTransportInfo0 info0;
1491 [case(1)] srvsvc_NetTransportInfo1 info1;
1492 [case(2)] srvsvc_NetTransportInfo2 info2;
1493 [case(3)] srvsvc_NetTransportInfo3 info3;
1494 } srvsvc_NetTransportInfo;
1496 /******************/
1497 /* Function: 0x29 */
1498 WERROR srvsvc_NetServerTransportAddEx(
1499 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1500 [in] uint32 level,
1501 [in,switch_is(level)] srvsvc_NetTransportInfo info
1504 /******************/
1505 /* Function: 0x2a */
1506 WERROR srvsvc_NetServerSetServiceBitsEx(
1507 [in,unique] [string,charset(UTF16)] uint16 *server_unc,
1508 [in,unique] [string,charset(UTF16)] uint16 *emulated_server_unc,
1509 [in,unique] [string,charset(UTF16)] uint16 *transport,
1510 [in] uint32 servicebitsofinterest,
1511 [in] uint32 servicebits,
1512 [in] uint32 updateimmediately
1515 /******************/
1516 /* Function: 0x2b */
1517 [todo] WERROR srvsvc_NETRDFSGETVERSION(
1520 /******************/
1521 /* Function: 0x2c */
1522 [todo] WERROR srvsvc_NETRDFSCREATELOCALPARTITION(
1525 /******************/
1526 /* Function: 0x2d */
1527 [todo] WERROR srvsvc_NETRDFSDELETELOCALPARTITION(
1530 /******************/
1531 /* Function: 0x2e */
1532 [todo] WERROR srvsvc_NETRDFSSETLOCALVOLUMESTATE(
1535 /******************/
1536 /* Function: 0x2f */
1537 [todo] WERROR srvsvc_NETRDFSSETSERVERINFO(
1540 /******************/
1541 /* Function: 0x30 */
1542 [todo] WERROR srvsvc_NETRDFSCREATEEXITPOINT(
1545 /******************/
1546 /* Function: 0x31 */
1547 [todo] WERROR srvsvc_NETRDFSDELETEEXITPOINT(
1550 /******************/
1551 /* Function: 0x32 */
1552 [todo] WERROR srvsvc_NETRDFSMODIFYPREFIX(
1555 /******************/
1556 /* Function: 0x33 */
1557 [todo] WERROR srvsvc_NETRDFSFIXLOCALVOLUME(
1560 /******************/
1561 /* Function: 0x34 */
1562 [todo] WERROR srvsvc_NETRDFSMANAGERREPORTSITEINFO(
1565 /******************/
1566 /* Function: 0x35 */
1567 [todo] WERROR srvsvc_NETRSERVERTRANSPORTDELEX(