Opening Queue Examples

 

Updated: July 19, 2016

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The following examples show how to open a public or private destination queue. These examples could be used by a sending application to open a queue with send access, or they could be used by a receiving application to open the queue with peek or receive access. For examples on opening multiple destination queues using distribution lists, multicast addresses, or multiple-element format names, see Sending Messages to Multiple Destination Examples.

For an example ofUsing
Opening a destination queue using a public or private format nameC/C++ Code Example: Opening a Queue

 C++ COM Code Example: Opening a Queue

 Visual Basic Code Example: Opening a Queue

 VBScript Code Example: Opening a Queue

Additional examples are shown below. These are more specific examples that may be needed in special circumstances.

For an example ofUsing
Opening a queue journal to read messagesVisual Basic Code Example: Reading Messages in a Queue Journal
Opening a computer journal to read messagesVisual Basic Code Example: Reading Messages in the Computer Journal
Opening the messages nontransactional dead-letter queue to readC/C++ Code Example: Reading Messages in the Dead-Letter Queue

 Visual Basic Code Example: Reading Messages in the Dead-Letter Queue
Opening the transactional dead-letter queue to read messagesC/C++ Code Example: Reading Messages in the Transactional Dead-Letter Queue

 Visual Basic Code Example: Reading Messages in the Transactional Dead-Letter Queue
Opening a queue when only the queue's identifier (GUID) is knownC/C++ Code Example: Opening a Queue Using a Queue Identifier
Opening a private queue when only the computer GUID and queue number are knownC/C++ Code Example: Opening a Private Queue Using a Computer Identifier and Queue Number

Community Additions

ADD
Show: