JCL Help:PeMapImgSections32@TStream@Int64@TImageNtHeaders32@TImageSectionHeaderArray

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Obtains an array containing all the PE image sections of a 32-bit PE image.

Pascal

 function PeMapImgSections32(Stream: TStream; const NtHeaders32Position: Int64; const NtHeaders32: TImageNtHeaders32; out ImageSectionHeaders: TImageSectionHeaderArray): Int64; overload;

Parameters

Parameters Description
Stream The stream where the PE image sections are stored.
NtHeaders32Position The position in stream where the PE image starts.
NtHeaders32 PE image header used to compute where the first PE image section starts.
ImageSectionHeaders Receives the array of PE image sections read from the stream.

Return Value

If successful, it returns the computed stream position where the first PE image section starts, otherwise -1.

Description

Reads from the given *Stream* the PE image sections of a 32-bit PE image that starts at the *NtHeaders32Position* position. The PE image header information is provided by the programmer using *NtHeaders32* and it is used by the function to compute stream position of the first PE image section.


About

Unit

JclPeImage


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