The MQLocateEnd function ends a query, releasing the resources associated with the query.
HRESULT APIENTRY MQLocateEnd(
HANDLE hEnum
);
MQLocateEnd is not supported if there is no connection to Active Directory. This restriction applies to dependent client computers, independent client computers (working offline), and MSMQ routing servers (FRS). (For information on offline operations, see MSMQ Offline Support.)
For an example of using MQLocateEnd, see Locating a Public Queue.
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.