DllPreviewHandler for Windows Vista

At DevConnections this week, I wanted to demonstrate how easy it can be to write preview handlers for Windows Vista.  Using the framework I created for my article in the January 2007 issue of MSDN Magazine, I whipped up this little guy: [PreviewHandler(“MSDN Magazine DLL Preview Handler”, “.dll”, “{1A565B60-5BEA-463d-9413-9F201320A2BB}”)] [ProgId(“MsdnMag.DllPreviewHandler”)] [Guid(“42382862-EFA1-43dc-885A-D02D9B93B320”)] [ClassInterface(ClassInterfaceType.None)] [ComVisible(true)] public sealed…


Improving a Graphics Application with Tablet APIs

In May 2006, I wrote a small digital imaging application to produce what I like to call the “Pleasantville” effect.  If you’ve seen the movie, you can probably guess what I mean.  An image will be mostly grayscale, but certain aspects of the image, either certain colors or certain regions, will remain in vibrant color. …


Update to PreviewHandlerAssociationEditor for Vista x64

John Robbins emailed me tonight to let me know that he found a bug with my PreviewHandlerAssociatedEditor tool with Vista running on x64.  The tool first looks in the registry to see what handlers are available, and then it looks at all classes/extensions to see which have handlers registered with them.  I made the (faulty)…


Code for PreviewHandlerAssociationEditor

I’ve had several requests for the code for the PreviewHandlerAssociationEditor tool I put up a few weeks back to accompany my MSDN Magazine article on preview handlers.  I’ve updated the download to include the source for the project.  Enjoy!


Awesome new version of WebGuide for Vista Media Center

I’ve been using WebGuide with Media Center since the initial version, and Doug Berrett has always done a terrific job with it.  But with the newest version, WebGuide 4, he’s completely outdone himself.  It’s brilliant.  Works great with Vista, has a terrific interface, and it supports on-the-fly transcoding and streaming of recorded and live TV,…


Position Changer Add-In updated for Media Center in Windows Vista

Back in early 2005, I wrote an article for MSDN on implementing add-ins for Windows XP Media Center Edition 2005.  As part of that article, I implemented an add-in that made it easy to jump around in a recorded TV show, video, or music file using the remote control, simply by entering a time code using the…


Error 2869 when installing preview handlers MSI

If you’re getting an error with error code 2869 when installing the sample preview handlers associated with my preview handler article from the January 2007 issue of MSDN Magazine, make sure you’re following the directions in the README file.  Open a new console window with “Run as administrator”.  From the console window, change to the…


UnauthorizedAccessException in PDF Preview Handler

For my article on preview handlers in the January 2007 issue of MSDN Magazine, I wrote a sample preview handler for previewing PDF files.  This allows you to view PDF files in Outlook and in the Vista shell just as you would other document types for which there are built-in preview handlers, like for Word…