Exemple #1
0
 public static int MQCreateQueue(IntPtr securityDescriptor, MessagePropertyVariants.MQPROPS queueProperties, StringBuilder formatName, ref int formatNameLength)
 {
     try
     {
         return(IntMQCreateQueue(securityDescriptor, queueProperties, formatName, ref formatNameLength));
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Exemple #2
0
 public static int MQSetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties)
 {
     try
     {
         return(IntMQSetQueueProperties(formatName, queueProperties));
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Exemple #3
0
 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 (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Exemple #4
0
 private static extern int IntMQCreateQueue(IntPtr securityDescriptor, MessagePropertyVariants.MQPROPS queueProperties, StringBuilder formatName, ref int formatNameLength);
Exemple #5
0
 public unsafe static int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped,
                                                     SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction)
 {
     try
     {
         return(IntMQReceiveMessageByLookupId(handle, lookupId, action, properties, overlapped, receiveCallback, transaction));
     }
     catch (EntryPointNotFoundException)
     {
         throw new PlatformNotSupportedException(Res.GetString(Res.PlatformNotSupported));
     }
 }
Exemple #6
0
 private unsafe static extern int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped,
                                                                SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction);
Exemple #7
0
 public unsafe static extern int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped,
                                                  SafeNativeMethods.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction);
Exemple #8
0
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, ITransaction transaction);
Exemple #9
0
 private static extern int IntMQSetQueueProperties(string formatName, MessagePropertyVariants.MQPROPS queueProperties);
Exemple #10
0
 private static extern int IntMQMgmtGetInfo(string machineName, string objectName, MessagePropertyVariants.MQPROPS queueProperties);
Exemple #11
0
 public static int MQGetMachineProperties(string machineName, IntPtr machineIdPointer, MessagePropertyVariants.MQPROPS machineProperties)
 {
     try
     {
         return(IntMQGetMachineProperties(machineName, machineIdPointer, machineProperties));
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Exemple #12
0
 private static extern int IntMQGetMachineProperties(string machineName, IntPtr machineIdPointer, MessagePropertyVariants.MQPROPS machineProperties);