MQLocateEnd

The MQLocateEnd function ends a query, releasing the resources associated with the query.

HRESULT APIENTRY MQLocateEnd(
  HANDLE hEnum  
);
 

Parameters

hEnum
[in] Query handle returned by a call to MQLocateBegin.

Return Values

MQ_OK
Indicates success.
MQ_ERROR_INVALID_HANDLE
The query handle specified in hEnum is not valid.

Remarks

MQLocateEnd is not supported for offline operations. For information on offline operations, see MSMQ Offline Support.

Examples

For an example of using MQLocateEnd, see Locating a Public Queue.

See Also

MQLocateBegin, MQLocateNext


© 1997 by Microsoft Corporation. All rights reserved.