43c7fd2be682c8bb50c8d3c4b23de188debaeda9
[reactos.git] / reactos / subsys / system / sc / sc.h
1 #include <windows.h>
2 #include <stdio.h>
3 #include <tchar.h>
4
5 extern SC_HANDLE hSCManager; // declared in sc.c
6
7 //#define DBG
8
9 /* control functions */
10 BOOL Query(LPCTSTR ServiceName, LPCTSTR *ServiceArgs, BOOL bExtended);
11 BOOL Start(LPCTSTR ServiceName, LPCTSTR *ServiceArgs, INT ArgCount);
12 BOOL Create(LPCTSTR ServiceName, LPCTSTR *ServiceArgs);
13 BOOL Delete(LPCTSTR ServiceName);
14 BOOL Control(DWORD Control, LPCTSTR ServiceName, LPCTSTR *Args);
15
16 /* print and error functions */
17 DWORD ReportLastError(VOID);
18
19 /* usage functions */
20 INT MainUsage(VOID);
21 INT StartUsage(VOID);
22 INT PauseUsage(VOID);
23 INT InterrogateUsage(VOID);
24 INT ContinueUsage(VOID);
25 INT StopUsage(VOID);
26 INT ConfigUsage(VOID);
27 INT DescriptionUsage(VOID);
28 INT DeleteUsage(VOID);
29 INT CreateUsage(VOID);