Desktop Functions: Smart Device Functions:
|
Search Results for "MQGetQueueSecurity" in [All]mqrt
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"; 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 ( |