<trclass="memdesc:af50ab222af554fc2398a78728c134145"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes the resource reader. <ahref="#af50ab222af554fc2398a78728c134145">More...</a><br/></td></tr>
<trclass="memdesc:a74d047ffc2e95da0764413735ba0b592"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Locates a resource in a module by its ID. <ahref="#a74d047ffc2e95da0764413735ba0b592">More...</a><br/></td></tr>
<divclass="textblock"><p>A reader for resources stored in PE images mapped into another process. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="classcrashpad_1_1PEImageReader.html"title="A reader for PE images mapped into another process. ">PEImageReader</a></dd></dl>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>This method is similar to <code>FindResourceEx()</code>, but it operates on modules loaded in a remote process’ address space. It is not necessary to <code>LoadLibrary()</code> a module into a process in order to use this method.</p>
<p>No support is provided at present for locating resources by <em>type</em> or <em>name</em> using strings as opposed to integer identifiers.</p>
<p>Languages are scanned in the order determined by GetEntryFromResourceDirectoryByLanguage().</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">type</td><td>The integer identifier of the resource type, as in the <code>lpType</code> parameter of <code>FindResourceEx()</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">name</td><td>The integer identifier of the resource, as in the <code>lpName</code> parameter of <code>FindResourceEx()</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">language</td><td>The language of the resource, as in the <code>wLanguage</code> parameter of <code>FindResourceEx()</code>. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">address</td><td>The address, in the remote process’ address space, of the resource data. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">size</td><td>The size of the resource data. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">code_page</td><td>The code page used to encode textual resource data. This parameter is optional.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, with the out parameters set appropriately. <code>false</code> if the resource was not found, without logging any messages. <code>false</code> on failure, with a message logged. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">module_subrange_reader</td><td>The reader for the module. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">resources_directory_entry</td><td>The module’s <code>IMAGE_DATA_DIRECTORY</code> for its resources area. This is taken from the module’s <code>IMAGE_OPTIONAL_HEADER::DataDirectory</code> at index <code>IMAGE_DIRECTORY_ENTRY_RESOURCE</code>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> on failure with a message logged. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>snapshot/win/pe_image_resource_reader.h</li>
<li>snapshot/win/pe_image_resource_reader.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">