X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=170ab4225983276d70bda41a6a823e444db7a91e;hb=02203cb8aff4be6a094b7a9ded867c3b5d743d77;hp=515b10802948cfa1ab615a1a1ca996173462c5d8;hpb=4b7c8eec508cc90d80355fad5df80163a181ddcb;p=nssm.git diff --git a/service.h b/service.h index 515b108..170ab42 100644 --- a/service.h +++ b/service.h @@ -47,6 +47,7 @@ typedef struct { unsigned long envlen; TCHAR *env_extra; unsigned long env_extralen; + unsigned long priority; TCHAR stdin_path[MAX_PATH]; unsigned long stdin_sharing; unsigned long stdin_disposition; @@ -92,10 +93,15 @@ TCHAR *service_control_text(unsigned long); void log_service_control(TCHAR *, unsigned long, bool); unsigned long WINAPI service_control_handler(unsigned long, unsigned long, void *, void *); +unsigned long priority_mask(); +int priority_constant_to_index(unsigned long); +unsigned long priority_index_to_constant(int); + nssm_service_t *alloc_nssm_service(); void set_nssm_service_defaults(nssm_service_t *); void cleanup_nssm_service(nssm_service_t *); SC_HANDLE open_service_manager(); +SC_HANDLE open_service(SC_HANDLE, TCHAR *, TCHAR *, unsigned long); QUERY_SERVICE_CONFIG *query_service_config(const TCHAR *, SC_HANDLE); int set_service_description(const TCHAR *, SC_HANDLE, TCHAR *); int get_service_description(const TCHAR *, SC_HANDLE, unsigned long, TCHAR *); @@ -108,6 +114,7 @@ int pre_edit_service(int, TCHAR **); int install_service(nssm_service_t *); int remove_service(nssm_service_t *); int edit_service(nssm_service_t *, bool); +int control_service(unsigned long, int, TCHAR **); void set_service_recovery(nssm_service_t *); int monitor_service(nssm_service_t *); int start_service(nssm_service_t *);