Device installation

  • Thread starter Thread starter Anthony Rios
  • Start date Start date
A

Anthony Rios

Hello all,

I have developed a device which uses the standard usbstor.sys driver.
During installation of its support software, it is not likely that the
device
is present. Therefore, the device driver (pnp) part of the installation is
not done until the end user plugs in the device for the first time. Then
upon connection for the first time the end user gets the "found new
hardware" dialog. I would like to install the appropriate files, registry
entries, etc. so that the PnP Manager does not display the "Found new
hardware" screens when the device is first plugged in but I have not found
any reference as to how to do that.

Can someone point me to some sample code? I have read through most
of the SetupDi stuff but I cannot seem to get the idea of how they all come
together to perform this task. I know I will need to first call
SetupDiGetClassDevs then probably SetupDiCreateDeviceInfo but what
ClassGuid or deviceName do I pass to it?

Any information would be most appreciated.

Thanks.

-Tony
 
hardware" dialog. I would like to install the appropriate files, registry
entries, etc. so that the PnP Manager does not display the "Found new
hardware" screens when the device is first plugged in but I have not found
any reference as to how to do that.

The function name is SetupCopyOEMInf.
 
Back
Top