Unit IcoTypes |
Classes |
Functions |
Types |
ICONDIR
IconDirectoryEntry
IconDirEntryShort
IconDirEXE
IconDirICO
NameInfo
ResTypeInfo
TCursorIconInfo
TDOSHeader
TNEHeader
Constants |
Variables |
Functions |
Types |
ICONDIR = record
idReserved : Word;
idType : Word;
idCount : Word;
end;
IconDirectoryEntry = record
bWidth : Byte;
bHeight : Byte;
bColorCount : Byte;
bReserved : Byte;
wPlanes : Word;
wBitCount : Word;
dwBytesInRes : LongInt;
dwImageOffset : LongInt;
end;
IconDirEntryShort = record
bWidth : Byte;
bHeight : Byte;
bColorCount : Byte;
bReserved : Byte;
wPlanes : Word;
wBitCount : Word;
dwBytesInRes : LongInt;
wID : Word;
end;
IconDirEXE = recordIn an icon resource within an .EXE or .DLL file, the last field is replaced by a Word that represents the ID of this image in the resource table
idReserved : Word;
idType : Word;
idCount : Word;
idEntries : ARRAY[0..11] OF IconDirEntryShort;
end;
IconDirICO = record
idReserved : Word;
idType : Word;
idCount : Word;
idEntries : ARRAY[0..11] OF IconDirectoryEntry;
end;
NameInfo = record
niOffset : Word;
niLength : Word;
niFlags : Word;
niID : Word;
niHandle : Word;
niUsage : Word;
end;
ResTypeInfo = record
rtTypeId : Word;
rtResourceCount : Word;
rtReserved : LongInt;
end;
TCursorIconInfo = record
HotSpotX : Word;
HotSpotY : Word;
Width : Word;
Height : Word;
WidthBytes : Word;
Planes : Byte;
BitsPix : Byte;
end;
TDOSHeader = ARRAY[0..$3F] OF Byte;details of DOS header structure aren't important to us, so we just read the first 64 (40h) bytes
TNEHeader = record
Signature : Word;
LinkerVersion : Byte;
LinkerRevision : Byte;
EntryTableRelOffset : Word;
EntryTableLength : Word;
Reserved : LongInt;
Flags : Word;
AutomaticDSegNumber : Word;
LocalHeapSize : Word;
StackSize : Word;
CSIP : Pointer;
SSSP : Pointer;
SegmentTableNumEntries : Word;
ModuleReferenceTableNumEntries : Word;
NonresidentNameTableSize : Word;
SegmentTableRelOffset : Word;
ResourceTableRelOffset : Word;
ResidentNameTableRelOffset : Word;
ModuleReferenceTableRelOffset : Word;
ImportedNameTableRelOffset : Word;
NonresidentNameTableOffset : LongInt;
NumberOfMovableEntryPoints : Word;
ShiftCount : Word;
NumberOfResourceSegments : Word;
TargetOS : Byte;
AdditionalInfo : Byte;
FastLoadAreaOffset : Word;
FastLoadAreaSectors : Word;
Reserved2 : Word;
ExpectedWindowsVersion : Word;
end;
Constants |
Variables |