Partilhar via


Opening Queue Examples

 

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 of Using
Opening a destination queue using a public or private format name C/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

More Examples

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

For an example of Using
Opening a queue journal to read messages Visual Basic Code Example: Reading Messages in a Queue Journal
Opening a computer journal to read messages Visual Basic Code Example: Reading Messages in the Computer Journal
Opening the messages nontransactional dead-letter queue to read C/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 messages C/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 known C/C++ Code Example: Opening a Queue Using a Queue Identifier
Opening a private queue when only the computer GUID and queue number are known C/C++ Code Example: Opening a Private Queue Using a Computer Identifier and Queue Number