r21562: Regenerate gen_ndr after pidl changes.
[Samba.git] / source / librpc / gen_ndr / svcctl.h
blob22651f2d211d2f1c7c1faf01e7228b0e601601e2
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #ifndef _HEADER_svcctl
6 #define _HEADER_svcctl
8 #define SERVICE_TYPE_KERNEL_DRIVER ( 0x01 )
9 #define SERVICE_TYPE_FS_DRIVER ( 0x02 )
10 #define SERVICE_TYPE_ADAPTER ( 0x04 )
11 #define SERVICE_TYPE_RECOGNIZER_DRIVER ( 0x08 )
12 #define SERVICE_TYPE_DRIVER ( SERVICE_TYPE_KERNEL_DRIVER|SERVICE_TYPE_FS_DRIVER|SERVICE_TYPE_RECOGNIZER_DRIVER )
13 #define SERVICE_TYPE_WIN32_OWN_PROCESS ( 0x10 )
14 #define SERVICE_TYPE_WIN32_SHARE_PROCESS ( 0x20 )
15 #define SERVICE_TYPE_WIN32 ( SERVICE_TYPE_WIN32_OWN_PROCESS|SERVICE_TYPE_WIN32_SHARE_PROCESS )
16 #define SERVICE_STATE_ACTIVE ( 0x01 )
17 #define SERVICE_STATE_INACTIVE ( 0x02 )
18 #define SERVICE_STATE_ALL ( 0x03 )
19 #define SV_TYPE_ALL ( 0xFFFFFFFF )
20 struct SERVICE_LOCK_STATUS {
21 uint32_t is_locked;
22 const char *lock_owner;/* [unique,charset(UTF16)] */
23 uint32_t lock_duration;
26 struct SERVICE_STATUS {
27 uint32_t type;
28 uint32_t state;
29 uint32_t controls_accepted;
30 uint32_t win32_exit_code;
31 uint32_t service_exit_code;
32 uint32_t check_point;
33 uint32_t wait_hint;
36 struct ENUM_SERVICE_STATUS {
37 const char * service_name;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
38 const char * display_name;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
39 struct SERVICE_STATUS status;
42 /* bitmap svcctl_ServerType */
43 #define SV_TYPE_WORKSTATION ( 0x00000001 )
44 #define SV_TYPE_SERVER ( 0x00000002 )
45 #define SV_TYPE_SQLSERVER ( 0x00000004 )
46 #define SV_TYPE_DOMAIN_CTRL ( 0x00000008 )
47 #define SV_TYPE_DOMAIN_BAKCTRL ( 0x00000010 )
48 #define SV_TYPE_TIME_SOURCE ( 0x00000020 )
49 #define SV_TYPE_AFP ( 0x00000040 )
50 #define SV_TYPE_NOVELL ( 0x00000080 )
51 #define SV_TYPE_DOMAIN_MEMBER ( 0x00000100 )
52 #define SV_TYPE_PRINTQ_SERVER ( 0x00000200 )
53 #define SV_TYPE_DIALIN_SERVER ( 0x00000400 )
54 #define SV_TYPE_SERVER_UNIX ( 0x00000800 )
55 #define SV_TYPE_NT ( 0x00001000 )
56 #define SV_TYPE_WFW ( 0x00002000 )
57 #define SV_TYPE_SERVER_MFPN ( 0x00004000 )
58 #define SV_TYPE_SERVER_NT ( 0x00008000 )
59 #define SV_TYPE_POTENTIAL_BROWSER ( 0x00010000 )
60 #define SV_TYPE_BACKUP_BROWSER ( 0x00020000 )
61 #define SV_TYPE_MASTER_BROWSER ( 0x00040000 )
62 #define SV_TYPE_DOMAIN_MASTER ( 0x00080000 )
63 #define SV_TYPE_SERVER_OSF ( 0x00100000 )
64 #define SV_TYPE_SERVER_VMS ( 0x00200000 )
65 #define SV_TYPE_WIN95_PLUS ( 0x00400000 )
66 #define SV_TYPE_DFS_SERVER ( 0x00800000 )
67 #define SV_TYPE_ALTERNATE_XPORT ( 0x20000000 )
68 #define SV_TYPE_LOCAL_LIST_ONLY ( 0x40000000 )
69 #define SV_TYPE_DOMAIN_ENUM ( 0x80000000 )
73 #ifndef USE_UINT_ENUMS
74 enum SERVICE_CONTROL {
75 FIXME=1
77 #else
78 enum SERVICE_CONTROL { __donnot_use_enum_SERVICE_CONTROL=0x7FFFFFFF}
79 #define FIXME ( 1 )
80 #endif
84 struct svcctl_CloseServiceHandle {
85 struct {
86 struct policy_handle *handle;/* [ref] */
87 } in;
89 struct {
90 struct policy_handle *handle;/* [ref] */
91 WERROR result;
92 } out;
97 struct svcctl_ControlService {
98 struct {
99 struct policy_handle *handle;/* [ref] */
100 uint32_t control;
101 } in;
103 struct {
104 struct SERVICE_STATUS *status;/* [ref] */
105 WERROR result;
106 } out;
111 struct svcctl_DeleteService {
112 struct {
113 struct policy_handle *handle;/* [ref] */
114 } in;
116 struct {
117 WERROR result;
118 } out;
123 struct svcctl_LockServiceDatabase {
124 struct {
125 struct policy_handle *handle;/* [ref] */
126 } in;
128 struct {
129 struct policy_handle *lock;/* [ref] */
130 WERROR result;
131 } out;
136 struct svcctl_QueryServiceObjectSecurity {
137 struct {
138 WERROR result;
139 } out;
144 struct svcctl_SetServiceObjectSecurity {
145 struct {
146 WERROR result;
147 } out;
152 struct svcctl_QueryServiceStatus {
153 struct {
154 struct policy_handle *handle;/* [ref] */
155 } in;
157 struct {
158 struct SERVICE_STATUS *status;/* [ref] */
159 WERROR result;
160 } out;
165 struct svcctl_SetServiceStatus {
166 struct {
167 WERROR result;
168 } out;
173 struct svcctl_UnlockServiceDatabase {
174 struct {
175 struct policy_handle *lock;/* [ref] */
176 } in;
178 struct {
179 struct policy_handle *lock;/* [ref] */
180 WERROR result;
181 } out;
186 struct svcctl_NotifyBootConfigStatus {
187 struct {
188 WERROR result;
189 } out;
194 struct svcctl_SCSetServiceBitsW {
195 struct {
196 struct policy_handle *handle;/* [ref] */
197 uint32_t bits;
198 uint32_t bitson;
199 uint32_t immediate;
200 } in;
202 struct {
203 WERROR result;
204 } out;
209 struct svcctl_ChangeServiceConfigW {
210 struct {
211 struct policy_handle *handle;/* [ref] */
212 uint32_t type;
213 uint32_t start;
214 uint32_t error;
215 const char *binary_path;/* [unique,charset(UTF16)] */
216 const char *load_order_group;/* [unique,charset(UTF16)] */
217 const char *dependencies;/* [unique,charset(UTF16)] */
218 const char *service_start_name;/* [unique,charset(UTF16)] */
219 const char *password;/* [unique,charset(UTF16)] */
220 const char *display_name;/* [unique,charset(UTF16)] */
221 } in;
223 struct {
224 uint32_t *tag_id;/* [ref] */
225 WERROR result;
226 } out;
231 struct svcctl_CreateServiceW {
232 struct {
233 struct policy_handle *scmanager_handle;/* [ref] */
234 const char *ServiceName;/* [charset(UTF16)] */
235 const char *DisplayName;/* [unique,charset(UTF16)] */
236 uint32_t desired_access;
237 uint32_t type;
238 uint32_t start_type;
239 uint32_t error_control;
240 const char *binary_path;/* [charset(UTF16)] */
241 const char *LoadOrderGroupKey;/* [unique,charset(UTF16)] */
242 uint8_t *dependencies;/* [unique,size_is(dependencies_size)] */
243 uint32_t dependencies_size;
244 const char *service_start_name;/* [unique,charset(UTF16)] */
245 uint8_t *password;/* [unique,size_is(password_size)] */
246 uint32_t password_size;
247 uint32_t *TagId;/* [unique] */
248 } in;
250 struct {
251 struct policy_handle *handle;/* [ref] */
252 uint32_t *TagId;/* [unique] */
253 WERROR result;
254 } out;
259 struct svcctl_EnumDependentServicesW {
260 struct {
261 struct policy_handle *service;/* [ref] */
262 uint32_t state;
263 uint32_t buf_size;
264 } in;
266 struct {
267 struct ENUM_SERVICE_STATUS *status;/* [unique] */
268 uint32_t *bytes_needed;/* [ref] */
269 uint32_t *services_returned;/* [ref] */
270 WERROR result;
271 } out;
276 struct svcctl_EnumServicesStatusW {
277 struct {
278 struct policy_handle *handle;/* [ref] */
279 uint32_t type;
280 uint32_t state;
281 uint32_t buf_size;
282 uint32_t *resume_handle;/* [unique] */
283 } in;
285 struct {
286 uint8_t *service;/* [size_is(buf_size)] */
287 uint32_t *bytes_needed;/* [ref] */
288 uint32_t *services_returned;/* [ref] */
289 uint32_t *resume_handle;/* [unique] */
290 WERROR result;
291 } out;
296 struct svcctl_OpenSCManagerW {
297 struct {
298 const char *MachineName;/* [unique,charset(UTF16)] */
299 const char *DatabaseName;/* [unique,charset(UTF16)] */
300 uint32_t access_mask;
301 } in;
303 struct {
304 struct policy_handle *handle;/* [ref] */
305 WERROR result;
306 } out;
311 struct svcctl_OpenServiceW {
312 struct {
313 struct policy_handle *scmanager_handle;/* [ref] */
314 const char *ServiceName;/* [charset(UTF16)] */
315 uint32_t access_mask;
316 } in;
318 struct {
319 struct policy_handle *handle;/* [ref] */
320 WERROR result;
321 } out;
326 struct svcctl_QueryServiceConfigW {
327 struct {
328 struct policy_handle *handle;/* [ref] */
329 uint32_t buf_size;
330 } in;
332 struct {
333 uint8_t *query;
334 uint32_t *bytes_needed;/* [ref] */
335 WERROR result;
336 } out;
341 struct svcctl_QueryServiceLockStatusW {
342 struct {
343 struct policy_handle *handle;/* [ref] */
344 uint32_t buf_size;
345 } in;
347 struct {
348 struct SERVICE_LOCK_STATUS *status;/* [ref] */
349 uint32_t *required_buf_size;/* [ref] */
350 WERROR result;
351 } out;
356 struct svcctl_StartServiceW {
357 struct {
358 struct policy_handle *handle;/* [ref] */
359 uint32_t NumArgs;
360 const char *Arguments;/* [unique,charset(UTF16),length_is(NumArgs)] */
361 } in;
363 struct {
364 WERROR result;
365 } out;
370 struct svcctl_GetServiceDisplayNameW {
371 struct {
372 struct policy_handle *handle;/* [ref] */
373 const char *service_name;/* [unique,charset(UTF16)] */
374 uint32_t *display_name_length;/* [unique] */
375 } in;
377 struct {
378 const char **display_name;/* [ref,charset(UTF16)] */
379 uint32_t *display_name_length;/* [unique] */
380 WERROR result;
381 } out;
386 struct svcctl_GetServiceKeyNameW {
387 struct {
388 struct policy_handle *handle;/* [ref] */
389 const char *service_name;/* [unique,charset(UTF16)] */
390 uint32_t *display_name_length;/* [unique] */
391 } in;
393 struct {
394 const char **key_name;/* [ref,charset(UTF16)] */
395 uint32_t *display_name_length;/* [unique] */
396 WERROR result;
397 } out;
402 struct svcctl_SCSetServiceBitsA {
403 struct {
404 struct policy_handle *handle;/* [ref] */
405 uint32_t bits;
406 uint32_t bitson;
407 uint32_t immediate;
408 } in;
410 struct {
411 WERROR result;
412 } out;
417 struct svcctl_ChangeServiceConfigA {
418 struct {
419 struct policy_handle *handle;/* [ref] */
420 uint32_t type;
421 uint32_t start;
422 uint32_t error;
423 const char *binary_path;/* [unique,charset(UTF16)] */
424 const char *load_order_group;/* [unique,charset(UTF16)] */
425 const char *dependencies;/* [unique,charset(UTF16)] */
426 const char *service_start_name;/* [unique,charset(UTF16)] */
427 const char *password;/* [unique,charset(UTF16)] */
428 const char *display_name;/* [unique,charset(UTF16)] */
429 } in;
431 struct {
432 uint32_t *tag_id;/* [ref] */
433 WERROR result;
434 } out;
439 struct svcctl_CreateServiceA {
440 struct {
441 struct policy_handle *handle;/* [ref] */
442 const char *ServiceName;/* [unique,charset(UTF16)] */
443 const char *DisplayName;/* [unique,charset(UTF16)] */
444 uint32_t desired_access;
445 uint32_t type;
446 uint32_t start_type;
447 uint32_t error_control;
448 const char *binary_path;/* [unique,charset(UTF16)] */
449 const char *LoadOrderGroupKey;/* [unique,charset(UTF16)] */
450 const char *dependencies;/* [unique,charset(UTF16)] */
451 const char *service_start_name;/* [unique,charset(UTF16)] */
452 const char *password;/* [unique,charset(UTF16)] */
453 } in;
455 struct {
456 uint32_t *TagId;/* [unique] */
457 WERROR result;
458 } out;
463 struct svcctl_EnumDependentServicesA {
464 struct {
465 struct policy_handle *service;/* [ref] */
466 uint32_t state;
467 uint32_t buf_size;
468 } in;
470 struct {
471 struct ENUM_SERVICE_STATUS *status;/* [unique] */
472 uint32_t *bytes_needed;/* [ref] */
473 uint32_t *services_returned;/* [ref] */
474 WERROR result;
475 } out;
480 struct svcctl_EnumServicesStatusA {
481 struct {
482 struct policy_handle *handle;/* [ref] */
483 uint32_t type;
484 uint32_t state;
485 uint32_t buf_size;
486 uint32_t *resume_handle;/* [unique] */
487 } in;
489 struct {
490 uint8_t *service;/* [size_is(buf_size)] */
491 uint32_t *bytes_needed;/* [ref] */
492 uint32_t *services_returned;/* [ref] */
493 uint32_t *resume_handle;/* [unique] */
494 WERROR result;
495 } out;
500 struct svcctl_OpenSCManagerA {
501 struct {
502 const char *MachineName;/* [unique,charset(UTF16)] */
503 const char *DatabaseName;/* [unique,charset(UTF16)] */
504 uint32_t access_mask;
505 } in;
507 struct {
508 struct policy_handle *handle;/* [ref] */
509 WERROR result;
510 } out;
515 struct svcctl_OpenServiceA {
516 struct {
517 struct policy_handle *scmanager_handle;/* [ref] */
518 const char *ServiceName;/* [unique,charset(UTF16)] */
519 uint32_t access_mask;
520 } in;
522 struct {
523 WERROR result;
524 } out;
529 struct svcctl_QueryServiceConfigA {
530 struct {
531 struct policy_handle *handle;/* [ref] */
532 uint32_t buf_size;
533 } in;
535 struct {
536 uint8_t *query;
537 uint32_t *bytes_needed;/* [ref] */
538 WERROR result;
539 } out;
544 struct svcctl_QueryServiceLockStatusA {
545 struct {
546 struct policy_handle *handle;/* [ref] */
547 uint32_t buf_size;
548 } in;
550 struct {
551 struct SERVICE_LOCK_STATUS *status;/* [ref] */
552 uint32_t *required_buf_size;/* [ref] */
553 WERROR result;
554 } out;
559 struct svcctl_StartServiceA {
560 struct {
561 struct policy_handle *handle;/* [ref] */
562 uint32_t NumArgs;
563 const char *Arguments;/* [unique,charset(UTF16),length_is(NumArgs)] */
564 } in;
566 struct {
567 WERROR result;
568 } out;
573 struct svcctl_GetServiceDisplayNameA {
574 struct {
575 struct policy_handle *handle;/* [ref] */
576 const char *service_name;/* [unique,charset(UTF16)] */
577 uint32_t *display_name_length;/* [unique] */
578 } in;
580 struct {
581 const char **display_name;/* [ref,charset(UTF16)] */
582 uint32_t *display_name_length;/* [unique] */
583 WERROR result;
584 } out;
589 struct svcctl_GetServiceKeyNameA {
590 struct {
591 struct policy_handle *handle;/* [ref] */
592 const char *service_name;/* [unique,charset(UTF16)] */
593 uint32_t *display_name_length;/* [unique] */
594 } in;
596 struct {
597 const char **key_name;/* [ref,charset(UTF16)] */
598 uint32_t *display_name_length;/* [unique] */
599 WERROR result;
600 } out;
605 struct svcctl_GetCurrentGroupeStateW {
606 struct {
607 WERROR result;
608 } out;
613 struct svcctl_EnumServiceGroupW {
614 struct {
615 WERROR result;
616 } out;
621 struct svcctl_ChangeServiceConfig2A {
622 struct {
623 struct policy_handle *handle;/* [ref] */
624 uint32_t info_level;
625 uint8_t *info;/* [unique] */
626 } in;
628 struct {
629 WERROR result;
630 } out;
635 struct svcctl_ChangeServiceConfig2W {
636 struct {
637 struct policy_handle *handle;/* [ref] */
638 uint32_t info_level;
639 uint8_t *info;/* [unique] */
640 } in;
642 struct {
643 WERROR result;
644 } out;
649 struct svcctl_QueryServiceConfig2A {
650 struct {
651 struct policy_handle *handle;/* [ref] */
652 uint32_t info_level;
653 uint32_t buf_size;
654 } in;
656 struct {
657 uint8_t *buffer;
658 uint32_t *bytes_needed;/* [ref] */
659 WERROR result;
660 } out;
665 struct svcctl_QueryServiceConfig2W {
666 struct {
667 struct policy_handle *handle;/* [ref] */
668 uint32_t info_level;
669 uint32_t buf_size;
670 } in;
672 struct {
673 uint8_t *buffer;
674 uint32_t *bytes_needed;/* [ref] */
675 WERROR result;
676 } out;
681 struct svcctl_QueryServiceStatusEx {
682 struct {
683 struct policy_handle *handle;/* [ref] */
684 uint32_t info_level;
685 uint32_t buf_size;
686 } in;
688 struct {
689 uint8_t *buffer;
690 uint32_t *bytes_needed;/* [ref] */
691 WERROR result;
692 } out;
697 struct EnumServicesStatusExA {
698 struct {
699 struct policy_handle *scmanager;/* [ref] */
700 uint32_t info_level;
701 uint32_t type;
702 uint32_t state;
703 uint32_t buf_size;
704 uint32_t *resume_handle;/* [unique] */
705 } in;
707 struct {
708 uint8_t *services;
709 uint32_t *bytes_needed;/* [ref] */
710 uint32_t *service_returned;/* [ref] */
711 const char **group_name;/* [ref,charset(UTF16)] */
712 uint32_t *resume_handle;/* [unique] */
713 WERROR result;
714 } out;
719 struct EnumServicesStatusExW {
720 struct {
721 struct policy_handle *scmanager;/* [ref] */
722 uint32_t info_level;
723 uint32_t type;
724 uint32_t state;
725 uint32_t buf_size;
726 uint32_t *resume_handle;/* [unique] */
727 } in;
729 struct {
730 uint8_t *services;
731 uint32_t *bytes_needed;/* [ref] */
732 uint32_t *service_returned;/* [ref] */
733 const char **group_name;/* [ref,charset(UTF16)] */
734 uint32_t *resume_handle;/* [unique] */
735 WERROR result;
736 } out;
741 struct svcctl_SCSendTSMessage {
742 struct {
743 WERROR result;
744 } out;
748 #endif /* _HEADER_svcctl */