X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=d4d2e0f0b1f77a2620f7b3138c7098977aa01905;hb=aa519d5f870a1069107c04fca707f84ea5d204a6;hp=346062536952de1b40b3699624221549abe21d73;hpb=2c60e5334f6df07bf42e7a91cf59638453eca473;p=nssm.git diff --git a/service.h b/service.h index 3460625..d4d2e0f 100644 --- a/service.h +++ b/service.h @@ -1,6 +1,8 @@ #ifndef SERVICE_H #define SERVICE_H +#include + /* MSDN says the commandline in CreateProcess() is limited to 32768 characters and the application name to MAX_PATH. @@ -87,6 +89,10 @@ 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(); +QUERY_SERVICE_CONFIG *query_service_config(const TCHAR *, SC_HANDLE); +int get_service_description(const TCHAR *, SC_HANDLE, unsigned long, TCHAR *); +int get_service_startup(const TCHAR *, SC_HANDLE, const QUERY_SERVICE_CONFIG *, unsigned long *); +int get_service_username(const TCHAR *, const QUERY_SERVICE_CONFIG *, TCHAR **, size_t *); int pre_install_service(int, TCHAR **); int pre_remove_service(int, TCHAR **); int pre_edit_service(int, TCHAR **);