OSRLogo
OSRLogoOSRLogoOSRLogo x Seminar Ad
OSRLogo
x

Everything Windows Driver Development

x
x
x
GoToHomePage xLoginx
 
 

    Thu, 14 Mar 2019     118020 members

   Login
   Join


 
 
Contents
  Online Dump Analyzer
OSR Dev Blog
The NT Insider
The Basics
File Systems
Downloads
ListServer / Forum
  Express Links
  · The NT Insider Digital Edition - May-June 2016 Now Available!
  · Windows 8.1 Update: VS Express Now Supported
  · HCK Client install on Windows N versions
  · There's a WDFSTRING?
  · When CAN You Call WdfIoQueueP...ously

Disabling Hard Error Pop-ups

A number of times recently we’ve seen discussions about how to disable hard error popups in a kernel driver.  For example, a driver that wishes to probe the floppy drive does not want a dialog box to pop up as a result of its probe.  This is easily achieved using the function IoSetThreadHardErrorMode, which will  ensure that the annoying dialog box does not appear.

 

Correct usage for this is:

{

    BOOLEAN oldHardErrorMode;

 

    oldHardErrorMode = IoSetThreadHardErrorMode(TRUE);

    // perform protected operation

    (void) IoSetThreadHardErrorMode(oldHardErrorMode);

}

User Comments
Rate this article and give us feedback. Do you find anything missing? Share your opinion with the community!
Post Your Comment

Post Your Comments.
Print this article.
Email this article.
bottom nav links