Windows Services can have parameters in the registry like in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters
I want to access the parameters of my own service written in C#. Is there an official way (e.g. via the ServiceBase
class) to do that or do I have to hard-code the registry path, which I want to avoid?