Desktop Functions: Smart Device Functions:
|
Search Results for "MQSetQueueSecurity" in [All]mqrtMQGetQueueSecurity 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.
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( |