X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=49760baa16a7d035780a7b6e7473016f26930834;hb=98a2516c22eefd912301ff3c39736da8970dcdff;hp=4fee5503f4bb495c6f9527fde79bd6b2d91eac1d;hpb=d007ff22cecf2ce85cc68a1de81a010d4a65badc;p=nssm.git diff --git a/service.h b/service.h index 4fee550..49760ba 100644 --- a/service.h +++ b/service.h @@ -1,15 +1,24 @@ #ifndef SERVICE_H #define SERVICE_H +#define ACTION_LEN 16 + void WINAPI service_main(unsigned long, char **); +char *service_control_text(unsigned long); +void log_service_control(char *, unsigned long, bool); unsigned long WINAPI service_control_handler(unsigned long, unsigned long, void *, void *); SC_HANDLE open_service_manager(); -int install_service(char *); +int pre_install_service(int, char **); +int pre_remove_service(int, char **); +int install_service(char *, char *, char *); int remove_service(char *); +void set_service_recovery(SC_HANDLE, char *); int monitor_service(); int start_service(); -int stop_service(unsigned long); +int stop_service(unsigned long, bool, bool); void CALLBACK end_service(void *, unsigned char); +void throttle_restart(); +int await_shutdown(char *, char *, SERVICE_STATUS_HANDLE, SERVICE_STATUS *, HANDLE, unsigned long); #endif