modperl bootstrap
[www.jankratochvil.net.git] / project / captive / apiref / captive-apiref-ldr.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ldr</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
3         .synopsis, .classsynopsis {
4             background: #eeeeee;
5             border: solid 1px #aaaaaa;
6             padding: 0.5em;
7         }
8         .programlisting {
9             background: #eeeeff;
10             border: solid 1px #aaaaff;
11             padding: 0.5em;
12         }
13         .variablelist {
14             padding: 4px;
15             margin-left: 3em;
16         }
17         .navigation {
18             background: #ffeeee;
19             border: solid 1px #ffaaaa;
20             margin-top: 0.5em;
21             margin-bottom: 0.5em;
22         }
23         .navigation a {
24             color: #770000;
25         }
26         .navigation a:visited {
27             color: #550000;
28         }
29         .navigation .title {
30             font-size: 200%;
31         }
32       </style><link rel="home" href="index.html" title="Operation Captive Reference Manual"><link rel="up" href="ch01.html" title="Operation Captive"><link rel="previous" href="captive-apiref-init.html" title="init"><link rel="next" href="captive-apiref-macros.html" title="macros"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="captive-apiref-init.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Operation Captive Reference Manual</th><td><a accesskey="n" href="captive-apiref-macros.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="captive-apiref-ldr"></a><div class="titlepage"></div><div class="refnamediv"><h2>ldr</h2><p>ldr &#8212; </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
33
34
35
36 NTSTATUS    <a href="captive-apiref-ldr.html#captive-LdrpLoadAndCallImage">captive_LdrpLoadAndCallImage</a>    (PMODULE_OBJECT *ModuleObjectp,
37                                              struct captive_options_module *options_module,
38                                              PDRIVER_OBJECT DriverEntry_DriverObject,
39                                              PUNICODE_STRING DriverEntry_RegistryPath);
40 NTSTATUS    <a href="captive-apiref-ldr.html#captive-LdrLoadModule">captive_LdrLoadModule</a>           (struct captive_options_module *options_module,
41                                              PMODULE_OBJECT *ModuleObjectp);
42 G_CONST_RETURN gchar* <a href="captive-apiref-ldr.html#captive-ModuleList-function-disable-find">captive_ModuleList_function_disable_find</a>
43                                             (gconstpointer ExportAddress);
44 void*       <a href="captive-apiref-ldr.html#captive-Module-GetExportAddress">captive_Module_GetExportAddress</a> (const gchar *ModuleName_utf8,
45                                              const gchar *FunctionName);
46 void        <a href="captive-apiref-ldr.html#captive-PoQueueShutdownWorkItem-hooklist-invoke">captive_PoQueueShutdownWorkItem_hooklist_invoke</a>
47                                             (void);
48 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
49
50 </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="captive-LdrpLoadAndCallImage"></a>captive_LdrpLoadAndCallImage ()</h3><pre class="programlisting">NTSTATUS    captive_LdrpLoadAndCallImage    (PMODULE_OBJECT *ModuleObjectp,
51                                              struct captive_options_module *options_module,
52                                              PDRIVER_OBJECT DriverEntry_DriverObject,
53                                              PUNICODE_STRING DriverEntry_RegistryPath);</pre><p>
54 Corresponds to reactos LdrpLoadAndCallImage() but it also provides arguments
55 to pass to PDRIVER_INITIALIZE call of module driver initialization.</p><p>
56
57 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ModuleObjectp</tt></i> :</span></td><td> Returns PMODULE_OBJECT successfuly loaded.
58 </td></tr><tr><td><span class="term"><i><tt>options_module</tt></i> :</span></td><td> captive_options_module structure describing the module to load.
59 Loading of already loaded module is forbidden despite original
60 LdrpLoadAndCallImage().
61 </td></tr><tr><td><span class="term"><i><tt>DriverEntry_DriverObject</tt></i> :</span></td><td> argument DriverObject of PDRIVER_INITIALIZE call.
62 </td></tr><tr><td><span class="term"><i><tt>DriverEntry_RegistryPath</tt></i> :</span></td><td> argument RegistryPath of PDRIVER_INITIALIZE call.
63 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> STATUS_SUCCESS if the driver module was loaded and initialized
64 successfuly during this call. Ignore returned <i><tt>ModuleObjectp</tt></i> if function failed.
65 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="captive-LdrLoadModule"></a>captive_LdrLoadModule ()</h3><pre class="programlisting">NTSTATUS    captive_LdrLoadModule           (struct captive_options_module *options_module,
66                                              PMODULE_OBJECT *ModuleObjectp);</pre><p>
67 Load and initialize module to reactos using host OS functions.</p><p>
68
69 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>options_module</tt></i> :</span></td><td> captive_options_module structure describing the module to load.
70 Loading of already loaded module is forbidden.
71 </td></tr><tr><td><span class="term"><i><tt>ModuleObjectp</tt></i> :</span></td><td> Returns initialized module object.
72 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> STATUS_SUCCESS if the module was loaded successfuly during the call.
73 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="captive-ModuleList-function-disable-find"></a>captive_ModuleList_function_disable_find ()</h3><pre class="programlisting">G_CONST_RETURN gchar* captive_ModuleList_function_disable_find
74                                             (gconstpointer ExportAddress);</pre><p>
75
76 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ExportAddress</tt></i> :</span></td><td>
77 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>
78
79
80 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="captive-Module-GetExportAddress"></a>captive_Module_GetExportAddress ()</h3><pre class="programlisting">void*       captive_Module_GetExportAddress (const gchar *ModuleName_utf8,
81                                              const gchar *FunctionName);</pre><p>
82
83 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ModuleName_utf8</tt></i> :</span></td><td>
84 </td></tr><tr><td><span class="term"><i><tt>FunctionName</tt></i> :</span></td><td>
85
86
87 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="captive-PoQueueShutdownWorkItem-hooklist-invoke"></a>captive_PoQueueShutdownWorkItem_hooklist_invoke ()</h3><pre class="programlisting">void        captive_PoQueueShutdownWorkItem_hooklist_invoke
88                                             (void);</pre><p>
89
90 </p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="captive-apiref-init.html"><b>&lt;&lt; init</b></a></td><td align="right"><a accesskey="n" href="captive-apiref-macros.html"><b>macros &gt;&gt;</b></a></td></tr></table></body></html>