(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:
parent
cc1a92e512
commit
70fcb70707
4 changed files with 100 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue