I have two prorams, one of which runs as a service, and the uses a shared
resource (actually a log file) which I want to protect with a named mutex.
The service starts at login, and when I run the non-service program it throws
an ApplicationException (Access denied) when it tries to construct the mutex.
I can only assume that this is a security thing, maybe because the service is
running under the Local System user. (If I stop the service, run the program,
and then restart the service it's fine).
Is there any way round this other than by using PInvoke calls to create the
named mutex with security attributes and a null DACL?
--
Dave