Hi All,
I am using UpdateDriverForPlugAndPlayDevices() for installing a driver
using an INF file. At times when the function fails, the GetLastErr()
returns an error of “The operation completed successfully” or “No more
data is available”. But the driver is not installed. Can anyone explain
this behavior ?
TIA,
Unni
When debugging UpdateDriverForPlugAndPlayDevices() try the following:
* Ensure that you driver installs correctly. If possible, try another
smaller functional INF file, to rule out your INF file.
* “NO more data is available” suggests that the system could not find your
INF file and/or PnP ID in the INF file. Please ensure that you have entered
in the correct information.
* Use the PnP setup logs generated in the system to help debug further
issues. look for the file: c:\winnt\setupapi.log
Hope this helps.
KeithGa
-----Original Message-----
From: Unnikrishnan P K [mailto:xxxxx@india.hp.com]
Sent: Saturday, August 12, 2000 12:51 AM
To: NT Developers Interest List
Subject: [ntdev] Help on UpdateDriverForPlugAndPlayDevices()
Hi All,
I am using UpdateDriverForPlugAndPlayDevices() for installing a driver
using an INF file. At times when the function fails, the GetLastErr()
returns an error of “The operation completed successfully” or “No more
data is available”. But the driver is not installed. Can anyone explain
this behavior ?
TIA,
Unni
Thanks for the input. The problem still persists.
The driver installs correctly, if the INF file is invoked from the Add/Remove
Hardware Wizard.
The following is the dump from the setupapi.log file. This has not given
much information regarding the problem:
The file (E:\temp\system~1\test.inf) is not digitally signed, ignoring driver
date.
Found Root\Test in E:\temp\system~1\test.inf; Device: Test Driver; Driver:
Test Driver; Section: TestInstall
Decorated section name: TestInstall
Device install function: DIF_SELECTBESTCOMPATDRV.
Selected driver installs from section TestInstall in
e:\temp\system~1\test.inf.
Changed class GUID of device to {4D36E97D-E325-11CE-BFC1-08002BE10318}.
Set selected driver.
Selected best compatible driver.
[2000/08/14 13:28:27 804.81]
Thanks,
Unni
Keith Garner wrote:
When debugging UpdateDriverForPlugAndPlayDevices() try the following:
* Ensure that you driver installs correctly. If possible, try another
smaller functional INF file, to rule out your INF file.
* “NO more data is available” suggests that the system could not find your
INF file and/or PnP ID in the INF file. Please ensure that you have entered
in the correct information.
* Use the PnP setup logs generated in the system to help debug further
issues. look for the file: c:\winnt\setupapi.log
Hope this helps.
KeithGa
-----Original Message-----
From: Unnikrishnan P K [mailto:xxxxx@india.hp.com]
Sent: Saturday, August 12, 2000 12:51 AM
To: NT Developers Interest List
Subject: [ntdev] Help on UpdateDriverForPlugAndPlayDevices()
Hi All,
I am using UpdateDriverForPlugAndPlayDevices() for installing a driver
using an INF file. At times when the function fails, the GetLastErr()
returns an error of “The operation completed successfully” or “No more
data is available”. But the driver is not installed. Can anyone explain
this behavior ?
TIA,
Unni
You are currently subscribed to ntdev as: xxxxx@india.hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)