0

I want to change overlay Icon of file on the basis of some status. if file status get changed the overlay Icon should change. for example: If file is locked overlay icon related to locked should set & If release it should set different overlay icon.

MUKHTAR INAMDAR
  • 85
  • 4
  • 17

1 Answers1

0

To set overlay Icon needs to implement a IShellIconOverlayIdentifier interface

write registry entries in registry for COM dll registration and one more registry requires for overlay icon identifier registration see below:

Key:"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\TestShellIconOverlayIdentifiers"
with default value [CLSID_of_registered_DLL]

After this some functions need to call while registration to insert overlay Icons in system memory of already running instances of explorer for that I found the answer on below post. How can I programmatically refresh Windows Explorer?

See the function "bool RebuildIcons()" on TortoiseCVS - ShellUtils.cpp

Community
  • 1
  • 1
MUKHTAR INAMDAR
  • 85
  • 4
  • 17