| Class TFileData (unit ExtractU) |
TObject
| Constructors |
CONSTRUCTOR Create(Filename : String);| Functions |
FUNCTION ErrorString(ErrNum : Integer) : String;
function ExtractIconFromExe(IFilename : String;
IcoNum : Integer) : Integer;
function GetIconDirectory(IcoNum : Integer;
VAR Buffer : DataBuffer) : Integer;
function GetIconImage(IcoNum, ImgNum : Integer;
VAR Buffer : DataBuffer) : Integer;
function Verify : Integer;index of icon to extract
function GetNumImgs(Index: Integer) : LongInt;
function GetSizIco(Index: Integer) : LongInt;
function GetSizImgs(Index: Integer) : LongInt;
FUNCTION IcoFileFromExe(IFileName : String;
IconNum : Integer) : Integer;
function InitDataEXE : Integer;
function InitDataICO : Integer;
FUNCTION PullIconDirectory(IconNum : Integer;
VAR IDSize : Word; VAR Buffer : DataBuffer;
ForIcon: Boolean) : Integer;
FUNCTION PullIconDirectoryICO(VAR IDSize : Word;
VAR Buffer : DataBuffer; ForIcon: Boolean) : Integer;
FUNCTION PullIconImage(ImageNum : Integer;
VAR IDSize : Word; VAR Buffer : DataBuffer) : Integer;
FUNCTION PullIconImageIco(ImgNum : Word; VAR IDSize : Word;
VAR Buffer : DataBuffer) : Integer;| Properties |
property AFactor : LongInt
property FileDataType : TFileDataType
property NumIco : LongInt
property NumImg : LongInt
property NumImgs : LongInt
property SizIco : LongInt
property SizImgs : LongInt
property StartIco : LongInt
property StartImg : LongInt| Events |
| Variables |
fdAFactor : LongInt;
fdDate : LongInt;
fdName : String;
fdNumIco : LongInt;
fdNumImg : LongInt;
fdSize : LongInt;
fdStartIco : LongInt;
fdStartImg : LongInt;
fdType : TFileDataType;| Constructors |
CONSTRUCTOR Create(Filename : String);read-only
| Functions |
FUNCTION ErrorString(ErrNum : Integer) : String;
function ExtractIconFromExe(IFilename : String;
IcoNum : Integer) : Integer;read access function for indexed property NumImgs
function GetIconDirectory(IcoNum : Integer;
VAR Buffer : DataBuffer) : Integer;
function GetIconImage(IcoNum, ImgNum : Integer;
VAR Buffer : DataBuffer) : Integer;
function Verify : Integer;public methods
index of icon to extract
function GetNumImgs(Index: Integer) : LongInt;image size for standard single-image icon
function GetSizIco(Index: Integer) : LongInt;read access methods for indexed properties
function GetSizImgs(Index: Integer) : LongInt;size for standard single-image icon
FUNCTION IcoFileFromExe(IFileName : String;
IconNum : Integer) : Integer;
function InitDataEXE : Integer;
function InitDataICO : Integer;private methods
FUNCTION PullIconDirectory(IconNum : Integer;
VAR IDSize : Word; VAR Buffer : DataBuffer;
ForIcon: Boolean) : Integer;PE
FUNCTION PullIconDirectoryICO(VAR IDSize : Word;
VAR Buffer : DataBuffer; ForIcon: Boolean) : Integer;true if extracting for icon
FUNCTION PullIconImage(ImageNum : Integer;
VAR IDSize : Word; VAR Buffer : DataBuffer) : Integer;true if extracting for icon
FUNCTION PullIconImageIco(ImgNum : Word; VAR IDSize : Word;
VAR Buffer : DataBuffer) : Integer;buffer to hold resulting data
| Properties |
property AFactor : LongInt
property FileDataType : TFileDataTyperead-only properties
property NumIco : LongInt
property NumImg : LongInt
property NumImgs : LongInt
property SizIco : LongInt
property SizImgs : LongInt
property StartIco : LongInt
property StartImg : LongInt| Events |
| Variables |
fdAFactor : LongInt;offset of image resource table
fdDate : LongInt;file name
fdName : String;
fdNumIco : LongInt;align factor
fdNumImg : LongInt;number of icons
fdSize : LongInt;file date/time (for verification
fdStartIco : LongInt;file size (for verification
fdStartImg : LongInt;offset of icon resource table
fdType : TFileDataType;number of images