IconHandler is a class for getting icons from files and the default associated icons by the extension of the file.
Questions tagged [icon-handler]
6 questions
1
vote
1 answer
What does _com_interfaces_ do?
I'm trying to understand the COM server examples of pywin32, and in win32comext/shell/demos/servers/icon_handler.py I saw the line
_com_interfaces_ = [shell.IID_IExtractIcon, pythoncom.IID_IPersistFile]
While that pretty clearly refers to an…

Tobias Kienzler
- 25,759
- 22
- 127
- 221
1
vote
0 answers
Icon Handler shows black icons
I am using Sharpshell to change my pdf and xlsx icons. Most of the times it works fine, but sometimes it shows black icons. Refreshing or restarting explorer has no effect on it.
Moreover, it works fine in certain Icon Views - for example in…

abs060
- 33
- 7
1
vote
0 answers
how to custom-draw an item in windows desktop window with win32 sdk
I have a file in windows desktop window. I want to custom-draw it instead of the normal icon and text. I almost implement it via the following steps,
1. make a dll in which the IExtractIcon interface is implemented, then register a icon handler…

kyorihira
- 19
- 1
0
votes
0 answers
When system restart in windows xp, the registered icon handler shell extension dll is not loaded by explorer.exe
masters:
I am trying to inject a dll into explorer.exe via registering a icon handler shell extension and put a file with the specified extension name in desktop.
It works fine in Win7 but not very well in windows xp. the phenomenon is:
when the…

kyorihira
- 19
- 1
0
votes
1 answer
How to restrict icon handler to be accessed by a particular process?
I have a icon handler for my custom file. How I can restrict icon handler functionality so that it can be called by explorer.exe threads only?
0
votes
1 answer
My Icon Handler crashes Explorer
I have a project using SharpShell for an Icon Handler. It peeks inside APKs in order to find and display their icon. I've got it working but there are a few side effects. If I try to rename an APK to something else, say from A.apk to B.apk, then…

Corey Ogburn
- 24,072
- 31
- 113
- 188