.NET Matters: Stream Pipeline

My latest .NET Matters column in MSDN Magazine is now available online.  In it, I discuss one approach to implementing a BlockingStream and using it to implement a StreamPipeline class.


.NET Matters: Deadlock Monitor

My latest .NET Matters in MSDN Magazine is now online here.  In it, I discuss what deadlocks are and ways to detect them when using monitors.


Latest column online: Tales from the CryptoRandom

It’s been a while since I’ve added to this blog; been very busy with some really cool stuff at work (more about that soon).  In the meantime, my latest .NET Matters column in MSDN Magazine is now online at http://msdn.microsoft.com/msdnmag/issues/07/09/NETMatters/default.aspx (cowritten with Shawn Farkas).  If you’re interested in randomness and cryptography, check it out.


Handling window messages in console apps

If you’ve ever wondered how to handle window messages in .NET console applications, check out my latest .NET Matters column in the June 2007 issue of MSDN Magazine, which just went online an hour or so ago.


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…


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!