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
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/os.h&gt;
16
17OSModuleInfo* OSSearchModule(void* ptr, u32* section, u32* offset);
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TH>ptr</TH>
25<TD>Virtual address.</TD>
26    </TR>
27    <TR>
28<TH><STRONG><EM><CODE>section</CODE></EM></STRONG></TH>
29<TD>Pointer to a <CODE>u32</CODE> type to get the module section number.</TD>
30    </TR>
31    <TR>
32<TH>offset</TH>
33<TD>Pointer to a <CODE>u32</CODE> type to get the module section number.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37
38<H2>Return Values</H2>
39<P>Returns a pointer to <CODE>OSModuleInfo</CODE> that covers the <SPAN class="argument">ptr</SPAN> address. Returns NULL if none of the modules cover <SPAN class="argument">ptr</SPAN>.</P>
40
41<H2>Description</H2>
42<P>Searches for the module that covers the specified address (<SPAN class="argument">ptr</SPAN>).</P>
43
44<H2>See Also</H2>
45<P class="reference">
46<A href="intro.html">Relocatable Module System</A>
47</P>
48
49<H2>Revision History</H2>
50<P>
512006/03/01 Initial version.<br>
52</P>
53
54<hr><p>CONFIDENTIAL</p></body>
55</HTML>