service.h 589 B

1234567891011121314151617181920
  1. #ifndef SERVICE_H
  2. #define SERVICE_H
  3. #define ACTION_LEN 16
  4. void WINAPI service_main(unsigned long, char **);
  5. unsigned long WINAPI service_control_handler(unsigned long, unsigned long, void *, void *);
  6. SC_HANDLE open_service_manager();
  7. int pre_install_service(int, char **);
  8. int pre_remove_service(int, char **);
  9. int install_service(char *, char *, char *);
  10. int remove_service(char *);
  11. void set_service_recovery(char *);
  12. int monitor_service();
  13. int start_service();
  14. int stop_service(unsigned long, bool, bool);
  15. void CALLBACK end_service(void *, unsigned char);
  16. #endif