OK, I've tried the sample program (modified to use CLSCTX_LOCAL_SERVER only) on a few 'real-life' end-user PCs.
It worked on everything I tried - including Win 10 + Adobe Reader XI, Win 10 + Adobe Reader DC, Win 7 + Adobe Reader DC. Mainly 64 bit OSs, plus a couple of Win 7 32bit.
Other common apps (Word, Excel, etc.) worked too.
I think I'll follow Olaf's suggestion and use CLSCTX_LOCAL_SERVER only, then if an error occurs try CLSCTX_INPROC_SERVER.
Here is the debug output from a PDF preview...Code:using isi sFile=C:\Test\00000017.PDF sExt=.PDF Got handler CLSID; attempting to create IPreviewHandler IInitializeWithFile not supported. IInitializeWithItem not supported. Attempting to use IStream Got file size=405169 QI.hr=0 SetWindow hr=0 DoPreview hr=0




Reply With Quote
