Hello,

I have a virtual device PNP driver. The problem is that dpinst installs it to driver cache and after that waits for an event when the "device" will be plugged in (this will never happen, as there is no physical device, it is a virtual drive emulation software :>).

The best results I got from google for now is that there is a function that forces this kind of drivers to be loaded up - InstallRootEnumeratedDriver

I have not done all the reading there is and this topic is a quick question if anyone has already been struggling with the same situation and would like to share a solution.

Thanks.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Answer by Google ;)

Since it is a virtual device, you'll need to programmatically create a devnode for it before you attempt to install the driver using the DIFx tools. Guessing the same for DPinst.
The source code for the devcon tool ships in the DDK and has an example of how to create a devnode programmatically. Look for the implementation of the "devcon install" command and you'll find it there.
Once you've created the devnode you can use the DIFx tools to install the driver on it. Or you may want to simply use devcon if that suits you better.

As far as I know, the DIFx tools will not automatically create this devnode for you.
Answered 01/15/2012 by: AngelD
Red Belt

Please log in to comment
0
Thank you for taking your time to look into it.

Post temporary edited.


ORIGINAL: AngelD

Answer by Google ;)

Since it is a virtual device, you'll need to programmatically create a devnode for it before you attempt to install the driver using the DIFx tools. Guessing the same for DPinst.
The source code for the devcon tool ships in the DDK and has an example of how to create a devnode programmatically. Look for the implementation of the "devcon install" command and you'll find it there.
Once you've created the devnode you can use the DIFx tools to install the driver on it. Or you may want to simply use devcon if that suits you better.

As far as I know, the DIFx tools will not automatically create this devnode for you.

Answered 01/22/2012 by: GrGrGr
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity