How To Purge an MSMQ Queue Using Visual Basic (242475)
The information in this article applies to:
- Microsoft Message Queue Server (MSMQ) 1.0
This article was previously published under Q242475 SUMMARY
As of Windows NT Service Pack 4, a set of Microsoft Message Queue (MSMQ) API functions collectively known as the "Local Admin API" have been exposed in the MSMQ Runtime DLL. One of these API calls, MQPurge, provides the functionality to programmatically purge a Queue of all messages.
WARNING: ANY USE OF THE API CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this information "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Microsoft does not provide technical support for these APIs for the following reasons:
- These are untested API's and therefore may not work as expected in some circumstances.
- These API's may not exist in future releases or their functionality may change in future releases.
- These are undocumented API's. They are being documented in the Knowledge Base for use at your own risk.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB242475 |
---|
|