Skip to content

TCoffResourceReader

COFF resource reader

Declaration

Source position: coffreader.pp line 36

type

  TCoffResourceReader = class(TAbstractResourceReader)
  protected
    function GetExtensions : string;
    function GetDescription : string;
    procedure Load;
    function CheckMagic : Boolean;
  public
    constructor Create;
    destructor Destroy;
    property MachineType: TCoffMachineType; {r}
  end;

Description

This class provides a reader for COFF object files containing resources.

COFF is the file format used by Microsoft Windows object files. Usually resources get stored in a object file that can be given to a linker to produce an executable.

After an object file has been read, MachineType property holds the machine type the object file was built for.

Remark:

This reader is not able to read full PE images. Use TWinPEImageResourceReader instead.

Properties

Member Visibility Description
MachineType read only public The machine type of the object file
See all Properties

Methods

Member Visibility Description
CheckMagic protected
Create public
Destroy public
GetDescription protected
GetExtensions protected
Load protected
See all Methods

See also

Name Description
TCoffResourceReader.MachineType The machine type of the object file
TAbstractResourceReader Base abstract resource reader class
TWinPEImageResourceReader PE image file resource reader
TCoffResourceWriter COFF resource writer