2 * NT Service interface Utility.
3 * Based on code written by
4 * Chas Woodfield, Fretwell Downing Datasystems.
5 * $Id: service.h,v 1.3 2005-06-25 15:46:05 adam Exp $
9 * \brief Header for NT service handling.
12 #ifndef SERVICE_INCLUDED
13 #define SERVICE_INCLUDED
19 typedef struct _Service
23 LPTSTR pServiceDisplayName;
26 SERVICE_STATUS_HANDLE hService;
27 SERVICE_STATUS ServiceStatus;
28 SERVICE_TABLE_ENTRY ServiceTable[2];
33 /* Called by the app to initialize the service */
34 BOOL SetupService(int argc, char *argv[], void *pHandle, LPTSTR pAppName, LPTSTR pServiceName, LPTSTR pServiceDisplayName, LPTSTR pDependancies);
38 /* Functions that must be in the main application */
39 /* Initializes the app */
40 int StartAppService(void *pHandle, int argc, char **argv);
42 /* Now we wait for any connections */
43 void RunAppService(void *pHandle);
45 /* Time to tidyup and stop the service */
46 void StopAppService(void *pHandle);
52 * indent-tabs-mode: nil
54 * vim: shiftwidth=4 tabstop=8 expandtab