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


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:

Before Posting...

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

How to unplug device after installed by inf file?

baltbalt Member Posts: 13

Hi all,
I want to change my audio driver to unplugged state by default after install inf file.
Can I change something in my .inf file? Or run some command line to do this?


  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,645
    What bigger problem are you trying to solve?

    Can you clarify what you mean by unplugged? That the mic is unplugged? That the device not show up in device manager?

    Is this a root enumerated device?
  • Tim_RobertsTim_Roberts Member - All Emails Posts: 14,111

    This is actually fairly easy. Your audio driver is required to support KSPROPERTY_JACK_DESCRIPTION to report the state of your jacks. If you don't support that, Audio Engine won't even talk to you. So, just set IsConnected to false in your default state. When you (presumably) get some event that represents "plugging in", you just change that to TRUE and fire a KSEVENT_PINCAPS_JACKINFOCHANGE event. Audio Engine will then requery for the descriptors and your device will magically appear.

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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers 24 January 2022 Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online