-1

Just like Dropbox does, I'd like to show if a file is backed up using the icon overlay. How could this be done, without human intervention and regarding a specific computer so it doesn't have to be distributable.

This question regards only how to add/change this icon small overlay, not how to check if the files are backed up.

I am aiming at Windows 7 at the moment.

  • Icons and Icon Overlays – Seth Dec 13 '16 at 14:03
  • Why the downvote? – quimnuss Dec 13 '16 at 14:38
  • Thx @Seth, I'll take a look on how to achieve it. – quimnuss Dec 13 '16 at 14:51
  • My guess would be because it's not really that good of a question. You didn't include much/any information on what you've tried or what your research so far showed. Though a plus is that you narrowed it down a bit. Depending on how you approach this question (see also the reference I linked) you might be better of asking on Stackoverflow if you need to ask about specific code. I didn't vote so it's just my guess. – Seth Dec 14 '16 at 7:06
  • I was more interested in the knowledge than the implementation (which I'm gonna do myself), so superuser it was. – quimnuss Dec 14 '16 at 10:27
1

If you look at the reference Icons and Icon Overlays or more specifically How to Create Icon Handlers and How to Implement Icon Overlay Handlers you will see that you need to implement a DLL/COM Component.

Said DLL needs to implement certain interfaces (IUnknown and IShellIconOverlayIdentifier as far as I can tell) and will be called by the Windows explorer process upon displaying an icon. For this to happen you need to create an entry in the registry. As you probably want that overlay to be displayed for all types of files you will probably need to register for a general file type.

Later on GetOverlayInfo will be called to register your icon and IsMemberOf to indicate whenever or not you want your overlay to be displayed.

As for identifying files or storing information about them you could use an Alternate Data Stream though that would mean it would only/mostly work for NTFS and as you said is not really part of your question.

If you look at this help article for DropBox you will see that the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers could/would also be important in order to decide which icons are going to be displayed.

  • That's the answer to my question – quimnuss Dec 14 '16 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.