public static int MQGetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties)
 {
     try
     {
     return UnsafeNativeMethods.IntMQGetQueueProperties(formatName, queueProperties);
     }
     catch (DllNotFoundException ex)
     {
     throw new InvalidOperationException(Res.GetString("MSMQNotInstalled"));
     }
 }
 public MessageProperties()
 {
     _props = new MessagePropertyVariants();
     _props.SetUI1Vector(2, new byte[20]);
 }
 private static extern int IntMQGetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties);
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, IntPtr transaction);