IMSMQBusAdapter::OpenWriteQueue

Opens a queue for sending messages.

Parameter:

[In] Name

This is the name of the queue in one of the following:

  • MachineName\QueueName (OS or PathName)

  • IPAddress\QueueName (TCP)

  • SPXAddress\QueueName (SPX)

[In] Protocol

Refers to the network protocol that you must use when you connect to the queue. The options are:

  • 0: OS (default value) - any machine name supported by the underlying operating system. For Microsoft Windows NT4, it is either UNC or DNS.

  • 1: TCP (TCP/IP) - Internet address notation (IP address).

  • 2: SPX - network number and host number (separated by the ":" character).

[In] Mode

Reflects the mode in which the queue is opened. The mode options are:

  • 0: DIRECT (default value) - see the MSDN Platform SDK (Opening Queues with a Direct Format Name) for further information.

  • 1: PRIVATE

  • 2: PUBLIC

When the protocol contains a value that has no meaning, the default OS protocol is used. When you set Mode to DIRECT, a FormatName is used. Any other Mode will use a PathName.

More information:

IMSMQBusAdapter Interface