The information in this article applies to:
SUMMARY
You can use MQFreeMemory for the following MSMQ queue properties only:
MORE INFORMATION
The only properties for which MSMQ allocates memory are as follows:
MSMQ does not allocate memory for any of the MSMQ message properties (PROPID_M_XXX) or the queue properties (PROPID_Q_XXX) not specified above. When you use one of those message or queue properties, you must always specifically allocate the memory you want use. You need to allocate memory when the PROPVARIANT type is one of the following:
When you try to retrieve the queue or QueueManager properties mentioned above (for example, MQGetQueueProperties), you can pass a PROPVARIANT of type VT_NULL. MSMQ will allocate the memory for the returned property. Then you have to call MQFreeMemory on that property's data. In most cases you can pass VT_NULL as the PROPVARIANT type for any property where memory allocation is not necessary, such as a property of type VT_UI4. At this time, known exceptions to this rule include the following:
REFERENCESMSMQ SDK Help; search on: "MQGetMachineProperties"; "MQGetQueueProperties"; "MQReceiveMessage"; Additional query words:
Keywords : kbMSMQ100 |
Last Reviewed: January 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |