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..

James McNellis
  • 348,265
  • 75
  • 913
  • 977
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236

1 Answers1

1

Have a look at the accepted answer in this StackOverflow question: 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.

Community
  • 1
  • 1
dthrasher
  • 40,656
  • 34
  • 113
  • 139