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 "MQSetQueueSecurity" in [All]

mqrt

.

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.

.
Summary
The MQSetQueueSecurity function sets the access control security descriptor for the queue that you specify.
.

public static extern uint MQSetQueueSecurity(

.

Declare Function MQSetQueueSecurity Lib "mqrt.dll" (TODO) As TODO

.

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.

.

I can share more of the code if people are interested, but there are lots of API calls leading up to the call to MQSetQueueSecurity, so I'll just show the interesting parts here:

.

        //MQSetQueueSecurity

.

        //The MQSetQueueSecurity function sets the access control

.

        public static extern uint MQSetQueueSecurity(

.

            result = mqrt.MQSetQueueSecurity(

.
Documentation
[MQSetQueueSecurity] on MSDN

 
Access PInvoke.net directly from VS: