X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=0580aff37b0d2e1127738a210cd11f7f6af3e052;hb=838c282576cff8e2f0467eab8965ccaee39075f5;hp=1649bdf623f7efd006488882155ab356f9357aa8;hpb=2f2f64b07611fe0709bf4d502de7cac292dc1975;p=nssm.git diff --git a/registry.h b/registry.h index 1649bdf..0580aff 100644 --- a/registry.h +++ b/registry.h @@ -1,7 +1,8 @@ #ifndef REGISTRY_H #define REGISTRY_H -#define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters") +#define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s") +#define NSSM_REG_PARAMETERS _T("Parameters") #define NSSM_REGISTRY_GROUPS _T("SYSTEM\\CurrentControlSet\\Control\\ServiceGroupOrder") #define NSSM_REG_GROUPS _T("List") #define NSSM_REG_EXE _T("Application") @@ -36,6 +37,8 @@ #define NSSM_REG_HOOK _T("AppEvents") #define NSSM_STDIO_LENGTH 29 +HKEY open_service_registry(const TCHAR *, REGSAM sam, bool); +long open_registry(const TCHAR *, const TCHAR *, REGSAM sam, HKEY *, bool); HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam, bool); HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam); HKEY open_registry(const TCHAR *, REGSAM sam);