Welcome to shell: revealed Sign in | Join | Help

C++ "Refresh Thumbnail" verb implementation that uses the DropTarget method

File Details
Downloads: 670 File Size: 37.1kB
Posted By: chrisg Views: 1186
Date Added: 28 Oct 2006

This implements the “Refresh Thumbnail” verb that adjust the modified time of the files it is invoked on by a small amount in order to invalidate cached information about the items including thumbnails that is based on the modification time.

This sample demonstrates:

  • how to create a secondary verb that is registered on all file types in the system.
  • verb implementation using a COM local server (.exe) using the “Drop Target” verb invoke method
  • how to convert the data object representation of the items in shell items so you can program them.
  • The use of the name space walker to flatten the folder structure of the input, allowing the verb to work the items in the selected folders
  • This also contains a re-factoring of the standard helper routines that my samples use; creating a “Common” project that can be shared across other shell samples.

I hope to crate a blog post that walks through the details sample soon… let me know if you are interested.

Chris

Filed under: ,
Comments
 

David Blake said:

In my testing of the sample code, it took two hits with the refresh verb before Vista updated the thumbnail. It is almost as if Vista is looking for the second to roll over and not at anything smaller than a second. What is the smallest amount of time that is required to make the Shell decide to regenerate a thumbnail?
17 Feb 2008 4:54 PM
 

chrisg said:

any change in the modification date should cause the explorer to re-fetch the thumbnail.
17 Jul 2008 9:02 PM
 

Genral Eskimo said:

Hmm... very interesting. However, I ran into some trouble with it causing a crash with non-standard media packs (I understand this is supposed to be a sample, though) so I needed to remove it. I was able to remove it through the registry, but it would be nice if you had included some quick little uninstaller with it.
23 Nov 2008 5:57 PM

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.