How to get file previews used by Windows Explorer in Windows Vista and seven?

I am developing a Delphi document management application, so somehow I am giving the user some functionality similar to Windows Explorer.

I would like to know if there is a way to get the preview used by Windows Explorer. For example, Windows Explorer creates a small thumbnail for a pdf document, for example, and displays it when the user chooses to view "large icons." Is there any way to get this preview?

MyTImage := GiveMePreviewForFile('C:\Test\File.pdf');
+4
source share
2 answers

@ user193655, using the IExtractImage interface is the way to go,this interface exposes methods that request a thumbnail image from a Shell folder

, .

alt text

+8

IExtractImage. IShellFolder IExtractImage, , .

+2

Source: https://habr.com/ru/post/1747163/


All Articles