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 http-equiv="Content-Style-Type" content="text/css">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>OSSearchModule</TITLE>
9</HEAD>
10<BODY>
11<H1>OSSearchModule</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>OSModuleInfo* OSSearchModule (void* ptr, u32* section, u32* offset);</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><code><EM><STRONG>ptr</STRONG></EM></code></CODE></B></I></TD>
24<TD width="520">Virtual address.</TD>
25    </TR>
26    <TR>
27<TD width="120" bgcolor="#ffffe8"><I><B><CODE><STRONG><EM><CODE>section</CODE></EM></STRONG></CODE></B></I></TD>
28<TD width="520">Pointer to u32 type to get the module section number.</TD>
29    </TR>
30    <TR>
31<TD width="120" bgcolor="#ffffe8"><I><B><CODE><STRONG><EM><CODE>offset</CODE></EM></STRONG></CODE></B></I></TD>
32<TD width="520">Pointer to u32 type to get the module section number.</TD>
33    </TR>
34  </TBODY>
35</TABLE>
36<H2>Return Values</H2>
37<P>Pointer to <code>OSModuleInfo</code> which contains <code><em><strong>ptr</strong></em></code> address. Returns NULL if there is no module that contains <code><em><strong>ptr</strong></em></code>.</P>
38<H2>Description</H2>
39<P>Searches the module that contains the specified address (<code><em><strong>ptr</strong></em></code>).</P>
40
41<H2>See Also</H2>
42<P><A href="intro.html">Relocatable Module System</A></P>
43<H2>Revision History</H2>
44<P>2006/03/01 Initial version.</P>
45<hr>
46<P>CONFIDENTIAL</p>
47</BODY>
48</HTML>