Reboot flag in setup API UpdateDriverForPlugAndPlayDevices()



All,

We wrote an driver installer to install the driver.
But I found that the reboot flag (bRebootRequired) output from the
UpdateDriverForPlugAndPlayDevices() API is not correct.
For instance, if I uninstalled a NDIS 4.0 WAN driver and then install a NDIS
5.0 CoNDIS WAN driver.
In this case, the reboot flag should be TRUE. But the reboot flag returned
from this API is always FALSE.
Is there any alternative API that I can call to know whether reboot is
required or not.


bRet = UpdateDriverForPlugAndPlayDevices(
hwndParent,
HardwareId,
FullInfPath,
InstallFlags,
bRebootRequired);


.



Relevant Pages

  • Re: Adding ODBC driver programmatically
    ... the driver may or may not be installed. ... When the app loads, it configures the ODBC entry automatically, ... Your code can still check for the driver, and I am betting there is an API ... call for that too, Install it as needed ...
    (borland.public.delphi.database.ado)
  • Re: Accessing the Parallel port
    ... > install a driver in other than the system folder. ... but having a API *must* be provided. ...
    (microsoft.public.vc.mfc)
  • How does Intel Pro Set installs the driver??
    ... I want to know the sequence of API calls. ... I tried to install the driver using devcon sample but after copying ...
    (microsoft.public.development.device.drivers)
  • Re: Mobile deivce work as device and as sync
    ... the function controller driver handle API) ... But I dont understand that should i write application or using ... install the new one but at this time I dont know any API ...
    (microsoft.public.windowsce.platbuilder)
  • Re: XP HOME BOOT FAILURE
    ... you remove the driver for the graphics card, ... >> If you run a repair install as I initially described, ... A repair install should bypass that but it will ... >>>> on, follow the screens. ...
    (microsoft.public.windowsxp.accessibility)