Display "New hardware" wizard on an orphanded device programmatically

device driver

    Sponsored Links


  • 1. problem with debugger
    Sorry for my thread that is probably OT. I need information about visual softice. I would like debug my application with softice but I can't use it because it's not compatible with my cpu amd athlon64. I can use Visual SoftIce but I don't know how configure it to debug my application on my local machine. Please help me. Ant.
  • 2. Can the default Resolution of windows XP be modified in video driver ?
    Can the default Resolution of windows XP be modified in video driver ? yes or not? Thanks, Sunwill
  • 3. WinDbg not working
    Hi all, My WinDbg:6.7.0005.1 debugger working fine from past few months in windows vista.It is working as kernel mode debugger for host and target machine. But suddenly today it stop connecting to debuggee machine. Giving following error. ------------------------------------------------------------- Failed to open \\.\com1 Kernel debugger failed to initialization Win32 error 0n2 The system cannot find the file specified -------------------------------------------------------------- Can anybody tell the solution please Thanks in advance Nidhi
  • 4. Where can I get IFDTest.exe?
    Hi, For smartcard reader driver testing, I've constantly been hearing about the "magic" tool - IFDTEST. But, where can i get it? I searched entiry Microsoft site and can not find it till now. Can any one give some help? Thanks.
  • 5. Unable to open NDISPROT driver using CreateFile
    Hello all, I just build and installed NdisProt sample on my Vista machine. After this I try to open and enumerate the devices using the test application provided with the sample but the call to CreateFile() is failing with error code 2 (The system cannot find the file specified. ). Could you please tell what is wrong. I have also tried installing and opening the sample on XP but I am getting the same error. I have WinDDK 6.0.6000. Thanks, Arsalan

Display "New hardware" wizard on an orphanded device programmatically

Postby Tim » Sat, 06 Aug 2005 02:14:38 GMT

We have situations where the user selects "cancel" on the new hardware 
wizard dialogs before the driver is completely installed (apparently they 
get confused or something.)  The driver files have been pre-installed using 
SetupCopyOEMInf.  This is a USB device and if they unplug and re-plug the 
device in the wizard comes up again and works fine (at least on XP where I'm 

Is there a way to do this from a program?  I can detect the device on the 
bus and that it wasn't setup correctly.  Now I want to "reinstall" the 
device to set it up correctly.  If I right click in the device manager it 
displays the new hardware wizard.  I want to do this from my application, 
just cause the new hard found dialog to appear and again and do its normal 

Any way to do this?  Thanx! 

Re: Display "New hardware" wizard on an orphanded device programmatically

Postby Eliyas Yakub [MSFT] » Mon, 08 Aug 2005 23:09:29 GMT

After you find the device, call UpdateDriverForPlugAndPlayDevices on it. 
Follow the devcon sample in the DDK.


Re: Display "New hardware" wizard on an orphanded device programmatically

Postby Pavel A. » Wed, 10 Aug 2005 06:34:17 GMT

What means - not complete? no Driver value?

Re: Display "New hardware" wizard on an orphanded device programmatically

Postby Eliyas Yakub [MSFT] » Wed, 10 Aug 2005 14:15:13 GMT

If update doesn't work, you can try removing the device and then scan for 
hardware changes to cause the device to completely reinstalled.

 http://www.**--****.com/ ;en-us;259697


Re: Display "New hardware" wizard on an orphanded device programmatically

Postby Tim » Fri, 12 Aug 2005 03:07:59 GMT

During the installtion process several registry keys are created and 
populated.  If the installation process is stopped before finishing, the 
registry keys are not all there and setup correctly.  The information 
missing depends upon when the installation was stopped.  In some cases there 
is only a class guid key.  In every case when the installation is stopped 
prematurely, there is no driver specified.

Similar Threads:

1.Add New Hardware Wizard and New Instances of Installed USB Devices

Is there a way to prevent the Add New Hardware wizard from popping when 
attaching a new instance of a previously installed USB device? Each new USB 
device instance has its own unique serial number. Does this happen because my 
driver is not signed, or is this normal behavior?


2.Multiple "Found New Hardware" wizard pages displayed when running DevCon on Toaster like driver architecture

I'm seeing a strange PnP behavior when using DevCon to install my bus and
device drivers which are similar in architecture to the Toaster sample.
Upon receiving my bus drivers response to the IRP_MN_QUERY_DEVICE_RELATIONS
for bus relations, PnP reacts by displaying two "Found New Hardware" windows
for each device which was returned in the query array.

Enabling SetupAPI log level to 0xffffffff reveals that one prompt appears to
be initiated by a command identified to be from DevCon and the other
initiated by System32/Services.  If I respond to only one of the prompts to
automatically find and install the correct driver, everything moves forward
properly and results in both prompts being removed and replaced by a single
Finish window upon a successful completion of the installation.

The question I have is "How can I prevent multiple found new hardware
windows from being displayed when using DevCon, or the
UpdateDriverForPlugAndPlayDevices() function to initiate the installation of
my drivers?".

3.programmatically loads "Hardware Update Wizard" in XP ?


Is that possible to load up "Hardware Update Wizard" in XP by putting
DevInfoSet and pDevInfo to update driver programmatically?
Vista got DiShowUpdateDevice API, i'm looking for XP implementation to
load up that wizard.



4.DIFx 2.1: DPInst.exe and 'Welcome to the Found New Hardware Wizard' problem

Hello DIFx team members,

I磛e just tried to use DPInst.exe v2.1 to install my signed driver packages 
with Windows XP SP2.

Here is my problem:
DPInst.exe does not continue installing the driver packages until the 
'Welcome to the Found New Hardware Wizard'
dialog will be closed.
I did not encounter this problem using DIFxAPI instead.

Do you know why? Is there a solution or is it as designed?


5.How to detect "New Hardware Wizard" ?


How can I detect "New Hardware Wizard" popup, is there any function  ?

I use win32 FindWindow but I don't think it's a good way when design multi 
language driver installer .

Thank for your teaching .

6. Satisfying the Found New Hardware wizard

7. "welcome to the found new hardware wizard"

8. XP / USB / FTDI / Add new Hardware / avoid wizard

Return to device driver


Who is online

Users browsing this forum: No registered users and 90 guest