Cannot find preview handlers even if apps are installed

561 Views Asked by At

I'm trying to preview files within my WinForms app. In this particular case, I have Office apps installed and I'm trying to preview xls or doc files.

I'm getting the previewer handler keys for all extensions by crawling the following registry keys:

"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PreviewHandlers"
"HKEY_CLASSES_ROOT\{0}\shellex\{{8895b1c6-b41f-4c1c-a562-0d564250836f}}"
"HKEY_CLASSES_ROOT\SystemFileAssociations\{0}\shellex\{{8895b1c6-b41f-4c1c-a562-0d564250836f}}"

With {0} being the file extension.

I do find registered preview handlers for pdf, txt or rtf using the first key above. On my machine I only have 12 preview handlers registered...

enter image description here

So for example for .doc and .docx I don't have a ShellEx stub:

enter image description here

However, I can't located the preview handlers for xls or doc. Outlook can easily show previews of these files with messages. If I follow the only value that makes sense, I would go to:

enter image description here

So where exactly are the preview handlers registered?

0

There are 0 best solutions below