Skip to content

FindExeSection

Find a section in the binary image.

Declaration

Source position: exeinfo.pp line 55

  function FindExeSection(var e: TExeFile; const secname: string; 
                         var secofs: LongInt; var seclen: LongInt)
                          : Boolean;

Description

FindExeSection examines the binary that was opened with OpenExeFile (represented by e) and searches for the section named secname. If found, the section offset is returned in secofs and the section length (in bytes) is returned in seclen.

The function returns True if the section was found, False if not.

See also

Name Description
OpenExeFile Open an executable file