Add an exe as File Explorer preview handler

shellwindows

Is it possible to register a normal exe file which displays a window as Windows File Explorer preview shell extension?

More specified: If you have an exe, can you just register that exe as Preview Pane in the File Explorer or is this only possible if the exe is built for doing previews?

If it is possible, how?

Best Answer

Negative answer: A preview handler is specially programmed to do its job. A "normal" executable does not implement the required interfaces.

From the Microsoft article Preview Handlers and Shell Preview Host:

Preview Handler Architecture

A preview handler is a hosted application. Hosts include the Windows Explorer in Windows Vista or Microsoft Outlook 2007. Hosts implement IPreviewHandlerFrame as a method of communication between the preview handler and the host.

The preview handler itself implements these interfaces:

  • IInitializeWithStream
  • IObjectWithSite
  • IOleWindow
  • IPreviewHandler
  • IPreviewHandlerVisuals (Optional)
Related Question