roybj
roybj

Reputation: 278

How to programmatically add indications to window file's icon

I am sorry, but I couldn't come up with a better title. it is probably why I can't find anything about this. I wanted to know how to make change to windows files icon in code. for example: like source control show little indications on the bottom right of the icon for being checked in/out, or like backup software shows the file's backup status the same way, or simply like the shortcut indication on the icon.

Upvotes: 0

Views: 226

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 595320

You have to implement a Shell Icon Overlay Handler, which is a COM object that implements the IShellIconOverlayIdentifier interface. Refer to MSDN for more details:

Creating Shell Extension Handlers

How to Implement Icon Overlay Handlers

How to Register Icon Overlay Handlers

Upvotes: 3

Related Questions