2014-02-03 16:13:37 +00:00
|
|
|
#ifndef _SC_PCH_
|
|
|
|
#define _SC_PCH_
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <stdarg.h>
|
2014-01-07 17:10:31 +00:00
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winsvc.h>
|
2006-02-16 23:18:11 +00:00
|
|
|
#include <tchar.h>
|
|
|
|
|
2006-09-01 16:55:36 +00:00
|
|
|
#define SCDBG
|
2006-02-16 23:18:11 +00:00
|
|
|
|
|
|
|
/* control functions */
|
|
|
|
BOOL Start(LPCTSTR ServiceName, LPCTSTR *ServiceArgs, INT ArgCount);
|
2010-09-18 08:41:06 +00:00
|
|
|
BOOL Create(LPCTSTR *ServiceArgs, INT ArgCount);
|
2006-02-16 23:18:11 +00:00
|
|
|
BOOL Delete(LPCTSTR ServiceName);
|
2006-08-31 17:59:02 +00:00
|
|
|
BOOL Control(DWORD Control, LPCTSTR ServiceName, LPCTSTR *Args, INT ArgCount);
|
2006-09-01 16:55:36 +00:00
|
|
|
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended);
|
|
|
|
|
|
|
|
LPSERVICE_STATUS_PROCESS QueryService(LPCTSTR ServiceName);
|
2006-02-16 23:18:11 +00:00
|
|
|
|
|
|
|
/* print and error functions */
|
2006-09-01 16:55:36 +00:00
|
|
|
VOID PrintService(LPCTSTR ServiceName, LPSERVICE_STATUS_PROCESS pStatus, BOOL bExtended);
|
2006-08-31 17:59:02 +00:00
|
|
|
VOID ReportLastError(VOID);
|
2006-02-16 23:18:11 +00:00
|
|
|
|
|
|
|
/* usage functions */
|
2006-08-31 17:59:02 +00:00
|
|
|
VOID MainUsage(VOID);
|
|
|
|
VOID StartUsage(VOID);
|
|
|
|
VOID PauseUsage(VOID);
|
|
|
|
VOID InterrogateUsage(VOID);
|
|
|
|
VOID ContinueUsage(VOID);
|
|
|
|
VOID StopUsage(VOID);
|
|
|
|
VOID ConfigUsage(VOID);
|
|
|
|
VOID DescriptionUsage(VOID);
|
|
|
|
VOID DeleteUsage(VOID);
|
|
|
|
VOID CreateUsage(VOID);
|
2010-09-18 08:41:06 +00:00
|
|
|
VOID ControlUsage(VOID);
|
2014-02-03 16:13:37 +00:00
|
|
|
|
|
|
|
#endif /* _SC_PCH_ */
|