[Overview][Types][Procedures and functions][Index] Reference for unit 'exeinfo' (#rtl)

TExeFile

Structure describing the binary.

Declaration

Source position: exeinfo.pp line 26

type TExeFile = record

  f: file;

  

File handle to the executable image on disk.

  size: Int64;

  

Size of the executable

  isopen: Boolean;

  

Is the file handle f open ?

  nsects: LongInt;

  

Number of sections in the binary

  sechdrofs: ptruint;

  

Section header offset

  secstrofs: ptruint;

  

Section strings offset.

  processaddress: ptruint;

  

Used on BEOS only

  FunctionRelative: Boolean;

  

Internal variable

  ImgOffset: ptruint;

  

Image offset

  filename: string;

  

Filename of binary file

  buf: array [0..4095] of Byte;

  

Buffer used in internal read operations

  bufsize: LongInt;

  

Size of internal buffer

  bufcnt: LongInt;

  

Number of bytes in the buffer.

end;

Description

TExeFile is a record used in the various calls of this unit. It contains a file descriptor, and various fields that describe the executable.

The structure of TExeFile is opaque, that is, one shouldn't rely on the exactness of this structure, it may change any time in the future.

See also

OpenExeFile

  

Open an executable file

CloseExeFile

  

Close a previously opened file.


Documentation generated on: Nov 16 2015