DllIconHandler - Shell Extension
JP Mortiboys, 2001

Overview
--------

This icon handler adds per-file icons for dll, ocx and cpl files.
If the file contains any icons, the first icon will be used (as if "%1" were the DefaultIcon). If it doesn't, a default icon will be used.

Installation
------------

Copy 'DllIconHandler.dll' to the system directory (c:\windows\system or c:\winnt\system32 in most cases).
Create/Open 'IconFileList.ini' in the system directory. Paste the following block of text into the file (not including the asterisks).
************************************************************************
[dll]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=0

[cpl]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=1

[ocx]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=2
************************************************************************

Install the 'DllIconHandler_Install.reg' file (double-click the icon). Reboot.

Tweaking
--------

By default, the icon used for dll files with no icons is the icon in the DllIconHandler.dll file. To change this, create/edit 'IconFileList.ini' in the Windows directory (c:\Windows or c:\winnt in most cases) as follows:

[dll]
Default_IconFile=path/to/new/icon.ico
Default_IconIndex=index

[cpl]
Default_IconFile=path/to/new/icon.ico
Default_IconIndex=index

[ocx]
Default_IconFile=path/to/new/icon.ico
Default_IconIndex=index

(The index is used in the case of .icl or .dll files, if you're using an .ico then just ignore it or put 0).

Example: The default settings are

[dll]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=0

[cpl]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=1

[ocx]
Default_IconFile=DllIconHandler.dll
Default_IconIndex=2

Comments and such are welcome - write to me at jpm@programmer-general.com
Check out www.programmer-general.com for more of my shell extensions.