Sign In
A Hole In My Head
Doron Holan's musings on drivers and other nibbles and bits
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Coding Thoughts
Design Patterns
KMDF
WDF
WDK Docs
WDM
WinDBG/KD Fun
Archive
Archives
December 2010
(1)
August 2010
(1)
May 2010
(3)
February 2010
(2)
March 2009
(2)
February 2009
(1)
January 2009
(2)
June 2008
(1)
April 2008
(4)
March 2008
(6)
December 2007
(1)
November 2007
(2)
October 2007
(8)
July 2007
(2)
June 2007
(4)
May 2007
(3)
April 2007
(5)
March 2007
(6)
February 2007
(6)
January 2007
(7)
December 2006
(6)
November 2006
(11)
October 2006
(9)
September 2006
(8)
August 2006
(17)
July 2006
(15)
June 2006
(9)
May 2006
(16)
March 2006
(20)
February 2006
(17)
October, 2006
MSDN Blogs
>
A Hole In My Head
>
October, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
A Hole In My Head
Strings read from the registry are not guaranteed to be NULL terminated
Posted
over 6 years ago
by
Doron Holan [MSFT]
2
Comments
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...
A Hole In My Head
The override keyword can be used in C++ afterall (redux on refactoring virtual functions)
Posted
over 6 years ago
by
Doron Holan [MSFT]
4
Comments
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...
A Hole In My Head
How I refactor virtual functions
Posted
over 6 years ago
by
Doron Holan [MSFT]
6
Comments
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...
A Hole In My Head
Hindsight is 20/20, EvtDriverUnload should have not been in KMDF
Posted
over 6 years ago
by
Doron Holan [MSFT]
10
Comments
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...
A Hole In My Head
Another Server 2003 SP1 DDK link
Posted
over 6 years ago
by
Doron Holan [MSFT]
0
Comments
If you want to download the server 2003 SP1 DDK without the KMDF bits, you can find an iso here .
A Hole In My Head
Annotating fall through case statements in a switch
Posted
over 6 years ago
by
Doron Holan [MSFT]
6
Comments
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...
A Hole In My Head
Using ntintsafe.h is a great idea, but I don't know how readable the results are
Posted
over 6 years ago
by
Doron Holan [MSFT]
13
Comments
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...
A Hole In My Head
It's been a while since I last wrote...
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
...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...
A Hole In My Head
Programming notes, past and near future
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
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...
Page 1 of 1 (9 items)