views:

176

answers:

2

I'm trying to create a content catalog program that is used to browse files. I want to show the thumbnail of the files like Explorer does in windows. How can I use C#.Net to extract the thumbnail that windows explorer shows into an instance of System.Drawing.Image?

I'm fairly certain I need to use this or something related to IExtractImage. Yet I'm pretty lost when it comes to doing anything with COM, pinvoke, interop etc..

+1  A: 

Well I found a solution. I included ThumbnailCreator.cs from the example on this page. It does exactly what I need.

Eric Anastas
A: 

Have a look at the accepted answer in this StackOverflow question: http://stackoverflow.com/questions/1439719/c-get-thumbnail-from-file-via-windows-api

The code you linked to at the vbaccelerator site is from 2003 and exhibits several memory management problems.

dthrasher