winealsa: Remove GetAudioSessionWrapper.
[wine.git] / include / winsvc.h
blob1580e3b86a478f196dbf6f2c5974d9f58b8f07f5
1 /*
2 * Copyright (C) the Wine project
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.
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.
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
19 #ifndef __WINE_WINSVC_H
20 #define __WINE_WINSVC_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* defined(__cplusplus) */
26 #ifndef WINADVAPI
27 #ifdef _ADVAPI32_
28 #define WINADVAPI
29 #else
30 #define WINADVAPI DECLSPEC_IMPORT
31 #endif
32 #endif
34 /* Service database names */
35 #define SERVICES_ACTIVE_DATABASEA "ServicesActive"
36 #define SERVICES_FAILED_DATABASEA "ServicesFailed"
38 #if defined(_MSC_VER) || defined(__MINGW32__)
39 # define SERVICES_ACTIVE_DATABASEW L"ServicesActive"
40 # define SERVICES_FAILED_DATABASEW L"ServicesFailed"
41 #else
42 static const WCHAR SERVICES_ACTIVE_DATABASEW[] = { 'S','e','r','v','i','c','e','s','A','c','t','i','v','e',0 };
43 static const WCHAR SERVICES_FAILED_DATABASEW[] = { 'S','e','r','v','i','c','e','s','F','a','i','l','e','d',0 };
44 #endif
46 #define SERVICES_ACTIVE_DATABASE WINELIB_NAME_AW( SERVICES_ACTIVE_DATABASE )
47 #define SERVICES_FAILED_DATABASE WINELIB_NAME_AW( SERVICES_FAILED_DATABASE )
49 /* Service State requests */
50 #define SERVICE_ACTIVE 0x00000001
51 #define SERVICE_INACTIVE 0x00000002
52 #define SERVICE_STATE_ALL (SERVICE_ACTIVE | SERVICE_INACTIVE)
54 /* Controls */
55 #define SERVICE_CONTROL_STOP 0x00000001
56 #define SERVICE_CONTROL_PAUSE 0x00000002
57 #define SERVICE_CONTROL_CONTINUE 0x00000003
58 #define SERVICE_CONTROL_INTERROGATE 0x00000004
59 #define SERVICE_CONTROL_SHUTDOWN 0x00000005
60 #define SERVICE_CONTROL_PARAMCHANGE 0x00000006
61 #define SERVICE_CONTROL_NETBINDADD 0x00000007
62 #define SERVICE_CONTROL_NETBINDREMOVE 0x00000008
63 #define SERVICE_CONTROL_NETBINDENABLE 0x00000009
64 #define SERVICE_CONTROL_NETBINDDISABLE 0x0000000A
65 #define SERVICE_CONTROL_DEVICEEVENT 0x0000000B
66 #define SERVICE_CONTROL_HARDWAREPROFILECHANGE 0x0000000C
67 #define SERVICE_CONTROL_POWEREVENT 0x0000000D
68 #define SERVICE_CONTROL_SESSIONCHANGE 0x0000000E
69 #define SERVICE_CONTROL_PRESHUTDOWN 0x0000000F
71 /* Service State */
72 #define SERVICE_STOPPED 0x00000001
73 #define SERVICE_START_PENDING 0x00000002
74 #define SERVICE_STOP_PENDING 0x00000003
75 #define SERVICE_RUNNING 0x00000004
76 #define SERVICE_CONTINUE_PENDING 0x00000005
77 #define SERVICE_PAUSE_PENDING 0x00000006
78 #define SERVICE_PAUSED 0x00000007
80 /* Controls Accepted */
81 #define SERVICE_ACCEPT_STOP 0x00000001
82 #define SERVICE_ACCEPT_PAUSE_CONTINUE 0x00000002
83 #define SERVICE_ACCEPT_SHUTDOWN 0x00000004
84 #define SERVICE_ACCEPT_PARAMCHANGE 0x00000008
85 #define SERVICE_ACCEPT_NETBINDCHANGE 0x00000010
86 #define SERVICE_ACCEPT_HARDWAREPROFILECHANGE 0x00000020
87 #define SERVICE_ACCEPT_POWEREVENT 0x00000040
88 #define SERVICE_ACCEPT_SESSIONCHANGE 0x00000080
89 #define SERVICE_ACCEPT_PRESHUTDOWN 0x00000100
90 #define SERVICE_ACCEPT_TIMECHANGE 0x00000200
91 #define SERVICE_ACCEPT_TRIGGEREVENT 0x00000400
93 /* Service Control Manager Object access types */
94 #define SC_MANAGER_CONNECT 0x0001
95 #define SC_MANAGER_CREATE_SERVICE 0x0002
96 #define SC_MANAGER_ENUMERATE_SERVICE 0x0004
97 #define SC_MANAGER_LOCK 0x0008
98 #define SC_MANAGER_QUERY_LOCK_STATUS 0x0010
99 #define SC_MANAGER_MODIFY_BOOT_CONFIG 0x0020
100 #define SC_MANAGER_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED | \
101 SC_MANAGER_CONNECT | \
102 SC_MANAGER_CREATE_SERVICE | \
103 SC_MANAGER_ENUMERATE_SERVICE | \
104 SC_MANAGER_LOCK | \
105 SC_MANAGER_QUERY_LOCK_STATUS | \
106 SC_MANAGER_MODIFY_BOOT_CONFIG )
108 #define SERVICE_QUERY_CONFIG 0x0001
109 #define SERVICE_CHANGE_CONFIG 0x0002
110 #define SERVICE_QUERY_STATUS 0x0004
111 #define SERVICE_ENUMERATE_DEPENDENTS 0x0008
112 #define SERVICE_START 0x0010
113 #define SERVICE_STOP 0x0020
114 #define SERVICE_PAUSE_CONTINUE 0x0040
115 #define SERVICE_INTERROGATE 0x0080
116 #define SERVICE_USER_DEFINED_CONTROL 0x0100
118 #define SERVICE_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED | \
119 SERVICE_QUERY_CONFIG | \
120 SERVICE_CHANGE_CONFIG | \
121 SERVICE_QUERY_STATUS | \
122 SERVICE_ENUMERATE_DEPENDENTS | \
123 SERVICE_START | \
124 SERVICE_STOP | \
125 SERVICE_PAUSE_CONTINUE | \
126 SERVICE_INTERROGATE | \
127 SERVICE_USER_DEFINED_CONTROL )
129 #define SERVICE_NO_CHANGE 0xffffffff
131 #define SERVICE_RUNS_IN_SYSTEM_PROCESS 0x00000001
133 /* Handle types */
135 DECLARE_HANDLE(SC_HANDLE);
136 typedef SC_HANDLE *LPSC_HANDLE;
137 DECLARE_HANDLE(SERVICE_STATUS_HANDLE);
138 typedef LPVOID SC_LOCK;
140 /* Service status structure */
142 typedef struct _SERVICE_STATUS {
143 DWORD dwServiceType;
144 DWORD dwCurrentState;
145 DWORD dwControlsAccepted;
146 DWORD dwWin32ExitCode;
147 DWORD dwServiceSpecificExitCode;
148 DWORD dwCheckPoint;
149 DWORD dwWaitHint;
150 } SERVICE_STATUS, *LPSERVICE_STATUS;
152 /* Service status process structure */
154 typedef struct _SERVICE_STATUS_PROCESS
156 DWORD dwServiceType;
157 DWORD dwCurrentState;
158 DWORD dwControlsAccepted;
159 DWORD dwWin32ExitCode;
160 DWORD dwServiceSpecificExitCode;
161 DWORD dwCheckPoint;
162 DWORD dwWaitHint;
163 DWORD dwProcessId;
164 DWORD dwServiceFlags;
165 } SERVICE_STATUS_PROCESS, *LPSERVICE_STATUS_PROCESS;
167 #define SERVICE_NOTIFY_STATUS_CHANGE 2
169 #define SERVICE_NOTIFY_STOPPED 0x1
170 #define SERVICE_NOTIFY_START_PENDING 0x2
171 #define SERVICE_NOTIFY_STOP_PENDING 0x4
172 #define SERVICE_NOTIFY_RUNNING 0x8
173 #define SERVICE_NOTIFY_CONTINUE_PENDING 0x10
174 #define SERVICE_NOTIFY_PAUSE_PENDING 0x20
175 #define SERVICE_NOTIFY_PAUSED 0x40
176 #define SERVICE_NOTIFY_CREATED 0x80
177 #define SERVICE_NOTIFY_DELETED 0x100
178 #define SERVICE_NOTIFY_DELETE_PENDING 0x200
180 typedef void (CALLBACK *PFN_SC_NOTIFY_CALLBACK)(void *);
182 typedef struct _SERVICE_NOTIFY_2A {
183 DWORD dwVersion;
184 PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback;
185 void *pContext;
186 DWORD dwNotificationStatus;
187 SERVICE_STATUS_PROCESS ServiceStatus;
188 DWORD dwNotificationTriggered;
189 char *pszServiceNames;
190 } SERVICE_NOTIFY_2A, SERVICE_NOTIFYA;
192 typedef struct _SERVICE_NOTIFY_2W {
193 DWORD dwVersion;
194 PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback;
195 void *pContext;
196 DWORD dwNotificationStatus;
197 SERVICE_STATUS_PROCESS ServiceStatus;
198 DWORD dwNotificationTriggered;
199 WCHAR *pszServiceNames;
200 } SERVICE_NOTIFY_2W, SERVICE_NOTIFYW;
202 typedef enum _SC_STATUS_TYPE {
203 SC_STATUS_PROCESS_INFO = 0
204 } SC_STATUS_TYPE;
206 /* Service main function prototype */
208 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR*);
209 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONW)(DWORD,LPWSTR*);
210 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
212 /* Service start table */
214 typedef struct _SERVICE_TABLE_ENTRYA {
215 LPSTR lpServiceName;
216 LPSERVICE_MAIN_FUNCTIONA lpServiceProc;
217 } SERVICE_TABLE_ENTRYA, *LPSERVICE_TABLE_ENTRYA;
219 typedef struct _SERVICE_TABLE_ENTRYW {
220 LPWSTR lpServiceName;
221 LPSERVICE_MAIN_FUNCTIONW lpServiceProc;
222 } SERVICE_TABLE_ENTRYW, *LPSERVICE_TABLE_ENTRYW;
224 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
225 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
227 /* Service status enumeration structure */
229 typedef struct _ENUM_SERVICE_STATUSA {
230 LPSTR lpServiceName;
231 LPSTR lpDisplayName;
232 SERVICE_STATUS ServiceStatus;
233 } ENUM_SERVICE_STATUSA, *LPENUM_SERVICE_STATUSA;
235 typedef struct _ENUM_SERVICE_STATUSW {
236 LPWSTR lpServiceName;
237 LPWSTR lpDisplayName;
238 SERVICE_STATUS ServiceStatus;
239 } ENUM_SERVICE_STATUSW, *LPENUM_SERVICE_STATUSW;
241 DECL_WINELIB_TYPE_AW(ENUM_SERVICE_STATUS)
242 DECL_WINELIB_TYPE_AW(LPENUM_SERVICE_STATUS)
244 typedef struct _ENUM_SERVICE_STATUS_PROCESSA {
245 LPSTR lpServiceName;
246 LPSTR lpDisplayName;
247 SERVICE_STATUS_PROCESS ServiceStatusProcess;
248 } ENUM_SERVICE_STATUS_PROCESSA, *LPENUM_SERVICE_STATUS_PROCESSA;
250 typedef struct _ENUM_SERVICE_STATUS_PROCESSW {
251 LPWSTR lpServiceName;
252 LPWSTR lpDisplayName;
253 SERVICE_STATUS_PROCESS ServiceStatusProcess;
254 } ENUM_SERVICE_STATUS_PROCESSW, *LPENUM_SERVICE_STATUS_PROCESSW;
256 DECL_WINELIB_TYPE_AW(ENUM_SERVICE_STATUS_PROCESS)
257 DECL_WINELIB_TYPE_AW(LPENUM_SERVICE_STATUS_PROCESS)
259 typedef enum _SC_ENUM_TYPE {
260 SC_ENUM_PROCESS_INFO = 0
261 } SC_ENUM_TYPE;
263 typedef struct _QUERY_SERVICE_CONFIGA {
264 DWORD dwServiceType;
265 DWORD dwStartType;
266 DWORD dwErrorControl;
267 LPSTR lpBinaryPathName;
268 LPSTR lpLoadOrderGroup;
269 DWORD dwTagId;
270 LPSTR lpDependencies;
271 LPSTR lpServiceStartName;
272 LPSTR lpDisplayName;
273 } QUERY_SERVICE_CONFIGA, *LPQUERY_SERVICE_CONFIGA;
275 typedef struct _QUERY_SERVICE_CONFIGW {
276 DWORD dwServiceType;
277 DWORD dwStartType;
278 DWORD dwErrorControl;
279 LPWSTR lpBinaryPathName;
280 LPWSTR lpLoadOrderGroup;
281 DWORD dwTagId;
282 LPWSTR lpDependencies;
283 LPWSTR lpServiceStartName;
284 LPWSTR lpDisplayName;
285 } QUERY_SERVICE_CONFIGW, *LPQUERY_SERVICE_CONFIGW;
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
297 typedef struct _SERVICE_DESCRIPTIONA {
298 LPSTR lpDescription;
299 } SERVICE_DESCRIPTIONA,*LPSERVICE_DESCRIPTIONA;
301 typedef struct _SERVICE_DESCRIPTIONW {
302 LPWSTR lpDescription;
303 } SERVICE_DESCRIPTIONW,*LPSERVICE_DESCRIPTIONW;
305 DECL_WINELIB_TYPE_AW(SERVICE_DESCRIPTION)
306 DECL_WINELIB_TYPE_AW(LPSERVICE_DESCRIPTION)
308 typedef enum _SC_ACTION_TYPE {
309 SC_ACTION_NONE = 0,
310 SC_ACTION_RESTART = 1,
311 SC_ACTION_REBOOT = 2,
312 SC_ACTION_RUN_COMMAND = 3
313 } SC_ACTION_TYPE;
315 typedef struct _SC_ACTION {
316 SC_ACTION_TYPE Type;
317 DWORD Delay;
318 } SC_ACTION,*LPSC_ACTION;
320 typedef struct _SERVICE_FAILURE_ACTIONSA {
321 DWORD dwResetPeriod;
322 LPSTR lpRebootMsg;
323 LPSTR lpCommand;
324 DWORD cActions;
325 SC_ACTION * lpsaActions;
326 } SERVICE_FAILURE_ACTIONSA,*LPSERVICE_FAILURE_ACTIONSA;
328 typedef struct _SERVICE_FAILURE_ACTIONSW {
329 DWORD dwResetPeriod;
330 LPWSTR lpRebootMsg;
331 LPWSTR lpCommand;
332 DWORD cActions;
333 SC_ACTION * lpsaActions;
334 } SERVICE_FAILURE_ACTIONSW,*LPSERVICE_FAILURE_ACTIONSW;
336 DECL_WINELIB_TYPE_AW(SERVICE_FAILURE_ACTIONS)
337 DECL_WINELIB_TYPE_AW(LPSERVICE_FAILURE_ACTIONS)
339 typedef struct _SERVICE_DELAYED_AUTO_START_INFO {
340 BOOL fDelayedAutostart;
341 } SERVICE_DELAYED_AUTO_START_INFO,*LPSERVICE_DELAYED_AUTO_START_INFO;
343 typedef struct _SERVICE_FAILURE_ACTIONS_FLAG {
344 BOOL fFailureActionsOnNonCrashFailures;
345 } SERVICE_FAILURE_ACTIONS_FLAG,*LPSERVICE_FAILURE_ACTIONS_FLAG;
347 typedef struct _SERVICE_SID_INFO {
348 DWORD dwServiceSidType;
349 } SERVICE_SID_INFO,*LPSERVICE_SID_INFO;
351 typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOA {
352 LPSTR pmszRequiredPrivileges;
353 } SERVICE_REQUIRED_PRIVILEGES_INFOA,*LPSERVICE_REQUIRED_PRIVILEGES_INFOA;
355 typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOW {
356 LPWSTR pmszRequiredPrivileges;
357 } SERVICE_REQUIRED_PRIVILEGES_INFOW,*LPSERVICE_REQUIRED_PRIVILEGES_INFOW;
359 DECL_WINELIB_TYPE_AW(SERVICE_REQUIRED_PRIVILEGES_INFO)
360 DECL_WINELIB_TYPE_AW(LPSERVICE_REQUIRED_PRIVILEGES_INFO)
362 typedef struct _SERVICE_PRESHUTDOWN_INFO {
363 DWORD dwPreshutdownTimeout;
364 } SERVICE_PRESHUTDOWN_INFO,*LPSERVICE_PRESHUTDOWN_INFO;
366 typedef struct _QUERY_SERVICE_LOCK_STATUSA
368 DWORD fIsLocked;
369 LPSTR lpLockOwner;
370 DWORD dwLockDuration;
371 } QUERY_SERVICE_LOCK_STATUSA, *LPQUERY_SERVICE_LOCK_STATUSA;
373 typedef struct _QUERY_SERVICE_LOCK_STATUSW
375 DWORD fIsLocked;
376 LPWSTR lpLockOwner;
377 DWORD dwLockDuration;
378 } QUERY_SERVICE_LOCK_STATUSW, *LPQUERY_SERVICE_LOCK_STATUSW;
380 DECL_WINELIB_TYPE_AW(QUERY_SERVICE_LOCK_STATUS)
382 /* Service control handler function prototype */
384 typedef VOID (WINAPI *LPHANDLER_FUNCTION)(DWORD);
385 typedef DWORD (WINAPI *LPHANDLER_FUNCTION_EX)(DWORD,DWORD,LPVOID,LPVOID);
387 /* API function prototypes */
389 WINADVAPI BOOL WINAPI ChangeServiceConfigA(SC_HANDLE,DWORD,DWORD,DWORD,LPCSTR,LPCSTR,LPDWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR);
390 WINADVAPI BOOL WINAPI ChangeServiceConfigW(SC_HANDLE,DWORD,DWORD,DWORD,LPCWSTR,LPCWSTR,LPDWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
391 #define ChangeServiceConfig WINELIB_NAME_AW(ChangeServiceConfig)
392 WINADVAPI BOOL WINAPI ChangeServiceConfig2A(SC_HANDLE,DWORD,LPVOID);
393 WINADVAPI BOOL WINAPI ChangeServiceConfig2W(SC_HANDLE,DWORD,LPVOID);
394 #define ChangeServiceConfig2 WINELIB_NAME_AW(ChangeServiceConfig2)
395 WINADVAPI BOOL WINAPI CloseServiceHandle(SC_HANDLE);
396 WINADVAPI BOOL WINAPI ControlService(SC_HANDLE,DWORD,LPSERVICE_STATUS);
397 WINADVAPI SC_HANDLE WINAPI CreateServiceA(SC_HANDLE,LPCSTR,LPCSTR,DWORD,DWORD,DWORD,DWORD,LPCSTR,LPCSTR,LPDWORD,LPCSTR,LPCSTR,LPCSTR);
398 WINADVAPI SC_HANDLE WINAPI CreateServiceW(SC_HANDLE,LPCWSTR,LPCWSTR,DWORD,DWORD,DWORD,DWORD,LPCWSTR,LPCWSTR,LPDWORD,LPCWSTR,LPCWSTR,LPCWSTR);
399 #define CreateService WINELIB_NAME_AW(CreateService)
400 WINADVAPI BOOL WINAPI DeleteService(SC_HANDLE);
401 WINADVAPI BOOL WINAPI EnumDependentServicesA(SC_HANDLE,DWORD,LPENUM_SERVICE_STATUSA,DWORD,LPDWORD,LPDWORD);
402 WINADVAPI BOOL WINAPI EnumDependentServicesW(SC_HANDLE,DWORD,LPENUM_SERVICE_STATUSW,DWORD,LPDWORD,LPDWORD);
403 #define EnumDependentServices WINELIB_NAME_AW(EnumDependentServices)
404 WINADVAPI BOOL WINAPI EnumServicesStatusA(SC_HANDLE,DWORD,DWORD,LPENUM_SERVICE_STATUSA,DWORD,LPDWORD,LPDWORD,LPDWORD);
405 WINADVAPI BOOL WINAPI EnumServicesStatusW(SC_HANDLE,DWORD,DWORD,LPENUM_SERVICE_STATUSW,DWORD,LPDWORD,LPDWORD,LPDWORD);
406 #define EnumServicesStatus WINELIB_NAME_AW(EnumServicesStatus)
407 WINADVAPI BOOL WINAPI EnumServicesStatusExA(SC_HANDLE,SC_ENUM_TYPE,DWORD,DWORD,LPBYTE,DWORD,LPDWORD,LPDWORD,LPDWORD,LPCSTR);
408 WINADVAPI BOOL WINAPI EnumServicesStatusExW(SC_HANDLE,SC_ENUM_TYPE,DWORD,DWORD,LPBYTE,DWORD,LPDWORD,LPDWORD,LPDWORD,LPCWSTR);
409 #define EnumServicesStatus WINELIB_NAME_AW(EnumServicesStatus)
410 WINADVAPI BOOL WINAPI GetServiceDisplayNameA(SC_HANDLE,LPCSTR,LPSTR,LPDWORD);
411 WINADVAPI BOOL WINAPI GetServiceDisplayNameW(SC_HANDLE,LPCWSTR,LPWSTR,LPDWORD);
412 #define GetServiceDisplayName WINELIB_NAME_AW(GetServiceDisplayName)
413 WINADVAPI BOOL WINAPI GetServiceKeyNameA(SC_HANDLE,LPCSTR,LPSTR,LPDWORD);
414 WINADVAPI BOOL WINAPI GetServiceKeyNameW(SC_HANDLE,LPCWSTR,LPWSTR,LPDWORD);
415 #define GetServiceKeyName WINELIB_NAME_AW(GetServiceKeyName)
416 WINADVAPI SC_LOCK WINAPI LockServiceDatabase(SC_HANDLE);
417 WINADVAPI BOOL WINAPI NotifyBootConfigStatus(BOOL);
418 WINADVAPI DWORD WINAPI NotifyServiceStatusChangeW(SC_HANDLE,DWORD,SERVICE_NOTIFYW*);
419 WINADVAPI SC_HANDLE WINAPI OpenSCManagerA(LPCSTR,LPCSTR,DWORD);
420 WINADVAPI SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR,LPCWSTR,DWORD);
421 #define OpenSCManager WINELIB_NAME_AW(OpenSCManager)
422 WINADVAPI SC_HANDLE WINAPI OpenServiceA(SC_HANDLE,LPCSTR,DWORD);
423 WINADVAPI SC_HANDLE WINAPI OpenServiceW(SC_HANDLE,LPCWSTR,DWORD);
424 #define OpenService WINELIB_NAME_AW(OpenService)
425 WINADVAPI BOOL WINAPI QueryServiceStatus(SC_HANDLE,LPSERVICE_STATUS);
426 WINADVAPI BOOL WINAPI QueryServiceStatusEx(SC_HANDLE,SC_STATUS_TYPE,LPBYTE,DWORD,LPDWORD);
427 WINADVAPI BOOL WINAPI QueryServiceConfigA(SC_HANDLE,LPQUERY_SERVICE_CONFIGA,DWORD,LPDWORD);
428 WINADVAPI BOOL WINAPI QueryServiceConfigW(SC_HANDLE,LPQUERY_SERVICE_CONFIGW,DWORD,LPDWORD);
429 #define QueryServiceConfig WINELIB_NAME_AW(QueryServiceConfig)
430 WINADVAPI BOOL WINAPI QueryServiceConfig2A(SC_HANDLE,DWORD,LPBYTE,DWORD,LPDWORD);
431 WINADVAPI BOOL WINAPI QueryServiceConfig2W(SC_HANDLE,DWORD,LPBYTE,DWORD,LPDWORD);
432 #define QueryServiceConfig2 WINELIB_NAME_AW(QueryServiceConfig2)
433 WINADVAPI BOOL WINAPI QueryServiceLockStatusA(SC_HANDLE,LPQUERY_SERVICE_LOCK_STATUSA,DWORD,LPDWORD);
434 WINADVAPI BOOL WINAPI QueryServiceLockStatusW(SC_HANDLE,LPQUERY_SERVICE_LOCK_STATUSW,DWORD,LPDWORD);
435 #define QueryServiceLockStatus WINELIB_NAME_AW(QueryServiceLockStatus)
436 WINADVAPI BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
437 WINADVAPI SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerA(LPCSTR,LPHANDLER_FUNCTION);
438 WINADVAPI SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerW(LPCWSTR,LPHANDLER_FUNCTION);
439 #define RegisterServiceCtrlHandler WINELIB_NAME_AW(RegisterServiceCtrlHandler)
440 WINADVAPI SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExA(LPCSTR,LPHANDLER_FUNCTION_EX,LPVOID);
441 WINADVAPI SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR,LPHANDLER_FUNCTION_EX,LPVOID);
442 #define RegisterServiceCtrlHandlerEx WINELIB_NAME_AW(RegisterServiceCtrlHandlerEx)
443 WINADVAPI BOOL WINAPI SetServiceObjectSecurity(SC_HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
444 WINADVAPI BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE,LPSERVICE_STATUS);
445 WINADVAPI BOOL WINAPI StartServiceA(SC_HANDLE,DWORD,LPCSTR*);
446 WINADVAPI BOOL WINAPI StartServiceW(SC_HANDLE,DWORD,LPCWSTR*);
447 #define StartService WINELIB_NAME_AW(StartService)
448 WINADVAPI BOOL WINAPI StartServiceCtrlDispatcherA(const SERVICE_TABLE_ENTRYA*);
449 WINADVAPI BOOL WINAPI StartServiceCtrlDispatcherW(const SERVICE_TABLE_ENTRYW*);
450 #define StartServiceCtrlDispatcher WINELIB_NAME_AW(StartServiceCtrlDispatcher)
451 WINADVAPI BOOL WINAPI UnlockServiceDatabase(SC_LOCK);
453 #ifdef __cplusplus
454 } /* extern "C" */
455 #endif /* defined(__cplusplus) */
457 #endif /* !defined(__WINE_WINSVC_H) */