wine  6.0.1
About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.
  Fossies Dox: wine-6.0.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

winsvc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) the Wine project
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __WINE_WINSVC_H
20 #define __WINE_WINSVC_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* defined(__cplusplus) */
25 
26 #ifdef _ADVAPI32_
27 #define WINADVAPI
28 #else
29 #define WINADVAPI DECLSPEC_HIDDEN
30 #endif
31 
32 /* Service database names */
33 #define SERVICES_ACTIVE_DATABASEA "ServicesActive"
34 #define SERVICES_FAILED_DATABASEA "ServicesFailed"
35 
36 #if defined(_MSC_VER) || defined(__MINGW32__)
37 # define SERVICES_ACTIVE_DATABASEW L"ServicesActive"
38 # define SERVICES_FAILED_DATABASEW L"ServicesFailed"
39 #else
40 static const WCHAR SERVICES_ACTIVE_DATABASEW[] = { 'S','e','r','v','i','c','e','s','A','c','t','i','v','e',0 };
41 static const WCHAR SERVICES_FAILED_DATABASEW[] = { 'S','e','r','v','i','c','e','s','F','a','i','l','e','d',0 };
42 #endif
43 
44 #define SERVICES_ACTIVE_DATABASE WINELIB_NAME_AW( SERVICES_ACTIVE_DATABASE )
45 #define SERVICES_FAILED_DATABASE WINELIB_NAME_AW( SERVICES_FAILED_DATABASE )
46 
47 /* Service State requests */
48 #define SERVICE_ACTIVE 0x00000001
49 #define SERVICE_INACTIVE 0x00000002
50 #define SERVICE_STATE_ALL (SERVICE_ACTIVE | SERVICE_INACTIVE)
51 
52 /* Controls */
53 #define SERVICE_CONTROL_STOP 0x00000001
54 #define SERVICE_CONTROL_PAUSE 0x00000002
55 #define SERVICE_CONTROL_CONTINUE 0x00000003
56 #define SERVICE_CONTROL_INTERROGATE 0x00000004
57 #define SERVICE_CONTROL_SHUTDOWN 0x00000005
58 #define SERVICE_CONTROL_PARAMCHANGE 0x00000006
59 #define SERVICE_CONTROL_NETBINDADD 0x00000007
60 #define SERVICE_CONTROL_NETBINDREMOVE 0x00000008
61 #define SERVICE_CONTROL_NETBINDENABLE 0x00000009
62 #define SERVICE_CONTROL_NETBINDDISABLE 0x0000000A
63 #define SERVICE_CONTROL_DEVICEEVENT 0x0000000B
64 #define SERVICE_CONTROL_HARDWAREPROFILECHANGE 0x0000000C
65 #define SERVICE_CONTROL_POWEREVENT 0x0000000D
66 #define SERVICE_CONTROL_SESSIONCHANGE 0x0000000E
67 #define SERVICE_CONTROL_PRESHUTDOWN 0x0000000F
68 
69 /* Service State */
70 #define SERVICE_STOPPED 0x00000001
71 #define SERVICE_START_PENDING 0x00000002
72 #define SERVICE_STOP_PENDING 0x00000003
73 #define SERVICE_RUNNING 0x00000004
74 #define SERVICE_CONTINUE_PENDING 0x00000005
75 #define SERVICE_PAUSE_PENDING 0x00000006
76 #define SERVICE_PAUSED 0x00000007
77 
78 /* Controls Accepted */
79 #define SERVICE_ACCEPT_STOP 0x00000001
80 #define SERVICE_ACCEPT_PAUSE_CONTINUE 0x00000002
81 #define SERVICE_ACCEPT_SHUTDOWN 0x00000004
82 #define SERVICE_ACCEPT_PARAMCHANGE 0x00000008
83 #define SERVICE_ACCEPT_NETBINDCHANGE 0x00000010
84 #define SERVICE_ACCEPT_HARDWAREPROFILECHANGE 0x00000020
85 #define SERVICE_ACCEPT_POWEREVENT 0x00000040
86 #define SERVICE_ACCEPT_SESSIONCHANGE 0x00000080
87 #define SERVICE_ACCEPT_PRESHUTDOWN 0x00000100
88 #define SERVICE_ACCEPT_TIMECHANGE 0x00000200
89 #define SERVICE_ACCEPT_TRIGGEREVENT 0x00000400
90 
91 /* Service Control Manager Object access types */
92 #define SC_MANAGER_CONNECT 0x0001
93 #define SC_MANAGER_CREATE_SERVICE 0x0002
94 #define SC_MANAGER_ENUMERATE_SERVICE 0x0004
95 #define SC_MANAGER_LOCK 0x0008
96 #define SC_MANAGER_QUERY_LOCK_STATUS 0x0010
97 #define SC_MANAGER_MODIFY_BOOT_CONFIG 0x0020
98 #define SC_MANAGER_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED | \
99  SC_MANAGER_CONNECT | \
100  SC_MANAGER_CREATE_SERVICE | \
101  SC_MANAGER_ENUMERATE_SERVICE | \
102  SC_MANAGER_LOCK | \
103  SC_MANAGER_QUERY_LOCK_STATUS | \
104  SC_MANAGER_MODIFY_BOOT_CONFIG )
105 
106 #define SERVICE_QUERY_CONFIG 0x0001
107 #define SERVICE_CHANGE_CONFIG 0x0002
108 #define SERVICE_QUERY_STATUS 0x0004
109 #define SERVICE_ENUMERATE_DEPENDENTS 0x0008
110 #define SERVICE_START 0x0010
111 #define SERVICE_STOP 0x0020
112 #define SERVICE_PAUSE_CONTINUE 0x0040
113 #define SERVICE_INTERROGATE 0x0080
114 #define SERVICE_USER_DEFINED_CONTROL 0x0100
115 
116 #define SERVICE_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED | \
117  SERVICE_QUERY_CONFIG | \
118  SERVICE_CHANGE_CONFIG | \
119  SERVICE_QUERY_STATUS | \
120  SERVICE_ENUMERATE_DEPENDENTS | \
121  SERVICE_START | \
122  SERVICE_STOP | \
123  SERVICE_PAUSE_CONTINUE | \
124  SERVICE_INTERROGATE | \
125  SERVICE_USER_DEFINED_CONTROL )
126 
127 #define SERVICE_NO_CHANGE 0xffffffff
128 
129 #define SERVICE_RUNS_IN_SYSTEM_PROCESS 0x00000001
130 
131 /* Handle types */
132 
133 DECLARE_HANDLE(SC_HANDLE);
134 typedef SC_HANDLE *LPSC_HANDLE;
135 DECLARE_HANDLE(SERVICE_STATUS_HANDLE);
136 typedef LPVOID SC_LOCK;
137 
138 /* Service status structure */
139 
140 typedef struct _SERVICE_STATUS {
149 
150 /* Service status process structure */
151 
153 {
164 
165 #define SERVICE_NOTIFY_STATUS_CHANGE 2
166 
167 #define SERVICE_NOTIFY_STOPPED 0x1
168 #define SERVICE_NOTIFY_START_PENDING 0x2
169 #define SERVICE_NOTIFY_STOP_PENDING 0x4
170 #define SERVICE_NOTIFY_RUNNING 0x8
171 #define SERVICE_NOTIFY_CONTINUE_PENDING 0x10
172 #define SERVICE_NOTIFY_PAUSE_PENDING 0x20
173 #define SERVICE_NOTIFY_PAUSED 0x40
174 #define SERVICE_NOTIFY_CREATED 0x80
175 #define SERVICE_NOTIFY_DELETED 0x100
176 #define SERVICE_NOTIFY_DELETE_PENDING 0x200
177 
179 
180 typedef struct _SERVICE_NOTIFY_2A {
183  void *pContext;
189 
190 typedef struct _SERVICE_NOTIFY_2W {
193  void *pContext;
199 
201 
202 typedef enum _SC_STATUS_TYPE {
205 
206 /* Service main function prototype */
207 
210 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
211 
212 /* Service start table */
213 
218 
219 typedef struct _SERVICE_TABLE_ENTRYW {
223 
224 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
225 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
226 
227 /* Service status enumeration structure */
228 
234 
235 typedef struct _ENUM_SERVICE_STATUSW {
240 
241 DECL_WINELIB_TYPE_AW(ENUM_SERVICE_STATUS)
242 DECL_WINELIB_TYPE_AW(LPENUM_SERVICE_STATUS)
243 
249 
255 
256 DECL_WINELIB_TYPE_AW(ENUM_SERVICE_STATUS_PROCESS)
257 DECL_WINELIB_TYPE_AW(LPENUM_SERVICE_STATUS_PROCESS)
258 
262 
263 typedef struct _QUERY_SERVICE_CONFIGA {
274 
275 typedef struct _QUERY_SERVICE_CONFIGW {
286 
287 /* defines and structures for ChangeServiceConfig2 */
288 #define SERVICE_CONFIG_DESCRIPTION 1
289 #define SERVICE_CONFIG_FAILURE_ACTIONS 2
290 #define SERVICE_CONFIG_DELAYED_AUTO_START_INFO 3
291 #define SERVICE_CONFIG_FAILURE_ACTIONS_FLAG 4
292 #define SERVICE_CONFIG_SERVICE_SID_INFO 5
293 #define SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO 6
294 #define SERVICE_CONFIG_PRESHUTDOWN_INFO 7
295 
296 
297 typedef struct _SERVICE_DESCRIPTIONA {
300 
301 typedef struct _SERVICE_DESCRIPTIONW {
304 
305 DECL_WINELIB_TYPE_AW(SERVICE_DESCRIPTION)
306 DECL_WINELIB_TYPE_AW(LPSERVICE_DESCRIPTION)
307 
314 
315 typedef struct _SC_ACTION {
319 
327 
335 
336 DECL_WINELIB_TYPE_AW(SERVICE_FAILURE_ACTIONS)
337 DECL_WINELIB_TYPE_AW(LPSERVICE_FAILURE_ACTIONS)
338 
342 
346 
347 typedef struct _SERVICE_SID_INFO {
350 
354 
358 
359 DECL_WINELIB_TYPE_AW(SERVICE_REQUIRED_PRIVILEGES_INFO)
360 DECL_WINELIB_TYPE_AW(LPSERVICE_REQUIRED_PRIVILEGES_INFO)
361 
365 
367 {
372 
374 {
379 
380 DECL_WINELIB_TYPE_AW(QUERY_SERVICE_LOCK_STATUS)
381 
382 /* Service control handler function prototype */
383 
386 
387 /* API function prototypes */
388 
391 #define ChangeServiceConfig WINELIB_NAME_AW(ChangeServiceConfig)
394 #define ChangeServiceConfig2 WINELIB_NAME_AW(ChangeServiceConfig2)
399 #define CreateService WINELIB_NAME_AW(CreateService)
403 #define EnumDependentServices WINELIB_NAME_AW(EnumDependentServices)
406 #define EnumServicesStatus WINELIB_NAME_AW(EnumServicesStatus)
409 #define EnumServicesStatus WINELIB_NAME_AW(EnumServicesStatus)
412 #define GetServiceDisplayName WINELIB_NAME_AW(GetServiceDisplayName)
415 #define GetServiceKeyName WINELIB_NAME_AW(GetServiceKeyName)
420 #define OpenSCManager WINELIB_NAME_AW(OpenSCManager)
421 WINADVAPI SC_HANDLE WINAPI OpenServiceA(SC_HANDLE,LPCSTR,DWORD);
423 #define OpenService WINELIB_NAME_AW(OpenService)
428 #define QueryServiceConfig WINELIB_NAME_AW(QueryServiceConfig)
431 #define QueryServiceConfig2 WINELIB_NAME_AW(QueryServiceConfig2)
434 #define QueryServiceLockStatus WINELIB_NAME_AW(QueryServiceLockStatus)
438 #define RegisterServiceCtrlHandler WINELIB_NAME_AW(RegisterServiceCtrlHandler)
441 #define RegisterServiceCtrlHandlerEx WINELIB_NAME_AW(RegisterServiceCtrlHandlerEx)
446 #define StartService WINELIB_NAME_AW(StartService)
449 #define StartServiceCtrlDispatcher WINELIB_NAME_AW(StartServiceCtrlDispatcher)
451 
452 #ifdef __cplusplus
453 } /* extern "C" */
454 #endif /* defined(__cplusplus) */
455 
456 #endif /* !defined(__WINE_WINSVC_H) */
#define WINAPI
Definition: bcrypt.h:23
long BOOL
Definition: dxgitype.idl:24
void(CDECL *mono_callspec_set_assembly)(MonoAssembly *assembly) DECLSPEC_HIDDEN
SERVICE_STATUS ServiceStatus
Definition: winsvc.h:232
SERVICE_STATUS ServiceStatus
Definition: winsvc.h:238
LPWSTR lpDisplayName
Definition: winsvc.h:237
LPWSTR lpServiceName
Definition: winsvc.h:236
SERVICE_STATUS_PROCESS ServiceStatusProcess
Definition: winsvc.h:247
SERVICE_STATUS_PROCESS ServiceStatusProcess
Definition: winsvc.h:253
LPSTR lpServiceStartName
Definition: winsvc.h:271
LPWSTR lpServiceStartName
Definition: winsvc.h:283
LPWSTR lpBinaryPathName
Definition: winsvc.h:279
LPWSTR lpLoadOrderGroup
Definition: winsvc.h:280
DWORD Delay
Definition: winsvc.h:317
SC_ACTION_TYPE Type
Definition: winsvc.h:316
LPWSTR lpDescription
Definition: winsvc.h:302
SC_ACTION * lpsaActions
Definition: winsvc.h:325
SC_ACTION * lpsaActions
Definition: winsvc.h:333
SERVICE_STATUS_PROCESS ServiceStatus
Definition: winsvc.h:185
DWORD dwNotificationStatus
Definition: winsvc.h:184
char * pszServiceNames
Definition: winsvc.h:187
DWORD dwNotificationTriggered
Definition: winsvc.h:186
PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback
Definition: winsvc.h:182
void * pContext
Definition: winsvc.h:183
DWORD dwNotificationStatus
Definition: winsvc.h:194
void * pContext
Definition: winsvc.h:193
DWORD dwNotificationTriggered
Definition: winsvc.h:196
SERVICE_STATUS_PROCESS ServiceStatus
Definition: winsvc.h:195
PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback
Definition: winsvc.h:192
WCHAR * pszServiceNames
Definition: winsvc.h:197
DWORD dwServiceSidType
Definition: winsvc.h:348
DWORD dwServiceSpecificExitCode
Definition: winsvc.h:158
DWORD dwServiceType
Definition: winsvc.h:141
DWORD dwWin32ExitCode
Definition: winsvc.h:144
DWORD dwControlsAccepted
Definition: winsvc.h:143
DWORD dwWaitHint
Definition: winsvc.h:147
DWORD dwCurrentState
Definition: winsvc.h:142
DWORD dwCheckPoint
Definition: winsvc.h:146
DWORD dwServiceSpecificExitCode
Definition: winsvc.h:145
LPSERVICE_MAIN_FUNCTIONA lpServiceProc
Definition: winsvc.h:216
LPWSTR lpServiceName
Definition: winsvc.h:220
LPSERVICE_MAIN_FUNCTIONW lpServiceProc
Definition: winsvc.h:221
typedef VOID(WINAPI *PKDEFERRED_ROUTINE)(struct _KDPC *
DECL_WINELIB_TYPE_AW(FM_UNDELETE_PROC)
unsigned char * LPBYTE
Definition: windef.h:250
unsigned int * LPDWORD
Definition: windef.h:261
unsigned int DWORD
Definition: windef.h:261
#define CALLBACK
Definition: windef.h:194
const CHAR * LPCSTR
Definition: winnt.h:502
const WCHAR * LPCWSTR
Definition: winnt.h:513
CHAR * LPSTR
Definition: winnt.h:501
unsigned short WCHAR
Definition: winnt.h:468
PVOID PSECURITY_DESCRIPTOR
Definition: winnt.h:4258
WCHAR * LPWSTR
Definition: winnt.h:512
DWORD SECURITY_INFORMATION
Definition: winnt.h:4577
struct _SERVICE_REQUIRED_PRIVILEGES_INFOW * LPSERVICE_REQUIRED_PRIVILEGES_INFOW
struct _QUERY_SERVICE_LOCK_STATUSW QUERY_SERVICE_LOCK_STATUSW
LPVOID SC_LOCK
Definition: winsvc.h:136
struct _SERVICE_DESCRIPTIONA SERVICE_DESCRIPTIONA
DWORD WINAPI NotifyServiceStatusChangeW(SC_HANDLE, DWORD, SERVICE_NOTIFYW *)
Definition: service.c:1351
struct _ENUM_SERVICE_STATUS_PROCESSA ENUM_SERVICE_STATUS_PROCESSA
#define WINADVAPI
Definition: winsvc.h:29
DECLARE_HANDLE(SC_HANDLE)
struct _SERVICE_REQUIRED_PRIVILEGES_INFOA * LPSERVICE_REQUIRED_PRIVILEGES_INFOA
struct _SERVICE_FAILURE_ACTIONSW SERVICE_FAILURE_ACTIONSW
struct _ENUM_SERVICE_STATUSA * LPENUM_SERVICE_STATUSA
DECLSPEC_HIDDEN BOOL WINAPI StartServiceW(SC_HANDLE, DWORD, LPCWSTR *)
struct _QUERY_SERVICE_LOCK_STATUSA QUERY_SERVICE_LOCK_STATUSA
DECLSPEC_HIDDEN BOOL WINAPI EnumServicesStatusA(SC_HANDLE, DWORD, DWORD, LPENUM_SERVICE_STATUSA, DWORD, LPDWORD, LPDWORD, LPDWORD)
Definition: service.c:57
struct _ENUM_SERVICE_STATUSW * LPENUM_SERVICE_STATUSW
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceConfig2W(SC_HANDLE, DWORD, LPBYTE, DWORD, LPDWORD)
Definition: service.c:821
struct _SERVICE_REQUIRED_PRIVILEGES_INFOA SERVICE_REQUIRED_PRIVILEGES_INFOA
struct _SERVICE_STATUS * LPSERVICE_STATUS
_SC_STATUS_TYPE
Definition: winsvc.h:202
@ SC_STATUS_PROCESS_INFO
Definition: winsvc.h:203
struct _SERVICE_PRESHUTDOWN_INFO SERVICE_PRESHUTDOWN_INFO
DECLSPEC_HIDDEN SC_HANDLE WINAPI OpenServiceA(SC_HANDLE, LPCSTR, DWORD)
DECLSPEC_HIDDEN BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE, LPSERVICE_STATUS)
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceConfigW(SC_HANDLE, LPQUERY_SERVICE_CONFIGW, DWORD, LPDWORD)
DECLSPEC_HIDDEN BOOL WINAPI UnlockServiceDatabase(SC_LOCK)
Definition: service.c:46
VOID(CALLBACK * LPSERVICE_MAIN_FUNCTIONA)(DWORD, LPSTR *)
Definition: winsvc.h:208
struct _SERVICE_DESCRIPTIONW SERVICE_DESCRIPTIONW
_SC_ACTION_TYPE
Definition: winsvc.h:308
@ SC_ACTION_RUN_COMMAND
Definition: winsvc.h:312
@ SC_ACTION_REBOOT
Definition: winsvc.h:311
@ SC_ACTION_RESTART
Definition: winsvc.h:310
@ SC_ACTION_NONE
Definition: winsvc.h:309
struct _SERVICE_SID_INFO * LPSERVICE_SID_INFO
DECLSPEC_HIDDEN BOOL WINAPI ChangeServiceConfigA(SC_HANDLE, DWORD, DWORD, DWORD, LPCSTR, LPCSTR, LPDWORD, LPCSTR, LPCSTR, LPCSTR, LPCSTR)
DECLSPEC_HIDDEN BOOL WINAPI GetServiceKeyNameA(SC_HANDLE, LPCSTR, LPSTR, LPDWORD)
Definition: service.c:286
struct _SC_ACTION SC_ACTION
DECLSPEC_HIDDEN SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExA(LPCSTR, LPHANDLER_FUNCTION_EX, LPVOID)
DECLSPEC_HIDDEN BOOL WINAPI EnumDependentServicesW(SC_HANDLE, DWORD, LPENUM_SERVICE_STATUSW, DWORD, LPDWORD, LPDWORD)
Definition: service.c:1237
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceConfigA(SC_HANDLE, LPQUERY_SERVICE_CONFIGA, DWORD, LPDWORD)
static const WCHAR SERVICES_FAILED_DATABASEW[]
Definition: winsvc.h:41
DECLSPEC_HIDDEN BOOL WINAPI GetServiceDisplayNameW(SC_HANDLE, LPCWSTR, LPWSTR, LPDWORD)
struct _SERVICE_REQUIRED_PRIVILEGES_INFOW SERVICE_REQUIRED_PRIVILEGES_INFOW
struct _QUERY_SERVICE_CONFIGW QUERY_SERVICE_CONFIGW
struct _SERVICE_DELAYED_AUTO_START_INFO SERVICE_DELAYED_AUTO_START_INFO
DECLSPEC_HIDDEN BOOL WINAPI StartServiceA(SC_HANDLE, DWORD, LPCSTR *)
DECLSPEC_HIDDEN SC_HANDLE WINAPI OpenServiceW(SC_HANDLE, LPCWSTR, DWORD)
DECLSPEC_HIDDEN BOOL WINAPI GetServiceKeyNameW(SC_HANDLE, LPCWSTR, LPWSTR, LPDWORD)
DECLSPEC_HIDDEN BOOL WINAPI EnumServicesStatusExA(SC_HANDLE, SC_ENUM_TYPE, DWORD, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD, LPDWORD, LPCSTR)
Definition: service.c:216
VOID(WINAPI * LPHANDLER_FUNCTION)(DWORD)
Definition: winsvc.h:384
DECLSPEC_HIDDEN BOOL WINAPI EnumServicesStatusW(SC_HANDLE, DWORD, DWORD, LPENUM_SERVICE_STATUSW, DWORD, LPDWORD, LPDWORD, LPDWORD)
struct _SERVICE_FAILURE_ACTIONS_FLAG SERVICE_FAILURE_ACTIONS_FLAG
DECLSPEC_HIDDEN BOOL WINAPI StartServiceCtrlDispatcherA(const SERVICE_TABLE_ENTRYA *)
Definition: service.c:1901
struct _ENUM_SERVICE_STATUS_PROCESSA * LPENUM_SERVICE_STATUS_PROCESSA
struct _SERVICE_DESCRIPTIONW * LPSERVICE_DESCRIPTIONW
struct _QUERY_SERVICE_CONFIGA * LPQUERY_SERVICE_CONFIGA
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceStatusEx(SC_HANDLE, SC_STATUS_TYPE, LPBYTE, DWORD, LPDWORD)
Definition: service.c:1106
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, DWORD, LPDWORD)
Definition: service.c:1251
DECLSPEC_HIDDEN SC_HANDLE WINAPI CreateServiceA(SC_HANDLE, LPCSTR, LPCSTR, DWORD, DWORD, DWORD, DWORD, LPCSTR, LPCSTR, LPDWORD, LPCSTR, LPCSTR, LPCSTR)
struct _SERVICE_NOTIFY_2W SERVICE_NOTIFYW
struct _ENUM_SERVICE_STATUSW ENUM_SERVICE_STATUSW
struct _ENUM_SERVICE_STATUS_PROCESSW ENUM_SERVICE_STATUS_PROCESSW
struct _SERVICE_STATUS SERVICE_STATUS
struct _SERVICE_FAILURE_ACTIONSA * LPSERVICE_FAILURE_ACTIONSA
struct _SERVICE_TABLE_ENTRYA * LPSERVICE_TABLE_ENTRYA
DECLSPEC_HIDDEN SC_HANDLE WINAPI OpenSCManagerA(LPCSTR, LPCSTR, DWORD)
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceLockStatusW(SC_HANDLE, LPQUERY_SERVICE_LOCK_STATUSW, DWORD, LPDWORD)
Definition: service.c:344
DWORD(WINAPI * LPHANDLER_FUNCTION_EX)(DWORD, DWORD, LPVOID, LPVOID)
Definition: winsvc.h:385
DECLSPEC_HIDDEN SC_HANDLE WINAPI CreateServiceW(SC_HANDLE, LPCWSTR, LPCWSTR, DWORD, DWORD, DWORD, DWORD, LPCWSTR, LPCWSTR, LPDWORD, LPCWSTR, LPCWSTR, LPCWSTR)
SC_HANDLE * LPSC_HANDLE
Definition: winsvc.h:134
struct _SERVICE_SID_INFO SERVICE_SID_INFO
struct _SC_ACTION * LPSC_ACTION
DECLSPEC_HIDDEN SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR, LPHANDLER_FUNCTION_EX, LPVOID)
enum _SC_STATUS_TYPE SC_STATUS_TYPE
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceStatus(SC_HANDLE, LPSERVICE_STATUS)
DECLSPEC_HIDDEN SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR, LPCWSTR, DWORD)
struct _SERVICE_DESCRIPTIONA * LPSERVICE_DESCRIPTIONA
DECLSPEC_HIDDEN BOOL WINAPI CloseServiceHandle(SC_HANDLE)
Definition: service.c:452
struct _ENUM_SERVICE_STATUS_PROCESSW * LPENUM_SERVICE_STATUS_PROCESSW
void(CALLBACK * PFN_SC_NOTIFY_CALLBACK)(void *)
Definition: winsvc.h:178
DECLSPEC_HIDDEN BOOL WINAPI GetServiceDisplayNameA(SC_HANDLE, LPCSTR, LPSTR, LPDWORD)
Definition: service.c:356
struct _SERVICE_DELAYED_AUTO_START_INFO * LPSERVICE_DELAYED_AUTO_START_INFO
DECLSPEC_HIDDEN BOOL WINAPI NotifyBootConfigStatus(BOOL)
Definition: security.c:1054
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceLockStatusA(SC_HANDLE, LPQUERY_SERVICE_LOCK_STATUSA, DWORD, LPDWORD)
Definition: service.c:332
DECLSPEC_HIDDEN BOOL WINAPI ChangeServiceConfigW(SC_HANDLE, DWORD, DWORD, DWORD, LPCWSTR, LPCWSTR, LPDWORD, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR)
struct _SERVICE_PRESHUTDOWN_INFO * LPSERVICE_PRESHUTDOWN_INFO
DECLSPEC_HIDDEN BOOL WINAPI QueryServiceConfig2A(SC_HANDLE, DWORD, LPBYTE, DWORD, LPDWORD)
Definition: service.c:773
DECLSPEC_HIDDEN SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerA(LPCSTR, LPHANDLER_FUNCTION)
struct _QUERY_SERVICE_LOCK_STATUSA * LPQUERY_SERVICE_LOCK_STATUSA
enum _SC_ACTION_TYPE SC_ACTION_TYPE
DECLSPEC_HIDDEN BOOL WINAPI SetServiceObjectSecurity(SC_HANDLE, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR)
Definition: service.c:1277
DECLSPEC_HIDDEN BOOL WINAPI EnumDependentServicesA(SC_HANDLE, DWORD, LPENUM_SERVICE_STATUSA, DWORD, LPDWORD, LPDWORD)
Definition: service.c:416
DECLSPEC_HIDDEN SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerW(LPCWSTR, LPHANDLER_FUNCTION)
struct _QUERY_SERVICE_CONFIGW * LPQUERY_SERVICE_CONFIGW
struct _SERVICE_STATUS_PROCESS * LPSERVICE_STATUS_PROCESS
DECLSPEC_HIDDEN BOOL WINAPI ControlService(SC_HANDLE, DWORD, LPSERVICE_STATUS)
struct _SERVICE_TABLE_ENTRYW SERVICE_TABLE_ENTRYW
struct _SERVICE_NOTIFY_2W SERVICE_NOTIFY_2W
DECLSPEC_HIDDEN BOOL WINAPI DeleteService(SC_HANDLE)
Definition: service.c:430
DECLSPEC_HIDDEN BOOL WINAPI ChangeServiceConfig2A(SC_HANDLE, DWORD, LPVOID)
struct _SERVICE_FAILURE_ACTIONSA SERVICE_FAILURE_ACTIONSA
enum _SC_ENUM_TYPE SC_ENUM_TYPE
struct _SERVICE_FAILURE_ACTIONS_FLAG * LPSERVICE_FAILURE_ACTIONS_FLAG
struct _QUERY_SERVICE_LOCK_STATUSW * LPQUERY_SERVICE_LOCK_STATUSW
struct _SERVICE_NOTIFY_2A SERVICE_NOTIFYA
DECLSPEC_HIDDEN BOOL WINAPI EnumServicesStatusExW(SC_HANDLE, SC_ENUM_TYPE, DWORD, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD, LPDWORD, LPCWSTR)
_SC_ENUM_TYPE
Definition: winsvc.h:259
@ SC_ENUM_PROCESS_INFO
Definition: winsvc.h:260
DECLSPEC_HIDDEN SC_LOCK WINAPI LockServiceDatabase(SC_HANDLE)
Definition: service.c:36
struct _SERVICE_TABLE_ENTRYW * LPSERVICE_TABLE_ENTRYW
struct _SERVICE_FAILURE_ACTIONSW * LPSERVICE_FAILURE_ACTIONSW
struct _SERVICE_TABLE_ENTRYA SERVICE_TABLE_ENTRYA
struct _SERVICE_STATUS_PROCESS SERVICE_STATUS_PROCESS
struct _ENUM_SERVICE_STATUSA ENUM_SERVICE_STATUSA
DECLSPEC_HIDDEN BOOL WINAPI ChangeServiceConfig2W(SC_HANDLE, DWORD, LPVOID)
DECLSPEC_HIDDEN BOOL WINAPI StartServiceCtrlDispatcherW(const SERVICE_TABLE_ENTRYW *)
Definition: service.c:1939
VOID(CALLBACK * LPSERVICE_MAIN_FUNCTIONW)(DWORD, LPWSTR *)
Definition: winsvc.h:209
struct _QUERY_SERVICE_CONFIGA QUERY_SERVICE_CONFIGA
static const WCHAR SERVICES_ACTIVE_DATABASEW[]
Definition: winsvc.h:40
struct _SERVICE_NOTIFY_2A SERVICE_NOTIFY_2A