Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 04 Apr 2008 13:16:49 +0200,    group: microsoft.public.platformsdk.shell        back       


Need help to get Windows Explorer to use my Thumbnail extension   
I have written a shell extension library (to extract music file 
attributes from .m4a files) which implements only the following four 
"new" Vista shell extension interfaces:

IThumbnailProvider
IPropertyStore
IPropertyStoreCapabilities
IInitializeWithStream

I have registered the dll using the following registry entries:

[HKEY_CLASSES_ROOT\.m4a\ShellEx\{E357FCCD-A995-4576-B01F-234630154E96}]
@="{9C04FB4E-95BD-477F-BB57-64AD0E16D116}"

[HKEY_CLASSES_ROOT\CLSID\{9C04FB4E-95BD-477F-BB57-64AD0E16D116}]
@="MP4 Property Handler (by Andrew Fiddian-Green)"

[HKEY_CLASSES_ROOT\CLSID\{9C04FB4E-95BD-477F-BB57-64AD0E16D116}\InprocServer32]
@="C:\\DEVELO~1\\MP4\\MP4SHE~1.DLL"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.m4a]
@="{9C04FB4E-95BD-477F-BB57-64AD0E16D116}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell 
Extensions\Approved]
"{9C04FB4E-95BD-477F-BB57-64AD0E16D116}"="MP4 Property Handler (by 
Andrew Fiddian-Green)"

When I open Windows Explorer, it correctly calls the methods of 
IInitializeWithStream, IPropertyStore and IPropertyStoreCapabilities and 
it displays the respective properties perfectly in the columns of the 
Explorer details view.

But when I switch to Explorer's Icons view, Explorer does NOT call the 
method of IThumbnailProvider; instead Explorer continues to display the 
small icon extracted from the file associated application (in this case 
iTunes).

I have tried lots of things without success and now I am at a total loss 
how to solve it. I can only think of two possible errors:

1) Is there is something wrong with or missing from the above registry 
entries?

2) Do I need to implement other Interfaces in addition to 
IThumbnailProvider, IPropertyStore, IPropertyStoreCapabilities and 
IInitializeWithStream? (For example some of the "old" property shell 
interfaces from Windows XP?)

Any help would be much appreciated.

Regards,
AndrewFG
date: Fri, 04 Apr 2008 13:16:49 +0200   author:   AndrewFG

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us