471,328 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

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.
Jul 25 '05 #1
1 1777
Hi,

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

Regards,
Josip Habjan
http://www.habjansoftware.com
"gaiv" <ga**@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.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.

Jul 25 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Martin Maat | last post: by
1 post views Thread by Kris | last post: by
12 posts views Thread by Ron Weldy | last post: by
2 posts views Thread by tshad | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.