I used UpdateDriverForPlugAndPlayDevices()under Win2000
and DiInstallDevice() under Win98 to install my usb driver
of smart card reader which met with the request of
PCSC.But after running the setup program and plugging the
device into PC,I found the system installed driver again
and there were two icons in control panel.What step have I
omitted?

Thanks a lot!

Re: a question about UpdateDriverForPlugAndPlayDevices by Eliyas

Eliyas
Wed Sep 03 00:42:02 CDT 2003

UpdateDriverForPlugAndPlayDevices, as the name suggests, is meant to update
driver for an existing device. For pnp devices, all you need to do is
preinstall driver package and when the device is plugged in, the system will
automagically use the preinstalled driver.

If the device is already plugged, before the user had an opportunity to
install the driver, then enumerate all the devices in the system, identify
your device from that and call UpdateDriverForPlugAndPlayDevices to install
the driver.

Please read
http://msdn.microsoft.com/library/en-us/install/hh/install/custom-install_7n53.asp

--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.


"william" <william@yahoo.com.cn> wrote in message
news:004601c371c4$389feec0$a001280a@phx.gbl...
> I used UpdateDriverForPlugAndPlayDevices()under Win2000
> and DiInstallDevice() under Win98 to install my usb driver
> of smart card reader which met with the request of
> PCSC.But after running the setup program and plugging the
> device into PC,I found the system installed driver again
> and there were two icons in control panel.What step have I
> omitted?
>
> Thanks a lot!
>
>



Re: a question about UpdateDriverForPlugAndPlayDevices by harishv

harishv
Wed Sep 03 11:50:35 CDT 2003

no, it does not work on 98. however, u can use it on ME.

>-----Original Message-----
>Can the setupcopyoeminf function be used under win98?
>
>Thanks a lot!
>
>>-----Original Message-----
>>UpdateDriverForPlugAndPlayDevices, as the name suggests,
>is meant to update
>>driver for an existing device. For pnp devices, all you
>need to do is
>>preinstall driver package and when the device is plugged
>in, the system will
>>automagically use the preinstalled driver.
>>
>>If the device is already plugged, before the user had
an
>opportunity to
>>install the driver, then enumerate all the devices in
the
>system, identify
>>your device from that and call
>UpdateDriverForPlugAndPlayDevices to install
>>the driver.
>>
>>Please read
>>http://msdn.microsoft.com/library/en-
>us/install/hh/install/custom-install_7n53.asp
>>
>>--
>>--
>>-Eliyas
>>This posting is provided "AS IS" with no warranties, and
>confers no rights.
>>
>>
>>"william" <william@yahoo.com.cn> wrote in message
>>news:004601c371c4$389feec0$a001280a@phx.gbl...
>>> I used UpdateDriverForPlugAndPlayDevices()under Win2000
>>> and DiInstallDevice() under Win98 to install my usb
>driver
>>> of smart card reader which met with the request of
>>> PCSC.But after running the setup program and plugging
>the
>>> device into PC,I found the system installed driver
again
>>> and there were two icons in control panel.What step
>have I
>>> omitted?
>>>
>>> Thanks a lot!
>>>
>>>
>>
>>
>>.
>>
>.
>