Is it possible to get all permission list related with the given Msmq private queue via c#? ,
I see MessageQueue.SetPermissions and MessageQueue.ResetPermissions but I don’t see anything for getting the current permissions?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is currently no way to get the ACL for a queue with .NET Framework. The System.Messaging namespace lacks a lot of functionality otherwise found in the COM components for MSMQ, but unfortnately you can’t even use COM for this.
If you are comfortable with P/Invoke you can use the method MQGetQueueSecurity
http://msdn.microsoft.com/en-us/library/ms703223(v=vs.85).aspx