tags:

views:

755

answers:

2

I want to read all thumbnails from a folder with images in Windows XP. But if I read image file to get thumbnail, it seems a bit slow, so I wish I can first read the windows image thumbnail cache:thumb.db. Is there any lib in c++ or c to read thumbnails from thumb.db.

+5  A: 

The Thumbs.db file is stored in OLE Compound Document format, the same format that many Microsoft Office products use.

You could also try to look into ThumbsDBLib. It is in C# but you can probably see what they do to read the data and convert it to C++.

Note: Windows Vista and later doesn't use Thumbs.db. See the IThumbnailCache interface for Vista and later.

For Vista and later they are stored here: %homedrive%\Users\%username%\AppData\Local\Microsoft\Windows\Explorer

Brian R. Bondy
Thank you Brian!I convert the c#code into c++, it works!. BTW my English Name is also Brian *_*
+1  A: 

You might find this useful:

ThumbsDBLib in C++

http://www.windameister.org/blog/index.php/thumbslib-in-cpp

Thanks!!!!I used to convert the C# code into C++, but failed, I am not familar