1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>OSUnlink</TITLE>
9</HEAD>
10<BODY>
11<H1>OSUnlink</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/os.h&gt;
16
17BOOL OSUnlink(OSModuleInfo* oldModule);
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TH>oldModule</TH>
25<TD>Pointer to the module to be unlinked.</TD>
26    </TR>
27  </TBODY>
28</TABLE>
29
30<H2>Return Values</H2>
31<P>Returns <CODE>TRUE</CODE> for normal termination.</P>
32
33<H2>Description</H2>
34<P>Unlinks the specified module.</P>
35<P><strong>Note: </strong>If the module is linked using <code><a href="OSLink.html">OSLink</a></code>, the unlinked module can be moved and linked again using <code><a href="OSLink.html">OSLink</a></code>. However, because the module data section is not returned to the original image, the module code should initialize variables explicitly if the memory copy of the unlinked module is reused.</P>
36<P><STRONG>Note: </STRONG>If the module is linked with <A href="OSLink.html"><CODE>OSLinkFixed</CODE></A>, the unlinked module can no longer be reused by <A href="OSLink.html"><CODE>OSLink</CODE></A>.</P>
37
38<H2>See Also</H2>
39<P class="reference">
40<A href="intro.html">Relocatable Module System</A>,
41<A href="OSLink.html">OSLink</A>
42</P>
43
44<H2>Revision History</H2>
45<P>
462006/03/01 Initial version.<br>
47</p>
48
49<hr><p>CONFIDENTIAL</p></body>
50</HTML>