Manual Overlay v0.1

This is an implementation of IShellIconOverlayIdentifier written in plain C and compiled with OpenWatcom.
Windows 2000 is the minimum requirement as the support for additional Overlay icons came with version 5.00 of Shell32.dll
Right now only 2000 and XP has been tested, a 64-bit build is coming soon that will be checked on Win7.

This DLL can offer up to 11 different overlays as this is the limit defined by MS and was never changed in the past 26 years.


Registration can not be done with Regsvr32!
Doing so will show a helpful error message explaining the correct way.

Use RUNDLL32 to (un)register this:

RunDLL32 manovlay.dll,RegisterOverlay N-N
RunDLL32 manovlay.dll,UnregisterOverlay N-N

N is a hex number ranging from 0 to A (10) to offer up to 11 overlays.
You can also use a single number instead.


The CLSID is:
{CDF3D269-9E96-409E-B8BF-A_63456C2067}
The _ is the number 0-A, same as above.


Configuring this is done via Regedit.
basecfg.reg is a sample to hide the shortcut arrow on all desktop icons by overriding it with a invisible icon.
Mind the absolute paths used there, also the referenced icon is blank on Windows XP (use blank.ico for Win2k)

The key "HKEY_LOCAL_MACHINE\SOFTWARE\T. Sosnow.\Manual Overlay" holds the Icon and priority settings, with the N being a number between 0-10. 
Changing these will require a explorer/process restart.
IconN is a required REG_SZ value specifying the full path to the Iconfile. (can be a container like DLL or EXE)
IconIndexN is a optional REG_DWORD defining which icon to use of the icon container. (default is 0, remove for ico files)
PriorityN is a optional REG_DWORD defining which priority to use. (number from 0 to decimal 100, default is 0=highest)
(Shortcut arrow priority is 10)

A subkey within named after the number 0-10 holds file wildcards, this will be read whenever the overlay status is requested.
There's no limitation on how much can be stored here and any changes here will be effective after refresh.
The value name is the absolute directory path and must be REG_SZ.
The actual value is the just the filename.
Both can contain DOS wildcards '*' and '?', multiple filenames can be passed by using '|' as delimiter.
So, for enabling it on DLL files that end with 32 and on OCX files with any name use "*32.dll|*.ocx".

If you want to it to be effective in a directory and all its subdirectories then you need to use two values:
?:\SomeDir	(this matches only SomeDir in the root of every drive but not any subdirectory within)
?:\SomeDir\*	(this only matches all subdirectories of SomeDir of above)

It is recommended to avoid putting too many entries there as for every query the whole subkey is enumerated till a match is found.


T. Sosnow. <t-sosnow@posteo.com>
Visit QWERTZ-tek at http://qwertz.w10.site/ for my other stuff
November 7, 2026
