public static int MQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle)
 {
     try
       {
     return IntMQOpenQueue(formatName, access, shareMode, out handle);
       }
       catch (DllNotFoundException ex)
       {
     throw new InvalidOperationException(Res.GetString("MSMQNotInstalled"));
       }
 }
 private static extern int IntMQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle);
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, IntPtr transaction);