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

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.
 
J

Josip Habjan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top