(main,install_service,remove_service,service_main) [_WIN32]:

Add the ability to specify the service name, to install
multiple services and to set -D and -e options during install.
This commit is contained in:
Ron Koenderink 2004-12-30 02:19:44 +00:00
parent cc1a92e512
commit 70fcb70707
4 changed files with 100 additions and 47 deletions

View file

@ -34,7 +34,10 @@
#ifndef SERVICE_H
#define SERVICE_H
extern int install_service(char *program_name);
extern int remove_service(void);
#define DEFAULT_SERVICE_NAME "Empire Server"
extern char *config_file;
extern int install_service(char *program_name, char *service_name, int datadir_set);
extern int remove_service(char *service_name);
extern void WINAPI service_main(DWORD argc, LPTSTR *argv);
#endif