1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/misc.h"
8 #include "librpc/gen_ndr/security.h"
10 #define _HEADER_svcctl
12 #define SVCCTL_ACCEPT_NONE ( 0x00000000 )
13 #define SERVICE_TYPE_KERNEL_DRIVER ( 0x01 )
14 #define SERVICE_TYPE_FS_DRIVER ( 0x02 )
15 #define SERVICE_TYPE_ADAPTER ( 0x04 )
16 #define SERVICE_TYPE_RECOGNIZER_DRIVER ( 0x08 )
17 #define SERVICE_TYPE_DRIVER ( SERVICE_TYPE_KERNEL_DRIVER|SERVICE_TYPE_FS_DRIVER|SERVICE_TYPE_RECOGNIZER_DRIVER )
18 #define SERVICE_TYPE_WIN32_OWN_PROCESS ( 0x10 )
19 #define SERVICE_TYPE_WIN32_SHARE_PROCESS ( 0x20 )
20 #define SERVICE_TYPE_WIN32 ( SERVICE_TYPE_WIN32_OWN_PROCESS|SERVICE_TYPE_WIN32_SHARE_PROCESS )
21 #define SERVICE_TYPE_INTERACTIVE_PROCESS ( 0x100 )
22 #define SV_TYPE_ALL ( 0xFFFFFFFF )
23 #define SC_MANAGER_READ_ACCESS ( (SEC_STD_READ_CONTROL|SC_RIGHT_MGR_CONNECT|SC_RIGHT_MGR_ENUMERATE_SERVICE|SC_RIGHT_MGR_QUERY_LOCK_STATUS) )
24 #define SC_MANAGER_EXECUTE_ACCESS ( SC_MANAGER_READ_ACCESS )
25 #define SC_MANAGER_WRITE_ACCESS ( (SEC_STD_REQUIRED|SC_MANAGER_READ_ACCESS|SC_RIGHT_MGR_CREATE_SERVICE|SC_RIGHT_MGR_LOCK|SC_RIGHT_MGR_MODIFY_BOOT_CONFIG) )
26 #define SC_MANAGER_ALL_ACCESS ( SC_MANAGER_WRITE_ACCESS )
27 #define SERVICE_READ_ACCESS ( (SEC_STD_READ_CONTROL|SC_RIGHT_SVC_ENUMERATE_DEPENDENTS|SC_RIGHT_SVC_INTERROGATE|SC_RIGHT_SVC_QUERY_CONFIG|SC_RIGHT_SVC_QUERY_STATUS|SC_RIGHT_SVC_USER_DEFINED_CONTROL) )
28 #define SERVICE_EXECUTE_ACCESS ( (SERVICE_READ_ACCESS|SC_RIGHT_SVC_START|SC_RIGHT_SVC_STOP|SC_RIGHT_SVC_PAUSE_CONTINUE) )
29 #define SERVICE_WRITE_ACCESS ( (SEC_STD_REQUIRED|SERVICE_READ_ACCESS|SERVICE_EXECUTE_ACCESS|SC_RIGHT_SVC_CHANGE_CONFIG) )
30 #define SERVICE_ALL_ACCESS ( SERVICE_WRITE_ACCESS )
31 struct SERVICE_LOCK_STATUS
{
33 const char *lock_owner
;/* [unique,charset(UTF16)] */
34 uint32_t lock_duration
;
37 enum svcctl_ServiceStatus
38 #ifndef USE_UINT_ENUMS
40 SVCCTL_STATE_UNKNOWN
=0x00000000,
41 SVCCTL_STOPPED
=0x00000001,
42 SVCCTL_START_PENDING
=0x00000002,
43 SVCCTL_STOP_PENDING
=0x00000003,
44 SVCCTL_RUNNING
=0x00000004,
45 SVCCTL_CONTINUE_PENDING
=0x00000005,
46 SVCCTL_PAUSE_PENDING
=0x00000006,
47 SVCCTL_PAUSED
=0x00000007
50 { __donnot_use_enum_svcctl_ServiceStatus
=0x7FFFFFFF}
51 #define SVCCTL_STATE_UNKNOWN ( 0x00000000 )
52 #define SVCCTL_STOPPED ( 0x00000001 )
53 #define SVCCTL_START_PENDING ( 0x00000002 )
54 #define SVCCTL_STOP_PENDING ( 0x00000003 )
55 #define SVCCTL_RUNNING ( 0x00000004 )
56 #define SVCCTL_CONTINUE_PENDING ( 0x00000005 )
57 #define SVCCTL_PAUSE_PENDING ( 0x00000006 )
58 #define SVCCTL_PAUSED ( 0x00000007 )
62 /* bitmap svcctl_ControlsAccepted */
63 #define SVCCTL_ACCEPT_STOP ( 0x00000001 )
64 #define SVCCTL_ACCEPT_PAUSE_CONTINUE ( 0x00000002 )
65 #define SVCCTL_ACCEPT_SHUTDOWN ( 0x00000004 )
66 #define SVCCTL_ACCEPT_PARAMCHANGE ( 0x00000008 )
67 #define SVCCTL_ACCEPT_NETBINDCHANGE ( 0x00000010 )
68 #define SVCCTL_ACCEPT_HARDWAREPROFILECHANGE ( 0x00000020 )
69 #define SVCCTL_ACCEPT_POWEREVENT ( 0x00000040 )
71 struct SERVICE_STATUS
{
73 enum svcctl_ServiceStatus state
;
74 uint32_t controls_accepted
;
75 WERROR win32_exit_code
;
76 uint32_t service_exit_code
;
81 struct SERVICE_STATUS_PROCESS
{
82 struct SERVICE_STATUS status
;
84 uint32_t service_flags
;
87 struct ENUM_SERVICE_STATUSW
{
88 const char * service_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
89 const char * display_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
90 struct SERVICE_STATUS status
;
91 }/* [gensize,public] */;
93 struct ENUM_SERVICE_STATUSA
{
94 const char * service_name
;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
95 const char * display_name
;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
96 struct SERVICE_STATUS status
;
97 }/* [gensize,public] */;
99 /* bitmap svcctl_ServerType */
100 #define SV_TYPE_WORKSTATION ( 0x00000001 )
101 #define SV_TYPE_SERVER ( 0x00000002 )
102 #define SV_TYPE_SQLSERVER ( 0x00000004 )
103 #define SV_TYPE_DOMAIN_CTRL ( 0x00000008 )
104 #define SV_TYPE_DOMAIN_BAKCTRL ( 0x00000010 )
105 #define SV_TYPE_TIME_SOURCE ( 0x00000020 )
106 #define SV_TYPE_AFP ( 0x00000040 )
107 #define SV_TYPE_NOVELL ( 0x00000080 )
108 #define SV_TYPE_DOMAIN_MEMBER ( 0x00000100 )
109 #define SV_TYPE_PRINTQ_SERVER ( 0x00000200 )
110 #define SV_TYPE_DIALIN_SERVER ( 0x00000400 )
111 #define SV_TYPE_SERVER_UNIX ( 0x00000800 )
112 #define SV_TYPE_NT ( 0x00001000 )
113 #define SV_TYPE_WFW ( 0x00002000 )
114 #define SV_TYPE_SERVER_MFPN ( 0x00004000 )
115 #define SV_TYPE_SERVER_NT ( 0x00008000 )
116 #define SV_TYPE_POTENTIAL_BROWSER ( 0x00010000 )
117 #define SV_TYPE_BACKUP_BROWSER ( 0x00020000 )
118 #define SV_TYPE_MASTER_BROWSER ( 0x00040000 )
119 #define SV_TYPE_DOMAIN_MASTER ( 0x00080000 )
120 #define SV_TYPE_SERVER_OSF ( 0x00100000 )
121 #define SV_TYPE_SERVER_VMS ( 0x00200000 )
122 #define SV_TYPE_WIN95_PLUS ( 0x00400000 )
123 #define SV_TYPE_DFS_SERVER ( 0x00800000 )
124 #define SV_TYPE_ALTERNATE_XPORT ( 0x20000000 )
125 #define SV_TYPE_LOCAL_LIST_ONLY ( 0x40000000 )
126 #define SV_TYPE_DOMAIN_ENUM ( 0x80000000 )
129 #ifndef USE_UINT_ENUMS
131 SVCCTL_CONTROL_STOP
=0x00000001,
132 SVCCTL_CONTROL_PAUSE
=0x00000002,
133 SVCCTL_CONTROL_CONTINUE
=0x00000003,
134 SVCCTL_CONTROL_INTERROGATE
=0x00000004,
135 SVCCTL_CONTROL_SHUTDOWN
=0x00000005
138 { __donnot_use_enum_SERVICE_CONTROL
=0x7FFFFFFF}
139 #define SVCCTL_CONTROL_STOP ( 0x00000001 )
140 #define SVCCTL_CONTROL_PAUSE ( 0x00000002 )
141 #define SVCCTL_CONTROL_CONTINUE ( 0x00000003 )
142 #define SVCCTL_CONTROL_INTERROGATE ( 0x00000004 )
143 #define SVCCTL_CONTROL_SHUTDOWN ( 0x00000005 )
147 enum svcctl_ErrorControl
148 #ifndef USE_UINT_ENUMS
150 SVCCTL_SVC_ERROR_IGNORE
=0x00000000,
151 SVCCTL_SVC_ERROR_NORMAL
=0x00000001,
152 SVCCTL_SVC_ERROR_CRITICAL
=0x00000002,
153 SVCCTL_SVC_ERROR_SEVERE
=0x00000003
156 { __donnot_use_enum_svcctl_ErrorControl
=0x7FFFFFFF}
157 #define SVCCTL_SVC_ERROR_IGNORE ( 0x00000000 )
158 #define SVCCTL_SVC_ERROR_NORMAL ( 0x00000001 )
159 #define SVCCTL_SVC_ERROR_CRITICAL ( 0x00000002 )
160 #define SVCCTL_SVC_ERROR_SEVERE ( 0x00000003 )
164 enum svcctl_StartType
165 #ifndef USE_UINT_ENUMS
167 SVCCTL_BOOT_START
=0x00000000,
168 SVCCTL_SYSTEM_START
=0x00000001,
169 SVCCTL_AUTO_START
=0x00000002,
170 SVCCTL_DEMAND_START
=0x00000003,
171 SVCCTL_DISABLED
=0x00000004
174 { __donnot_use_enum_svcctl_StartType
=0x7FFFFFFF}
175 #define SVCCTL_BOOT_START ( 0x00000000 )
176 #define SVCCTL_SYSTEM_START ( 0x00000001 )
177 #define SVCCTL_AUTO_START ( 0x00000002 )
178 #define SVCCTL_DEMAND_START ( 0x00000003 )
179 #define SVCCTL_DISABLED ( 0x00000004 )
183 enum svcctl_ServiceState
184 #ifndef USE_UINT_ENUMS
186 SERVICE_STATE_ACTIVE
=0x00000001,
187 SERVICE_STATE_INACTIVE
=0x00000002,
188 SERVICE_STATE_ALL
=(SERVICE_STATE_ACTIVE
|SERVICE_STATE_INACTIVE
)
191 { __donnot_use_enum_svcctl_ServiceState
=0x7FFFFFFF}
192 #define SERVICE_STATE_ACTIVE ( 0x00000001 )
193 #define SERVICE_STATE_INACTIVE ( 0x00000002 )
194 #define SERVICE_STATE_ALL ( (SERVICE_STATE_ACTIVE|SERVICE_STATE_INACTIVE) )
198 /* bitmap svcctl_MgrAccessMask */
199 #define SC_RIGHT_MGR_CONNECT ( 0x0001 )
200 #define SC_RIGHT_MGR_CREATE_SERVICE ( 0x0002 )
201 #define SC_RIGHT_MGR_ENUMERATE_SERVICE ( 0x0004 )
202 #define SC_RIGHT_MGR_LOCK ( 0x0008 )
203 #define SC_RIGHT_MGR_QUERY_LOCK_STATUS ( 0x0010 )
204 #define SC_RIGHT_MGR_MODIFY_BOOT_CONFIG ( 0x0020 )
206 /* bitmap svcctl_ServiceAccessMask */
207 #define SC_RIGHT_SVC_QUERY_CONFIG ( 0x0001 )
208 #define SC_RIGHT_SVC_CHANGE_CONFIG ( 0x0002 )
209 #define SC_RIGHT_SVC_QUERY_STATUS ( 0x0004 )
210 #define SC_RIGHT_SVC_ENUMERATE_DEPENDENTS ( 0x0008 )
211 #define SC_RIGHT_SVC_START ( 0x0010 )
212 #define SC_RIGHT_SVC_STOP ( 0x0020 )
213 #define SC_RIGHT_SVC_PAUSE_CONTINUE ( 0x0040 )
214 #define SC_RIGHT_SVC_INTERROGATE ( 0x0080 )
215 #define SC_RIGHT_SVC_USER_DEFINED_CONTROL ( 0x0100 )
217 struct QUERY_SERVICE_CONFIG
{
218 uint32_t service_type
;
219 enum svcctl_StartType start_type
;
220 enum svcctl_ErrorControl error_control
;
221 const char *executablepath
;/* [unique,range(0,8192),charset(UTF16)] */
222 const char *loadordergroup
;/* [unique,range(0,8192),charset(UTF16)] */
224 const char *dependencies
;/* [unique,range(0,8192),charset(UTF16)] */
225 const char *startname
;/* [unique,range(0,8192),charset(UTF16)] */
226 const char *displayname
;/* [unique,range(0,8192),charset(UTF16)] */
227 }/* [gensize,public] */;
229 enum svcctl_ConfigLevel
230 #ifndef USE_UINT_ENUMS
232 SERVICE_CONFIG_DESCRIPTION
=0x00000001,
233 SERVICE_CONFIG_FAILURE_ACTIONS
=0x00000002
236 { __donnot_use_enum_svcctl_ConfigLevel
=0x7FFFFFFF}
237 #define SERVICE_CONFIG_DESCRIPTION ( 0x00000001 )
238 #define SERVICE_CONFIG_FAILURE_ACTIONS ( 0x00000002 )
242 struct SERVICE_DESCRIPTION
{
243 const char * description
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
244 }/* [gensize,public] */;
247 #ifndef USE_UINT_ENUMS
252 SC_ACTION_RUN_COMMAND
=3
255 { __donnot_use_enum_SC_ACTION_TYPE
=0x7FFFFFFF}
256 #define SC_ACTION_NONE ( 0 )
257 #define SC_ACTION_RESTART ( 1 )
258 #define SC_ACTION_REBOOT ( 2 )
259 #define SC_ACTION_RUN_COMMAND ( 3 )
264 enum SC_ACTION_TYPE type
;
268 struct SERVICE_FAILURE_ACTIONS
{
269 uint32_t reset_period
;
270 const char * rebootmsg
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
271 const char * command
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
272 uint32_t num_actions
;/* [range(0,1024)] */
273 struct SC_ACTION
*actions
;/* [relative,size_is(num_actions)] */
274 }/* [gensize,public] */;
276 enum svcctl_StatusLevel
277 #ifndef USE_UINT_ENUMS
279 SVC_STATUS_PROCESS_INFO
=0x00000000
282 { __donnot_use_enum_svcctl_StatusLevel
=0x7FFFFFFF}
283 #define SVC_STATUS_PROCESS_INFO ( 0x00000000 )
288 struct svcctl_CloseServiceHandle
{
290 struct policy_handle
*handle
;/* [ref] */
294 struct policy_handle
*handle
;/* [ref] */
301 struct svcctl_ControlService
{
303 struct policy_handle
*handle
;/* [ref] */
304 enum SERVICE_CONTROL control
;
308 struct SERVICE_STATUS
*service_status
;/* [ref] */
315 struct svcctl_DeleteService
{
317 struct policy_handle
*handle
;/* [ref] */
327 struct svcctl_LockServiceDatabase
{
329 struct policy_handle
*handle
;/* [ref] */
333 struct policy_handle
*lock
;/* [ref] */
340 struct svcctl_QueryServiceObjectSecurity
{
342 struct policy_handle
*handle
;/* [ref] */
343 uint32_t security_flags
;
344 uint32_t offered
;/* [range(0,0x40000)] */
348 uint8_t *buffer
;/* [ref,size_is(offered)] */
349 uint32_t *needed
;/* [ref,range(0,0x40000)] */
356 struct svcctl_SetServiceObjectSecurity
{
358 struct policy_handle
*handle
;/* [ref] */
359 uint32_t security_flags
;
360 uint8_t *buffer
;/* [ref,size_is(offered)] */
371 struct svcctl_QueryServiceStatus
{
373 struct policy_handle
*handle
;/* [ref] */
377 struct SERVICE_STATUS
*service_status
;/* [ref] */
384 struct svcctl_SetServiceStatus
{
392 struct svcctl_UnlockServiceDatabase
{
394 struct policy_handle
*lock
;/* [ref] */
398 struct policy_handle
*lock
;/* [ref] */
405 struct svcctl_NotifyBootConfigStatus
{
413 struct svcctl_SCSetServiceBitsW
{
415 struct policy_handle
*handle
;/* [ref] */
428 struct svcctl_ChangeServiceConfigW
{
430 struct policy_handle
*handle
;/* [ref] */
432 enum svcctl_StartType start_type
;
433 enum svcctl_ErrorControl error_control
;
434 const char *binary_path
;/* [unique,charset(UTF16)] */
435 const char *load_order_group
;/* [unique,charset(UTF16)] */
436 const char *dependencies
;/* [unique,charset(UTF16)] */
437 const char *service_start_name
;/* [unique,charset(UTF16)] */
438 const char *password
;/* [unique,charset(UTF16)] */
439 const char *display_name
;/* [unique,charset(UTF16)] */
443 uint32_t *tag_id
;/* [ref] */
450 struct svcctl_CreateServiceW
{
452 struct policy_handle
*scmanager_handle
;/* [ref] */
453 const char *ServiceName
;/* [charset(UTF16)] */
454 const char *DisplayName
;/* [unique,charset(UTF16)] */
455 uint32_t desired_access
;
457 enum svcctl_StartType start_type
;
458 enum svcctl_ErrorControl error_control
;
459 const char *binary_path
;/* [charset(UTF16)] */
460 const char *LoadOrderGroupKey
;/* [unique,charset(UTF16)] */
461 uint8_t *dependencies
;/* [unique,size_is(dependencies_size)] */
462 uint32_t dependencies_size
;
463 const char *service_start_name
;/* [unique,charset(UTF16)] */
464 uint8_t *password
;/* [unique,size_is(password_size)] */
465 uint32_t password_size
;
466 uint32_t *TagId
;/* [unique] */
470 struct policy_handle
*handle
;/* [ref] */
471 uint32_t *TagId
;/* [unique] */
478 struct svcctl_EnumDependentServicesW
{
480 struct policy_handle
*service
;/* [ref] */
482 uint32_t offered
;/* [range(0,0x40000)] */
486 uint8_t *service_status
;/* [ref,size_is(offered)] */
487 uint32_t *needed
;/* [ref,range(0,0x40000)] */
488 uint32_t *services_returned
;/* [ref,range(0,0x40000)] */
495 struct svcctl_EnumServicesStatusW
{
497 struct policy_handle
*handle
;/* [ref] */
499 enum svcctl_ServiceState state
;
500 uint32_t offered
;/* [range(0,0x40000)] */
501 uint32_t *resume_handle
;/* [unique] */
505 uint8_t *service
;/* [ref,size_is(offered)] */
506 uint32_t *needed
;/* [ref,range(0,0x40000)] */
507 uint32_t *services_returned
;/* [ref,range(0,0x40000)] */
508 uint32_t *resume_handle
;/* [unique] */
515 struct svcctl_OpenSCManagerW
{
517 const char *MachineName
;/* [unique,charset(UTF16)] */
518 const char *DatabaseName
;/* [unique,charset(UTF16)] */
519 uint32_t access_mask
;
523 struct policy_handle
*handle
;/* [ref] */
530 struct svcctl_OpenServiceW
{
532 struct policy_handle
*scmanager_handle
;/* [ref] */
533 const char *ServiceName
;/* [charset(UTF16)] */
534 uint32_t access_mask
;
538 struct policy_handle
*handle
;/* [ref] */
545 struct svcctl_QueryServiceConfigW
{
547 struct policy_handle
*handle
;/* [ref] */
548 uint32_t offered
;/* [range(0,8192)] */
552 struct QUERY_SERVICE_CONFIG
*query
;/* [ref] */
553 uint32_t *needed
;/* [ref,range(0,8192)] */
560 struct svcctl_QueryServiceLockStatusW
{
562 struct policy_handle
*handle
;/* [ref] */
567 struct SERVICE_LOCK_STATUS
*lock_status
;/* [ref] */
568 uint32_t *needed
;/* [ref] */
575 struct svcctl_StartServiceW
{
577 struct policy_handle
*handle
;/* [ref] */
579 const char *Arguments
;/* [unique,charset(UTF16)] */
589 struct svcctl_GetServiceDisplayNameW
{
591 struct policy_handle
*handle
;/* [ref] */
592 const char *service_name
;/* [unique,charset(UTF16)] */
593 uint32_t *display_name_length
;/* [unique] */
597 const char **display_name
;/* [ref,charset(UTF16)] */
598 uint32_t *display_name_length
;/* [unique] */
605 struct svcctl_GetServiceKeyNameW
{
607 struct policy_handle
*handle
;/* [ref] */
608 const char *service_name
;/* [unique,charset(UTF16)] */
609 uint32_t *display_name_length
;/* [unique] */
613 const char **key_name
;/* [ref,charset(UTF16)] */
614 uint32_t *display_name_length
;/* [unique] */
621 struct svcctl_SCSetServiceBitsA
{
623 struct policy_handle
*handle
;/* [ref] */
636 struct svcctl_ChangeServiceConfigA
{
638 struct policy_handle
*handle
;/* [ref] */
640 enum svcctl_StartType start_type
;
641 enum svcctl_ErrorControl error_control
;
642 const char *binary_path
;/* [unique,charset(UTF16)] */
643 const char *load_order_group
;/* [unique,charset(UTF16)] */
644 const char *dependencies
;/* [unique,charset(UTF16)] */
645 const char *service_start_name
;/* [unique,charset(UTF16)] */
646 const char *password
;/* [unique,charset(UTF16)] */
647 const char *display_name
;/* [unique,charset(UTF16)] */
651 uint32_t *tag_id
;/* [ref] */
658 struct svcctl_CreateServiceA
{
660 struct policy_handle
*handle
;/* [ref] */
661 const char *ServiceName
;/* [unique,charset(UTF16)] */
662 const char *DisplayName
;/* [unique,charset(UTF16)] */
663 uint32_t desired_access
;
665 enum svcctl_StartType start_type
;
666 enum svcctl_ErrorControl error_control
;
667 const char *binary_path
;/* [unique,charset(UTF16)] */
668 const char *LoadOrderGroupKey
;/* [unique,charset(UTF16)] */
669 const char *dependencies
;/* [unique,charset(UTF16)] */
670 const char *service_start_name
;/* [unique,charset(UTF16)] */
671 const char *password
;/* [unique,charset(UTF16)] */
675 uint32_t *TagId
;/* [unique] */
682 struct svcctl_EnumDependentServicesA
{
684 struct policy_handle
*service
;/* [ref] */
690 struct ENUM_SERVICE_STATUSA
*service_status
;/* [unique] */
691 uint32_t *needed
;/* [ref] */
692 uint32_t *services_returned
;/* [ref] */
699 struct svcctl_EnumServicesStatusA
{
701 struct policy_handle
*handle
;/* [ref] */
703 enum svcctl_ServiceState state
;
705 uint32_t *resume_handle
;/* [unique] */
709 uint8_t *service
;/* [size_is(offered)] */
710 uint32_t *needed
;/* [ref] */
711 uint32_t *services_returned
;/* [ref] */
712 uint32_t *resume_handle
;/* [unique] */
719 struct svcctl_OpenSCManagerA
{
721 const char *MachineName
;/* [unique,charset(UTF16)] */
722 const char *DatabaseName
;/* [unique,charset(UTF16)] */
723 uint32_t access_mask
;
727 struct policy_handle
*handle
;/* [ref] */
734 struct svcctl_OpenServiceA
{
736 struct policy_handle
*scmanager_handle
;/* [ref] */
737 const char *ServiceName
;/* [unique,charset(UTF16)] */
738 uint32_t access_mask
;
748 struct svcctl_QueryServiceConfigA
{
750 struct policy_handle
*handle
;/* [ref] */
756 uint32_t *needed
;/* [ref] */
763 struct svcctl_QueryServiceLockStatusA
{
765 struct policy_handle
*handle
;/* [ref] */
770 struct SERVICE_LOCK_STATUS
*lock_status
;/* [ref] */
771 uint32_t *needed
;/* [ref] */
778 struct svcctl_StartServiceA
{
780 struct policy_handle
*handle
;/* [ref] */
782 const char *Arguments
;/* [unique,charset(UTF16)] */
792 struct svcctl_GetServiceDisplayNameA
{
794 struct policy_handle
*handle
;/* [ref] */
795 const char *service_name
;/* [unique,charset(UTF16)] */
796 uint32_t *display_name_length
;/* [unique] */
800 const char **display_name
;/* [ref,charset(UTF16)] */
801 uint32_t *display_name_length
;/* [unique] */
808 struct svcctl_GetServiceKeyNameA
{
810 struct policy_handle
*handle
;/* [ref] */
811 const char *service_name
;/* [unique,charset(UTF16)] */
812 uint32_t *display_name_length
;/* [unique] */
816 const char **key_name
;/* [ref,charset(UTF16)] */
817 uint32_t *display_name_length
;/* [unique] */
824 struct svcctl_GetCurrentGroupeStateW
{
832 struct svcctl_EnumServiceGroupW
{
840 struct svcctl_ChangeServiceConfig2A
{
842 struct policy_handle
*handle
;/* [ref] */
844 uint8_t *info
;/* [unique] */
854 struct svcctl_ChangeServiceConfig2W
{
856 struct policy_handle
*handle
;/* [ref] */
858 uint8_t *info
;/* [unique] */
868 struct svcctl_QueryServiceConfig2A
{
870 struct policy_handle
*handle
;/* [ref] */
871 enum svcctl_ConfigLevel info_level
;
877 uint32_t *needed
;/* [ref] */
884 struct svcctl_QueryServiceConfig2W
{
886 struct policy_handle
*handle
;/* [ref] */
887 enum svcctl_ConfigLevel info_level
;
888 uint32_t offered
;/* [range(0,8192)] */
892 uint8_t *buffer
;/* [ref,size_is(offered)] */
893 uint32_t *needed
;/* [ref,range(0,8192)] */
900 struct svcctl_QueryServiceStatusEx
{
902 struct policy_handle
*handle
;/* [ref] */
903 enum svcctl_StatusLevel info_level
;
904 uint32_t offered
;/* [range(0,8192)] */
908 uint8_t *buffer
;/* [ref,size_is(offered)] */
909 uint32_t *needed
;/* [ref,range(0,8192)] */
916 struct EnumServicesStatusExA
{
918 struct policy_handle
*scmanager
;/* [ref] */
921 enum svcctl_ServiceState state
;
923 uint32_t *resume_handle
;/* [unique] */
928 uint32_t *needed
;/* [ref] */
929 uint32_t *service_returned
;/* [ref] */
930 const char **group_name
;/* [ref,charset(UTF16)] */
931 uint32_t *resume_handle
;/* [unique] */
938 struct EnumServicesStatusExW
{
940 struct policy_handle
*scmanager
;/* [ref] */
943 enum svcctl_ServiceState state
;
944 uint32_t offered
;/* [range(0,0x40000)] */
945 const char *group_name
;/* [unique,charset(UTF16)] */
946 uint32_t *resume_handle
;/* [unique,range(0,0x40000)] */
950 uint8_t *services
;/* [ref,size_is(offered)] */
951 uint32_t *needed
;/* [ref,range(0,0x40000)] */
952 uint32_t *service_returned
;/* [ref,range(0,0x40000)] */
953 uint32_t *resume_handle
;/* [unique,range(0,0x40000)] */
960 struct svcctl_SCSendTSMessage
{
967 #endif /* _HEADER_svcctl */