1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3 4<HEAD> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 8 9<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 10 11 <!-- �^�C�g���� --> 12 <TITLE>MEMFreeByStateToFrmHeap</TITLE> 13 14</HEAD> 15 16 17<BODY> 18 19 20<!-- �^�C�g���� --> 21<H1>MEMFreeByStateToFrmHeap</H1> 22 23 24<H2>C Specification</H2> 25<PRE class="construction">#include <revolution/mem.h> 26 27BOOL MEMFreeByStateToFrmHeap( 28MEMHeapHandle heap, 29u32 tagName );</PRE> 30 31 32<H2>Arguments</H2> 33<TABLE border="1"> 34 35 <TR> 36 <TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD> 37 <TD>Frame heap handle.</TD> 38</TR> 39 <TR> 40<TD><STRONG><EM><CODE>tagName</CODE></EM></STRONG></TD> 41<TD>Tag attached to the state record.</TD> 42 </TR> 43 </TABLE> 44 45 46<H2>Return Values</H2> 47<P>Returns <CODE>TRUE</CODE> if the memory block that the state record uses is successfully freed. Otherwise, returns <CODE>FALSE</CODE>.</P> 48<H2>Description</H2> 49<P>This function frees memory that is allocated after the state is recorded. If <code>0</code> is specified for <STRONG><EM><code>tagName</code></EM></STRONG>, the state record from the previous call to the <CODE>MEMRecordStateForFrmHeap</CODE></A> function is used. If a value other than <code>0</code> is specified, the state record associated with the tag value is used. If multiple tags share the same value, the previously recorded state record is used.</P> 50<P>If <STRONG><EM><code>tagName</code></EM></STRONG> is <code>0</code> and a state isn't recorded, the function fails. The function also fails if a state record with the specified tag value doesn't exist.</P> 51<P>If the tag value is set and freed, state records that are saved after this record with the same tag value are deleted.</P> 52<H2>See Also</H2> 53<P class="reference"><A href="MEMRecordStateForFrmHeap.html"><CODE>MEMRecordStateForFrmHeap</CODE></A></P> 54 55 56<H2>Revision History</H2> 57<P>03/01/2006 Initial version.</P> 58 59 60</BODY> 61</HTML> 62