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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
Back
Top