Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "MQGetQueueSecurity" in [All]

mqrt

.
Summary
The MQGetQueueSecurity function retrieves the access control security descriptor for the queue that you specify.
.

public static extern uint MQGetQueueSecurity (

.

MQGetQueueSecurity and MQSetQueueSecurity don't have a managed equivalent in the System.Messaging namespace. If you need to read or change the ACL on a queue to, for example, change the queue owner, you need to use P/Invoke to mqrt.dll.

.

Call MQGetQueueSecurity two times. The first time, set the nLength parameter to 0. The function then informs you of the size that you need for the security descriptor in lpnLengthNeeded.

.

        //MQGetQueueSecurity

.

        //The MQGetQueueSecurity function retrieves the access control

.

        public static extern uint MQGetQueueSecurity (

.

            //Call MQGetQueueSecurity two times. The first time, set the nLength

.

            result = mqrt.MQGetQueueSecurity(

.

                string message = "There was an error calling MQGetQueueSecurity."

.

                string caption = "MQGetQueueSecurity Error";

.

            //Call MQGetQueueSecurity

.

            result = mqrt.MQGetQueueSecurity(

.

                string message = "There was an error calling MQGetQueueSecurity to read the SecurityDescriptor."

.

                string caption = "MQGetQueueSecurity Error";

.
Documentation
[MQGetQueueSecurity] on MSDN
.

MQGetQueueSecurity and MQSetQueueSecurity don't have a managed equivalent in the System.Messaging namespace. If you need to read or change the ACL on a queue to, for example, change the queue owner, you need to use P/Invoke to mqrt.dll.

.

        //MQGetQueueSecurity

.

        //The MQGetQueueSecurity function retrieves the access control

.

        public static extern uint MQGetQueueSecurity (


 
Access PInvoke.net directly from VS: