Allows setting icons for standard Windows context menu items like "Copy" and "Paste." Designed for Windows 8 (or greater) x64.
This was originally written as an answer on Super User, earning a hearty bounty of 100 points from the very generous Sk8erPeter.
Put BMP files in the C:\shellicon
directory with the names found in IconInjector.cpp
. This works best if the images are saved with MS Paint.
Install the built DLL with regsvr32 ContextIcons.dll
. To remove, do regsvr32 /u ContextIcons.dll
.