Code samples from DevConnections talk

Thanks to everyone who attended my talks yesterday at DevConnections.  For those of you who were at the talk on using managed code to access some of the native-only APIs in Vista, you can get the code samples I used for the demos here.  The slides from both talks should be available on the conference’s…


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…