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<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><CODE>#include &lt;revolution/os.h&gt;</CODE></PRE>
16  <DD>
17<PRE><CODE>BOOL OSUnlink (OSModuleInfo* oldModule);</CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" cellpadding="3" cellspacing="0.1">
21  <TBODY>
22    <TR>
23<TD width="120" bgcolor="#ffffe8"><I><B><CODE><STRONG><EM><CODE>oldModule</CODE></EM></STRONG></CODE></B></I></TD>
24<TD width="520">Pointer to the module to unlink. </TD>
25    </TR>
26  </TBODY>
27</TABLE>
28<H2>Return Values</H2>
29<P>Returns <CODE>TRUE</CODE> if the function completes normally. </P>
30<H2>Description</H2>
31<P>Unlinks the specified module.</P>
32<P><STRONG>Note:</STRONG>The unlinked modules are moved and can be relinked with <A href="OSLink.html"><CODE>OSLink</CODE></A>. 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>
33<P><STRONG>Note:</STRONG>The <code><a href="OSLink.html">OSLink</a></code> function cannot reuse the unlinked module after the module is linked using the <code><a href="OSLink.html">OSLinkFixed</a></code> function.</P>
34
35<H2>See Also</H2>
36<P><a href="intro.html">Introduction to Relocatable Module System</a><br> <a href="OSLink.html"><code>OSLink</code></a></P>
37<H2>Revision History</H2>
38<P>03/01/2006 Initial version.</p>
39</BODY>
40</HTML>