How do I dump out a string?

The topic came up a while back on one of our aliases – How can I dump out a string? There are a lot of ways do this in the debugger and there are also debugger extensions that will help out with.  What most people in WinDBG do is us the “du” command for Unicode…


What does High Performance Mean?

Over my years in PFE and Microsoft as a whole I have worked on some REALLY cool websites and applications that are used around the world and drive a lot of business.  Getting work on these cool projects is one of the main reasons that I love what I do.  Getting to see what cool…


Passing a Managed Function Pointer to Unmanaged Code

I was working with a customer a while back and they had a situation where they wanted to be able to register a managed callback function with a native API.  This is not a big problem and the sample that I extended did this already.  The question that arose was – How do I pass…


IIS and Hyper-V

The other day the topic came up about best practices with IIS and Hyper-V.  One of our team mates pointed out the following links which are an interesting read: These go over the migration of MSDN/TechNet infrastructure over to Hyper-V.  Cool stuff!


Windows Server 2003 Service Pack 2 and 24-bit Color TS Connections

Okay this is a really weird one!  When you install Service Pack 2 on Windows Server 2003 you can no longer connect using MSTSC via Terminal Services (TS)/Remote Desktop(RDP) with a 24-bit color setting.  For the customer I was working with this meant that the applications they are hosting on those servers did not look…


Combining NetMon CAP Files

Today I was working on a problem that we thought was network related.  That meant it was time to try out some of those NetMon skills.  NetMon is the Microsoft Network Packet Capture and Analysis tool that is similar to WireShark/ethereal and can the current 3.2 version can be download for free from here -…


.NET Framework 2.0 Service Pack 2

I have worked with several customers that want .NET Framework 2.0 SP2 but do not want to either require their customers to install .NET Framework 3.5 w/ SP1 or do not want to do it themselves. Well due to the way it was packaged up until this point that was the only way to get…


Windows Error Reporting (WER) Web Service

I have long thought that one of the coolest features of the Windows OS for developers is the Windows Error Reporting infrastructure (with roots in Dr. Watson).  You can have your application upload dumps to the WinQual portal – One of the problems though has always been getting those dumps off of the WER…


Best Practice – <GeneratePublisherEvidence> in ASPNET.CONFIG

Best Practice Recommendation Add the following line to your ASPNET.CONFIG or APP.CONFIG file: <?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <generatePublisherEvidence enabled="false"/> </runtime> </configuration> Note the ASPNET.CONFIG file is located in Framework Directory for the version of the Framework you are using.  For example for a 64-bit ASP.NET application it would be: c:\Windows\Microsoft.NET\Framework64\v2.0.50727 For a 32-bit application…


Why is my Window Grayed Out?

Starting back in Windows 2000, if I recall correctly, the OS added a feature to try and handle unresponsive windows.  The idea is that if an application hangs we do not want the window that is associated with that application to block other stuff that the user is trying to do.  This feature has been…