2 * NT Service interface Utility.
3 * Based on code written by
4 * Chas Woodfield, Fretwell Downing Datasystems.
6 * Revision 1.1 1997-11-07 13:31:52 adam
7 * Added NT Service name part of statserv_options_block. Moved NT
8 * service utility to server library.
10 * Revision 1.2 1997/09/04 13:50:30 adam
15 #ifndef SERVICE_INCLUDED
16 #define SERVICE_INCLUDED
22 typedef struct _Service
26 LPTSTR pServiceDisplayName;
29 SERVICE_STATUS_HANDLE hService;
30 SERVICE_STATUS ServiceStatus;
31 SERVICE_TABLE_ENTRY ServiceTable[2];
36 /* Called by the app to initialize the service */
37 BOOL SetupService(int argc, char *argv[], void *pHandle, LPTSTR pAppName, LPTSTR pServiceName, LPTSTR pServiceDisplayName, LPTSTR pDependancies);
41 /* Functions that must be in the main application */
42 /* Initializes the app */
43 int StartAppService(void *pHandle, int argc, char **argv);
45 /* Now we wait for any connections */
46 void RunAppService(void *pHandle);
48 /* Time to tidyup and stop the service */
49 void StopAppService(void *pHandle);