Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Override standard driver via Window Update

Tim_RobertsTim_Roberts Member - All Emails Posts: 13,964

Here's a question that I probably should know the answer to, but very few of my clients have ever gone through WHQL, so it has never come up.

Let's say I have a product in a standard device class, and it works OK with the standard driver, but for best results, my device needs special handling. So, I build a driver package, pass it through WHQL, and have it placed in the Windows Update driver library.

Now, if a user plugs in my device, the operating system is going to find a standard driver for it. Given that, is it even going to look in Windows Update to find my custom whiz-bang? Won't the system be satisfied with the standard driver, and not take the trouble to look online? If it did a Windows Update scan every time I plugged in a USB stick or webcam, device installation would take forever, wouldn't it?

Peter can probably guess what I'm talking about here.

Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

Comments

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,598
    During install pnp will query WU for driver packages to include in the search. The query doesn’t happen on every plug in, just during installation and when querying for updates. You could easily see the class driver installed first and then your better matching driver installed later (machine is offline during initial install, update occurs later when online).
    d
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,490

    To add to what Mr. Holan said, of course the user can always go into Device Manager and right click “update driver” which will also trigger the WU search.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,964

    That's true, but we all know that real world users are too stupid to be trusted with a procedure that complicated. ;)

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,598

    If it is marked as a critical update, it will get pushed down and installed via WU (assuming it is the best ranked driver package) without user intervention

    d
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,490

    we all know that real world users are too stupid to be trusted with a procedure that complicated

    Well, yes... ordinarily so. But it's documentable. And far easier than "go download this package and install this driver" at least. Or, you know, "edit the Registry"... ;-)

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!