The MQCloseQueue function closes a given queue.
HRESULT APIENTRY MQCloseQueue(
QUEUEHANDLE hQueue
);
When an application closes a queue, the queue handle becomes invalid, but the messages waiting in the queue remain in the queue. These include messages sent to the queue by the application closing the queue.
When MQCloseQueue is called, cursors created for the queue are also closed.
For an example of using MQCloseQueue, see:
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mq.h.
Import Library: Use mqrt.lib.
Unicode: Defined only as Unicode.