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 name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSSetCurrentHeap</title> 10</head> 11 12<body> 13 14<h1>OSSetCurrentHeap</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20OSHeapHandle OSSetCurrentHeap(OSHeapHandle heap); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th><STRONG><EM><CODE>heap</CODE></EM></STRONG></th> 27<td>Handle to a heap that was returned from the <A href="OSCreateHeap.html"><CODE>OSCreateHeap</CODE></A> function</td> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>Previous heap handle.</p> 33 34<H2>Description</H2> 35<P>Although this function is provided for compatibility's sake, we recommend using the MEM library.</P> 36<P>Sets the current heap to <SPAN class="argument">heap</SPAN>. All subsequent calls to the <A href="OSAlloc.html"><CODE>OSAlloc</CODE></A> and <A href="OSFree.html"><CODE>OSFree</CODE></A> functions will be performed on this heap until another call to <CODE>OSSetCurrentHeap</CODE>.</P> 37 38<h2>See Also</h2> 39<P class="reference"> 40<a href="../toc.html#Memory Allocation" target="contents">Memory Allocation Functions</a>, 41<a href="OSAlloc.html">OSAlloc</a>, 42<a href="OSFree.html">OSFree</a> 43</p> 44 45<H2>Revision History</H2> 46<P> 472006/03/01 Initial version.<br> 48</P> 49 50<hr><p>CONFIDENTIAL</p></body> 51</html>