When setting security for a Queue, I think I accidentally removed ALL
entries! I cannot manage the queue via MMC, or even changes it's
security rights programmability (I've tried building a service that
access the queue via the LocalSystem account, and even that's denied,
and that's worked in the past when the Administrators group was
removed from the security ACL).
The queue is a private queue on Windows 2000 (vanilla install). I've
tried access via both and Administrator account and LocalSystem. The
code I used was C#, and as follows:
System.Messaging.MessageQueue y;
y = new System.Messaging.MessageQueue("FormatName:Direct=OS:.\\private$\\xyz");
y.SetPermissions("everyone",
System.Messaging.MessageQueueAccessRights.FullControl);
Any help is appreciated, thanks
Brian Ledsworth
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
"Brian Ledsworth" <BrianLe...@hotmail.com> wrote in message
news:74ea9057.03072...@posting.google.com...
Thanks a lot for the help. I've have a c++ program that works on my
local PC, but fails on the server. I'll keep looking into it futher
(as I can get it to work on one device). The only difference is my PC
is in a domain and the server is not (e.g. msmq in workgroup mode).
Thanks again!
Brian Ledsworth
hr = MQSetQueueSecurity (wszFormatNameBuffer,
OWNER_SECURITY_INFORMATION,
&absoluteSD);
hr = MQSetQueueSecurity (wszFormatNameBuffer,
DACL_SECURITY_INFORMATION,
&absoluteSD);
hr = MQDeleteQueue(wszFormatNameBuffer);
Thanks
Brian Ledsworth
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
"Brian Ledsworth" <BrianLe...@hotmail.com> wrote in message
news:74ea9057.03073...@posting.google.com...
Brian