4 #define ACTION_LEN 16
\r
6 void WINAPI service_main(unsigned long, char **);
\r
7 char *service_control_text(unsigned long);
\r
8 void log_service_control(char *, unsigned long, bool);
\r
9 unsigned long WINAPI service_control_handler(unsigned long, unsigned long, void *, void *);
\r
11 SC_HANDLE open_service_manager();
\r
12 int pre_install_service(int, char **);
\r
13 int pre_remove_service(int, char **);
\r
14 int install_service(char *, char *, char *);
\r
15 int remove_service(char *);
\r
16 void set_service_recovery(SC_HANDLE, char *);
\r
17 int monitor_service();
\r
18 int start_service();
\r
19 int stop_service(unsigned long, bool, bool);
\r
20 void CALLBACK end_service(void *, unsigned char);
\r
21 void throttle_restart();
\r
22 int await_shutdown(char *, char *, SERVICE_STATUS_HANDLE, SERVICE_STATUS *, HANDLE, unsigned long);
\r