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
  • 338,529
  • 73
  • 897
  • 968
Eric Anastas
  • 21,125
  • 34
  • 136
  • 229

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
  • 38,818
  • 33
  • 110
  • 137