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)
July, 2006
MSDN Blogs
>
A Hole In My Head
>
July, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
A Hole In My Head
How can I view the KMDF log for my driver?
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
A lot of developers have a great experience with KMDF, but then they sometimes hit a wall. They add a chunk of code and the drivers start failing because something in the new code was not implemented correctly. The first question that comes to mind is...
A Hole In My Head
Threaded and non-threaded PIRPs
Posted
over 6 years ago
by
Doron Holan [MSFT]
5
Comments
Broadly speaking, there are two (*) types of PIRPs in Windows. By "type" I do not mean the MajorFunction (e.g. IRP_MJ_Xxx) of the PIRP. Rather, a PIRP can be categorized as either threaded or non-threaded. Hopefully I will be able to introduce and clearly...
A Hole In My Head
Can I send synchronous I/O on an asynchronous (OVERLAPPED) handle?
Posted
over 6 years ago
by
Doron Holan [MSFT]
2
Comments
The short answer isthat you can't ;). Once you have opened a HANDLE by specifying FILE_FLAG_OVERLAPPED, you must provide an OVERLAPPED structure pointer to any HANDLE based API that requires it. If you don't provide the pointer, the results are undefined...
A Hole In My Head
A friend of mine is interviewed by Major Nelson
Posted
over 6 years ago
by
Doron Holan [MSFT]
0
Comments
Totally unrelated to kernel model programming...my friend Scott Selfon, a Senior Audio Specialist (according to Outlook ;) ) on the Xbox 360 team, was interviewed by Major Nelson . It is a pretty interesting conversation about audio from how it is created...
A Hole In My Head
Dr Dobbs article related to Windows PnP
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
Dr Dobb's has an article, Device Trails: How Windows remembers your connection , that I just found out about. Nothing earth shattering, but an interesting read from a security and auditing perspective.
A Hole In My Head
Why is my completion routine's DeviceObject NULL?
Posted
over 6 years ago
by
Doron Holan [MSFT]
0
Comments
At first glance, this is a "what were they thinking when they designed this?" type of issue, but after a little inspection it becomes a little more clear. So, when would the PDEVICE_OBJECT DeviceObject parameter to your completion routine ever be NULL...
A Hole In My Head
Apple's Secure Coding Guide
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
While I don't write apps or drivers for the Macintosh, some of you out there probably do. If you have not already seen it, they posted a Secure Coding Guide ( PDF ) which is focused on OS X, but has generic recommendations as well. I just started reading...
A Hole In My Head
Debugger commands (stack frame navigation) that makes my life easier
Posted
over 6 years ago
by
Doron Holan [MSFT]
9
Comments
One thing that I have always found clunky is stack frame navigation in windbg/kd. Previously, I thought you had only a couple of options. The first option, if you are using WinDBG, is that you can bring up the call stack window. I have found that...
A Hole In My Head
The duality of IoRegisterPlugPlayNotification and when you should call it
Posted
over 6 years ago
by
Doron Holan [MSFT]
0
Comments
IoRegisterPlugPlayNotification() is a pretty scary looking function at first glance. The documentation is not that simple either. So what does this function do and why do you want to use it? IoRegisterPlugPlayNotification() does 2 things (OK 3, but the...
A Hole In My Head
New debugger package is now public
Posted
over 6 years ago
by
Doron Holan [MSFT]
2
Comments
You can download the package from WHDC . It is hard for me to keep track of when they go public, we get internal drops more often and so it is hard for me to know when fixes see the (external) light of day. Enjoy.
A Hole In My Head
An easy way to leak pool and locked pages (e.g. sometimes you have to free Irp->MdlAddress)
Posted
over 6 years ago
by
Doron Holan [MSFT]
3
Comments
Did you know that there are times when you must free Irp->MdlAddress in your driver? Even more importantly, not only freeing Irp->MdlAddress , but the entire chain of MDLs? But even more importantly then freeing the entire chain, but also unlocking...
A Hole In My Head
WHDC links for platform and driver writing blogs
Posted
over 6 years ago
by
Doron Holan [MSFT]
0
Comments
This is pretty cool, WHDC has a page linking my blog and a bunch of other Microsoft blogs relating to the kernel, driver writing and the platform.
A Hole In My Head
Trivia: what's in a name?
Posted
over 6 years ago
by
Doron Holan [MSFT]
1
Comments
Ever notice that the KMDF DDIs do not actually have KMDF in their names? Well, there is an interesting history behind that. When the project started, the framework was called DFX, as in Driver Frameworks (X), similar to how MFC was originally called...
A Hole In My Head
\Device\QuestionsForMe
Posted
over 6 years ago
by
Doron Holan [MSFT]
388
Comments
I have been getting quite a few personal emails with specific questions on how to write a driver or how to a specific technology works or how to fix a particular problem. I welcome the emails, but I want these discussions to be public so that they are...
A Hole In My Head
Debugger commands (!error, .enable_long_status) that makes my life easier
Posted
over 6 years ago
by
Doron Holan [MSFT]
5
Comments
One thing you learn very quickly when writing a driver is that NTSTATUS is used almost everywhere . The consistency is nice, especially compared to user mode where errors can be an HRESULT , LONG , or DWORD (yes they are all the same underlying type,...
Page 1 of 1 (15 items)