The MQFreeMemory function frees memory allocated by MSMQ.
VOID MQFreeMemory(
PVOID pvMemory
);
Whenever an application passes VT_NULL in an aPropVar array and MSMQ allocates memory for the returned property value (for example, puuid and pwszVal), MQFreeMemory must be called.
For MQLocateNext, all properties whose values returned by MSMQ are stored outside aPropVar must also be freed using MQFreeMemory.
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.