public static int MQCreateQueue(IntPtr securityDescriptor, MessagePropertyVariants.MQPROPS queueProperties, StringBuilder formatName, ref int formatNameLength)
 {
     try {
         return(IntMQCreateQueue(securityDescriptor, queueProperties, formatName, ref formatNameLength));
     }
     catch (Exception) {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
 public static int MQSetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties)
 {
     try {
         return(IntMQSetQueueProperties(formatName, queueProperties));
     }
     catch (Exception) {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
 public static int MQMgmtGetInfo(string machineName, string objectName, MessagePropertyVariants.MQPROPS queueProperties)
 {
     try {
         return(IntMQMgmtGetInfo(machineName, objectName, queueProperties));
     }
     catch (EntryPointNotFoundException) {
         throw new InvalidOperationException(Res.GetString(Res.MSMQInfoNotSupported));
     }
     catch (Exception) {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Example #4
0
        public static int MQGetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties)
        {
            int num;

            try
            {
                num = IntMQGetQueueProperties(formatName, queueProperties);
            }
            catch (DllNotFoundException)
            {
                throw new InvalidOperationException(Res.GetString("MSMQNotInstalled"));
            }
            return(num);
        }
Example #5
0
        public static int MQGetMachineProperties(string machineName, IntPtr machineIdPointer, MessagePropertyVariants.MQPROPS machineProperties)
        {
            int num;

            try
            {
                num = IntMQGetMachineProperties(machineName, machineIdPointer, machineProperties);
            }
            catch (DllNotFoundException)
            {
                throw new InvalidOperationException(Res.GetString("MSMQNotInstalled"));
            }
            return(num);
        }
Example #6
0
 private static extern int IntMQSetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties);
Example #7
0
 private static extern unsafe int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction);
Example #8
0
 private static extern int IntMQMgmtGetInfo(string machineName, string objectName, MessagePropertyVariants.MQPROPS queueProperties);
Example #9
0
 private static extern int IntMQGetMachineProperties(string machineName, IntPtr machineIdPointer, MessagePropertyVariants.MQPROPS machineProperties);
Example #10
0
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, ITransaction transaction);
Example #11
0
 private static extern int IntMQCreateQueue(IntPtr securityDescriptor, MessagePropertyVariants.MQPROPS queueProperties, StringBuilder formatName, ref int formatNameLength);
Example #12
0
        public static unsafe int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction)
        {
            int num;

            try
            {
                num = IntMQReceiveMessageByLookupId(handle, lookupId, action, properties, overlapped, receiveCallback, transaction);
            }
            catch (EntryPointNotFoundException)
            {
                throw new PlatformNotSupportedException(Res.GetString("PlatformNotSupported"));
            }
            return(num);
        }
Example #13
0
 public static extern unsafe int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction);
 public static int MQGetMachineProperties(string machineName, IntPtr machineIdPointer, MessagePropertyVariants.MQPROPS machineProperties)
 {
     try {
         return(IntMQGetMachineProperties(machineName, machineIdPointer, machineProperties));
     }
     catch (Exception) {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
 public unsafe static extern int MQReceiveMessage(IntPtr handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped,
                                                  SafeNativeMethods.ReceiveCallback receiveCallback, IntPtr cursorHandle, ITransaction transaction);
 public static extern int MQSendMessage(IntPtr handle, MessagePropertyVariants.MQPROPS properties, IntPtr transaction);