Welcome to MSDN Blogs Sign in | Join | Help

October 2006 - Posts

When reading from a string from the registry, most code I have reviewed assumes that it is NULL terminated and can use C runtime string functions like wcslen or wcscat on the buffer. Assuming the string is NULL terminated is a very bad idea and can lead Read More...
Yesterday I wrote about the two methods I use to refactor a virtual function and make sure that I find all of the derived implementations. In the entry I lamented that I would like to have the C# keyword override implemented in C++. Well, apparently it Read More...
As with many development projects, I had to refactor some code in KMDF. This refactor involved changing the signature of a virtual function to take additional parameters. The problem I faced is that C++ makes no distinction between declaring a new virtual Read More...
The KMDF model evolved over the entire development cycle. It was refined and refactored multiple times. A lot of WDM abstractions leak through the to the KMDF model. These leaks usually forced their way into the model because without them, KMDF cannot Read More...
If you want to download the server 2003 SP1 DDK without the KMDF bits, you can find an iso here . Read More...
Accidental fall throughs in a switch statement can lead to some nasty bugs. I have used the following banner for quite a long time to indicate that the fall through is intentional and not an oversite (this banner is also a part of the KMDF coding guidelines). Read More...
The addition of ntintsafe.h for detecting integer overflow/underflow is a great addition to the WDK. It unifies how everyone detects these math errors, leading to common code that anyone can pickup and see what it does...BUT, I have found it does have Read More...
...and I apologize for it. I got back from vacation this week. Jetlag for an adult is one thing, but jetlag affects a baby in a totally different way. Haven't had a full night of sleep in awhile and walking around like a zombie is tough work ;). Hopefully Read More...
Sorry about the lack of posts, things have been busy. I was sick with a stomach virus for the past 3 days and shipping Vista (e.g. debugging really nasty crashes ;) ) takes time away from my writing. Furthermore, I will be on vacation again ;). I will Read More...
 
Page view tracker