/build/static/layout/Breadcrumb_cap_w.png

Enabling PNP virtual device driver after install

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

Answers (2)

Posted by: AngelD 12 years ago
Red Belt
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.
Posted by: GrGrGr 12 years ago
Orange Belt
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.

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ