X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.cpp;h=93c034d285c41300a0c3654437872dbbe5a72ae5;hb=7bc41a82f696699aface2103f277e7ebf1808b2f;hp=c78cb8cfa3551dd75c6fa63021b130adb831e679;hpb=ac8cdc8a64606b7027344c8fd4d5f7f9bc871e90;p=nssm.git diff --git a/registry.cpp b/registry.cpp index c78cb8c..93c034d 100644 --- a/registry.cpp +++ b/registry.cpp @@ -667,6 +667,7 @@ void override_milliseconds(TCHAR *service_name, HKEY key, TCHAR *value, unsigned if (! ok) *buffer = default_value; } +/* Open the key of the service itself Services\. */ HKEY open_service_registry(const TCHAR *service_name, REGSAM sam, bool must_exist) { /* Get registry */ TCHAR registry[KEY_LENGTH]; @@ -678,6 +679,7 @@ HKEY open_service_registry(const TCHAR *service_name, REGSAM sam, bool must_exis return open_registry_key(registry, sam, must_exist); } +/* Open a subkey of the service Services\\. */ long open_registry(const TCHAR *service_name, const TCHAR *sub, REGSAM sam, HKEY *key, bool must_exist) { /* Get registry */ TCHAR registry[KEY_LENGTH];