Use GetThumnailImage to get a TImage of a thumbnail.
The function returns true if the thumbnail was generated successfully and false otherwise.
GetThumbNailImage generates a thumbnail of the current file and assigns it to he Image that was passed as argument. The size of the generated Thumbnail may be adjusted using the Width and Height property of the Image. The function returns true if the thumbnail was generated successfully and False otherwise.
Additionally a shell extension for handling the specific file type must be installed. This is usually the case for common file types like GIF or JPEG files, but may be not the case for more exotic formats.
If you call this function fro a thread, COM must be initialized using CoInitializeEx(). For informations about CoInitializeEx() see: http://msdn.microsoft.com/en-us/library/ms695279%28VS.85%29.aspx
The following code generates a thumbnail for the file in the variable FilePath. If the thumbnail could not be generated, the image is made invisible.