Problem: I created a service, which is supposed to run under elevated privileges. Now I have an application accessible to users. The application wants to speak to the service via a named pipe. The named pipe is created by the service.
However I cannot open the pipe, because ERROR_ACCESS_DENIED. Question: how I can setup the pipe in the service in order the application would be able to write-open it ?
I read this however it doesn't help at all. I'd be happy to see hints or code sample(s).
Background: I need to change settings of an Audio Device what can be done via IPropertyStore inteface gotten via IMMDevice::OpenPropertyStore call. However the documentation clearly says that I cannot do this if I don't have administrative privileges. Obviously I don't want to annoy user with UAC each time he is going to rotate a knob. so for this I created the aforementioned service. But no luck again.