JCL Help:PeMapImgSections

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a pointer to the header of the first section in an image.


Parameters

Parameters Description
NtHeader Pointer to the TImageNtHeaders record which specifies the mapped image for which to retrieve the header of the first section.


Return Value

If the function succeeds it returns a pointer to the TImageSectionHeader of the first section in the image. If the function fails it returns nil. Note that the returned pointer is valid only as long as the image remains mapped in memory.


Description

The PeMapImgSections function returns a pointer to a TImageSectionHeader record which describes the first section in the image file specified (indirectly) by the NtHeaders parameter. That pointer can be retrieved, for example, by using the PeMapImgNtHeaders function. For an example of how to use this function to traverse all the ections in an image see the implementation of the PeMapImgFindSection function.


About

Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page