InitializeSecurityContext() and SEC_E_INSUFFICIENT_MEMORY

I’ve been doing some work recently with the Security Support Provider Interface (SSPI) API in Windows; particularly with the Kerberos package. I had used SSPI a lot before (see my WSSPI library for stuff I did with it years ago), but it had been mostly done with NTLM and not...

Converting a .PPTX File to .ODP Format

I had a PowerPoint 2007 presentation this morning that I needed to convert into the OpenDocument Presentation format, to make it usable in OpenOffice 3.0. It was a fairly simple presentation, with no animations or anything, just text and some figures. My first attempt was to simply use the PPTX...

Comparing Text and Binary Serialization in WCF

A question I recently ran into asked about comparing message sizes when using the default Text Message Encoder used by most bindings in WCF with the Binary Message Encoder used by the TcpBinding, without going through the entire WCF stack and having to use a protocol analyzer. Here’s a sample...

Current Line Highlighting for VS2010

I’ve created another simple extension for Visual Studio 2010 beta 1 that will highlight the current line the caret is in with a different background color. Here’s a screenshot of the extension in action: <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="vs10_clh_1" border="0" alt="vs10_clh_1" src="http://winterdom.com/wp-content/uploads/2009/06/vs10_clh_1_thumb.png" width="640"...

Classifier Sample Update

I’ve been extending my Flow Control Classifier sample extension for Visual Studio 2010, and based on the new features, I decided to rename it to KeywordClassifier instead. I’ve renamed the GitHub repository as well, so make sure you’re heading to the new one. I will continue playing with this, but...

Flow Control Classifier Sample

I’ve been doing my first experiments with extending Visual Studio 2010 beta 1 using the recently released SDK. It’s been lots of fun, but it can also be frustrating at times because the new extensibility model is huge and you don’t always know where to get started. My first sample...

Watch Notes in the VS2010 Debugger

One interesting new feature I noticed in the Visual Studio 2010 beta 1 debugger: You can now turn watch expressions into little detached “post-it”-like notes that float around your debugger window. I’m calling them Watch Notes for now, since I have no clue what the feature is actually called. <img...

VS2010 Editor And Explicit Background Colors

In general terms, I’m liking the Visual Studio 2010 beta 1 experience quite a bit; there are lots of goodies in there. The Text Editor shows a lot of promise, though it’s still a bit on the buggy side :). I’ve noticed something that’s nagging me a bit, and that’s...

Oslo SDK May 2009 CTP

The May 2009 CTP drop of the Microsoft Oslo SDK was released today. I was just installing it to check out what’s new, and thought it was a bit funny how Oslo’s minimalistic UI design extends all the way to the CTP installation program: <img style="border-bottom: 0px; border-left: 0px; display:...

VirtualBox, VirtualPC and Crashes

I take advantage of both VirtualBox and VirtualPC as core parts of my development environment. I keep several sets of Virtual Machines around on both platforms that I use for core development (writing code) and testing on different platforms. Because of this, I’m constantly switching between the two, depending on...