Message Queuing Functions
The Message Queuing functions enable you to manage queues and messages within your Message Queuing application. The Message Queuing API includes functions for creating, opening, and deleting queues; for locating existing queues and messages in queues; for sending messages and reading them in queues; and for setting and retrieving properties.
All strings passed to or returned by Message Queuing functions are in Unicode format (2-byte characters).
Message Queuing functions include the following functions.
Translates the ADs path of a queue, queue alias, or distribution list into a format name.
Creates an internal Message Queuing transaction object that can be used to send messages to a queue or read messages from a queue.
Closes a given cursor, allowing Message Queuing to release the associated resources.
Closes a given queue.
Creates a cursor for a specific queue and returns its handle.
Creates a public or private queue.
Deletes a queue from the directory service or from the local computer.
Frees memory allocated by Message Queuing.
Frees the memory allocated by MQGetSecurityContext.
Retrieves information about a queue manager computer.
Retrieves the Message Queuing receive success or error code from the OVERLAPPED structure used to retrieve a message asynchronously.
Retrieves information about the local computer without accessing the directory service.
Retrieves the specified set of properties for a specific queue.
Retrieves information from the access control security descriptor of the specified queue.
(Superseded by MQGetSecurityContextEx.) Retrieves security information needed to attach a certificate to a message for authentication.
(Introduced in Windows® 2000 Service Pack 2, supersedes MQGetSecurityContext.) Retrieves the security information needed to attach a certificate to a message for authentication.
Returns a format name for the queue based on its handle.
Returns a format name for the queue based on the identifier provided.
Starts a query to locate a public queue, returning a query handle.
Ends a query, releasing the resources associated with the query.
Retrieves the requested queue information from the query.
(Introduced in MSMQ 3.0.) Changes the state of a computer or a queue.
(Introduced in MSMQ 3.0.) Retrieves information about a computer or a queue.
Opens a queue for sending, peeking at, retrieving, or purging messages.
Returns a format name based on the Message Queuing path name provided.
(Introduced in MSMQ 3.0.) Deletes all of the messages in a queue.
Allows you to read messages in the queue.
(Introduced in MSMQ 3.0.) Peeks at or retrieves messages in the queue based on message lookup identifiers.
Sends a message to the queue corresponding to the handle hDestinationQueue.
Sets the properties of a specific queue.
Sets the access control security descriptor of a queue.
Moves messages between a queue and its subqueue, or between two subqueues within the same main queue.
Marks a message in a queue as rejected.
The functionality of the local administration API functions introduced in MSMQ 3.0 (MQMgmtAction, MQMgmtGetInfo, and MQPurgeQueue) is also available for computers running previous versions of Message Queuing. For more information, see MSMQ Local Admin API.