Skip to content

Latest commit

 

History

History
 
 

desktop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Desktop Integration

Copyright (C) 2017-2018 David Capello

Distributed under MIT license

Windows

On Windows we have to create a COM server in a DLL to provide thumbnails. The DLL must provide an IThumbnailProvider implementation. Our implementation is in desktop::ThumbnailHandler class, the most interesting member function is ThumbnailHandler::GetThumbnail(), which should return a HBITMAP of the thumbnail.

Registering the DLL

If you distribute your app in an installer remember to use regsvr32.exe to register your DLL which will call your DLL's DllRegisterServer(), a function that must create registry keys to associate your file type extension with your thumbnail handler.

More information in the MSDN.