There is a new feature for virtual drivers only that the .inf can specify a
hardware ID in its [DriverInstall32]. When the driver is added to the Pnp
driver store, Pnp will create a new physical device object with this hardware
ID.
So you no longer need to do “devcon install foo.inf some\hardware-id” – you can
use the simpler “pnputil -a foo.inf”.
If you do the devcon command, you end up with both physical device objects, as
you observed.
If you are writing a driver for actual physical hardware, you need to remove
the [DriverInstall32] section so you don’t get a useless PDO.
________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on
behalf of Tim Roberts <timr@xxxxxxxxx>
Sent: Thursday, September 28, 2017 11:32:09 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Extra PDO
I've been writing drivers for a very long time, so I should know this, but I
don't.
I'm deriving a virtual audio driver from either SYSVAD or MSVAD (I have both in
prototype form until I decide). In the INF, I advertise a hardware ID, let's
say ROOT\MySample. I installed it with "devcon install xxx.inf ROOT\MySample".
Now, I have TWO PDOs: one for ROOT\MySample, and one for ROOT\MEDIA\0000. Both
appear in Device Manager. The SYSVAD sample limits itself to one instance, so
it fails AddDevice and I get an yellow bang in Device Manager.
How do I get rid of one of the two entries? Should I not have used "devcon
install" to install it?
—
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
******************
WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
URL to WDMAUDIODEV page:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cedeab0159d9a4b63103e08d50703f350%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636422635955523186&sdata=xCllucoKnYIqGR0%2FNxDudy4tCANz5wkblx9sLhyEne0%3D&reserved=0