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
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><CODE>#include &lt;revolution/os.h&gt;</CODE></pre></dd>
21<dd><pre><code>OSHeapHandle OSSetCurrentHeap (OSHeapHandle heap);</code></pre></dd>
22</dl><h2>Arguments</h2>
23<TABLE border="1" cellpadding="3" cellspacing="0.1">
24  <tr>
25<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><CODE>heap</CODE></EM></STRONG></code></strong></em></TD>
26<td>Heap handle that was returned from the <code><a href="OSCreateHeap.html">OSCreateHeap</a></code> function.</td>
27  </tr>
28</TABLE>
29<h2>Return Values</h2>
30
31<p>Previous heap handle.</p>
32<H2>Description</H2>
33<P>Although this function is provided for compatibility's sake, we recommend using the MEM library.  </P>
34<P>Sets <code><strong><em>heap</em></strong></code> as the current heap. After the <a href="OSAlloc.html"><code>OSAlloc</code></a> and <code><a href="OSFree.html">OSFree</a></code> functions are called, all following calls will be performed on this heap unless the <code>OSSetCurrentHeap</code> function is called again.</P>
35
36
37
38<h2>See Also</h2>
39
40<p><a href="../list.html#Memory Allocation" target="contents">Memory Allocation Functions</a>, <a href="OSAlloc.html"><code>OSAlloc</code></a>, <code><a href="OSFree.html">OSFree</a></code></p>
41<H2>Revision History</H2>
42<P>03/01/2006 Initial version.</P>
43</body>
44</html>