Introduction
An ICL file is a collection of Windows icons in one file. Icon editors of the 1990s used it to share icon sets, and it is still met in icon packs. Windows can pick an icon out of an ICL file in the Change Icon dialog, the same way it picks one out of a program or a DLL.
The file is not a new format at all: it is a Windows library holding only icon resources (Axialis says its code portion is empty), given a different extension. Older ICL files are 16-bit libraries; newer icon editors, such as Axialis IconWorkshop, write 32-bit ones.
Structure
A 16-bit ICL file is a New Executable (NE) file
and a 32-bit one a Portable Executable (PE). Both
start with an MS-DOS MZ header whose pointer at offset 0x3C
leads to the NE or PE header, and the resources of either
list the icons. Each icon is stored the way it is in a program: a group icon resource
that lists the sizes, and one icon resource per size holding the image, much like an
entry in an ICO file. See
Icon resources.
Not described
An icon library is an ordinary 16-bit (NE) or 32-bit (PE) executable holding icon resources; the icon resources page covers the icon parts and relies on the site’s executable pages for the container.
Known, not yet covered
- Viewer: there is no ICL plugin yet that presents the file as an icon library. The explorer’s EXE plugin already reads the NE and PE resource tables, shows each icon group with its images (matched by resource ID, as in the nID rule) and names such as
SHEETICON; what it does not show is each group’s icon number (its position, the number the Change Icon dialog uses), and it does not offer to save one group as an.icofile. - Reference: whether the
0x1000bit of an NE resource entry means “discardable” is not established (it is labelled unconfirmed on the NE resources page), and thewImageIndexof a cursor directory was not checked against real files.
Unknown
- Reference: which Language entry of a group or image Windows’ own icon extraction picks in a 32-bit (PE) library that holds several languages. The Microsoft PE text defines the Language level but not this choice; Wine takes the first entry (see In a PE library).
- Reference: that the Change Icon dialog numbers groups in
NAMEINFOorder is shown only by Wine’s reimplementation (exticon.c); Microsoft’sExtractIcontext does not say how Windows orders the groups. - Reference: what the code section of a 32-bit ICL looks like (no PE icon library was examined; the NE case,
ne_cseg0, was seen in two files).
Links
Software
- Windows – its Change Icon dialog picks icons out of ICL files
- Microangelo – icon editor and icon library manager (Windows)
Reference
- What is an Icon Library? – Axialis’s description of ICL files, 16-bit and 32-bit
- Microsoft Windows 3.1 SDK, Programmer’s Reference, Volume 4: Resources – chapter 6 (resource table) and chapter 7 (icon resources), scan on archive.org
- INF: Executable-File Header Format – Microsoft knowledge-base article on the NE format (Windows 3.00 Developer’s Notes)