How to create a ThumbnailProvider with IInitializeWithFile

Amber Ream 1 Reputation point
2021-10-26T17:11:13.383+00:00

I started with the RecipeThumbnailProvider sample described here: https://video2.skills-academy.com/en-us/windows/win32/shell/building-thumbnail-providers

For my use case, I need the path to the file rather than the stream, so I tried to tweak the sample from using IInitializeWithStream to use IInitializeWithFile.
The initialize method is never called.

I tried disabling process isolation with no luck.

How can I implement a ThumbnailProvider, initializing with a file path?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
747 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,612 questions
{count} votes