Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different icons for files with same extension but different content?

I have associated a certain xml-based file-type of mine (.xmlentity) to my app (.net) and I would like to have different icons based on content (root element name) of these files.

<note xmlns="mynamespace"></note> should have one kind of icon and

<notebook xmlns="mynamespace"></notebook> should have another.

Is this possible somehow without having different file-extensions?

Its okey if its only working on Windows 7.

like image 869
Andreas Zita Avatar asked Nov 27 '10 14:11

Andreas Zita


1 Answers

You are looking for Icon Handler. It is implemented as a shell extension. Unfortunately, MSDN does not give any icon-handler-specific sample code, but at least this article describes requirements for such shell extension. This article also can be useful: Creating Shell Extension Handlers.

like image 155
max Avatar answered Oct 24 '22 07:10

max