WinClassicSamplesCS icon indicating copy to clipboard operation
WinClassicSamplesCS copied to clipboard

CloudMirror ThumbnailProvider doesn't provide thumbnails

Open PrimalZed opened this issue 1 year ago • 3 comments

The CloudMirror doesn't generate thumbnails using the ThumbnailProvider.

The Initialize method correctly gets called for each path, but the GetThumbnail doesn't seem to ever get called. Ultimately, the thumbnail does not load to the client.

image

I looked at #2, but that seems to be about the more general shell registration. The shell registration and registered handlers (or at least the custom command, I haven't tried the others) do work, including the call to ThumbnailProvider.Initialize.

C++ version

Running the latest from Windows-classic-samples gets thumbnails in the file explorer. (Oddly, breakpoints in GetThumbnail are not hit, ~and wprintf added to it does not show up in the console~. I don't know whether that means it's actually getting the thumbnail in some other way, or that it's some threading change that runs the GetThumbnail method in some other context outside the debugger/console.) image

PrimalZed avatar Aug 27 '24 01:08 PrimalZed

A quick correction: The windows-classic-samples c++ version does log from wprintf in the GetThumbnails. While it does not hit breakpoints, neither does it hit breakpoints in Initialize. There might be something about breakpoints with C++ that I'm not getting here.

PrimalZed avatar Aug 27 '24 02:08 PrimalZed

There are so many problems with that project conversion. Sorry. Personally, I would look to the ShellIconExtractor class if you need that support.

dahall avatar Sep 04 '24 17:09 dahall

A quick correction: The windows-classic-samples c++ version does log from wprintf in the GetThumbnails. While it does not hit breakpoints, neither does it hit breakpoints in Initialize. There might be something about breakpoints with C++ that I'm not getting here.

It may be a COM-Conversion Issue. These are ridiculously hard to track down. Trust me 🌝

tajbender avatar Feb 11 '25 20:02 tajbender