Discussion:
Add virtual device into the PNP tree
(too old to reply)
shakti
2010-11-17 12:36:34 UTC
Permalink
Hi,

I'm trying to write a virtual USB stack. The arch for the same is:

Function driver
|
Virtual HUB driver ( VHUB )

The motive is to load a function driver for a non existent HW.
The VHUB is based on the WDK sample \src\general\event.

As an experiment, I'm sending an IOCTL to the VHUB from an app. On
receiving this IOCTL,
the VHUB creates a PDO for the device. Now I want to inform the Pnp
Manager about the new
device, using IoInvalidateDeviceRelations(). But since the first
parameter to this is
the PDO for the device, I can't use it, since I don't have the PDO for
virtual HUB.

Is this approach feasible?
How can I add my newly created device object into the PNP tree?

Any help is greatly appriciated.

Thanks
4***@email.com
2010-11-18 23:58:36 UTC
Permalink
Post by shakti
How can I add my newly created device object into the PNP tree?
Create a root device. This is usually done by installing an INF file.
Then you will have a PDO listed in device manager that you can attach
devices to.

Loading...