Class TFileData (unit ExtractU) |
Inherits from
TObject
CONSTRUCTOR Create(Filename : String);
- read-only
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 methodsindex 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
property AFactor : LongInt
property FileDataType : TFileDataType
read-only properties
property NumIco : LongInt
property NumImg : LongInt
property NumImgs : LongInt
property SizIco : LongInt
property SizImgs : LongInt
property StartIco : LongInt
property StartImg : LongInt
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
CONSTRUCTOR Create(Filename : String);
read-only
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
property AFactor : LongInt
property FileDataType : TFileDataType
read-only properties
property NumIco : LongInt
property NumImg : LongInt
property NumImgs : LongInt
property SizIco : LongInt
property SizImgs : LongInt
property StartIco : LongInt
property StartImg : LongInt
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