Mutex - Access denied err when creating mutex from a window servic  
Author Message
a-chadl





PostPosted: Mon Jul 25 18:22:02 CDT 2005 Top

Dotnet >> Mutex - Access denied err when creating mutex from a window servic I have a dll that creates a named mutex. The mutex is successfully created
when loading the dll through a console application. However the same fails
when running it though a Windows service. The service is running under the
local system account.
Thanks.

DotNet439  
 
 
Josip





PostPosted: Mon Jul 25 18:22:02 CDT 2005 Top

Dotnet >> Mutex - Access denied err when creating mutex from a window servic Hi,

Create security descriptor for that mutex with all rights ( string format:
"D:(OA;OI;GAFA;;;WD)" ) ...
tips: SECURITY_ATTRIBUTES,
ConvertStringSecurityDescriptorToSecurityDescriptor, advapi32.dll

Regards,
Josip Habjan
http://www.habjansoftware.com


"gaiv" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I have a dll that creates a named mutex. The mutex is successfully created
> when loading the dll through a console application. However the same fails
> when running it though a Windows service. The service is running under the
> local system account.
> Thanks.