How to create base driver setup application as Intel's SetupBD.exe

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: santosh (krcdacin_at_yahoo.co.in)
Date: 03/03/04


Date: 3 Mar 2004 07:53:32 -0800

Hi all ,
i am writing a setup application based on devcon sample for my
ethernet base driver. I know Intel does it
(Intel\W2K3\Mgmt_Apps\SETUP\SETUPBD\W2KWS03\SetupBD.exe). I am writing
code similar to cmdInstall , cmdUpdate of devcon. After running the my
install application Device manager shows the yellow icon for my
ethernet card saying device cannot run. NDC does not show my card
connection. Running "devcon install <inf path> <hardware id>" also
behaves as above. Righ clicking on my card in device manager is not
showing Resources tab.

If you install the driver using Found new hardware wizard everything
works fine.
What is wrong i am doing??
can some one share the code!!! atleast the setup api function call
sequence??

What i am suspecting is my program is not creating
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\XXX" entries for
the driver where as Found New hardware wizard writes in this entry.

I have gone through Microsoft "Writing a Device Installation
Application" article and many more Device Installtion "Design Guide"
articles. They are of least use as they donot have any sample code..

I have only 2 files. a)Inf and b) Sys file.
I don't require Class/Device coinstallers , user confirmation.
I am testing it on Win 2003.

If you want i can attach the Setupapi.log files generated when devcon
is run and when Found New Hardware wizard is run.......

Any sample code is of great help..
Happy coding..
-Santosh
//Miniport SetupBD.exe



Relevant Pages

  • [PATCH] Fix misspellings collected by members of KJ list.
    ... - * writting a Wavelan ISA driver for the MACH microkernel. ... there are two posibilities reading or writing. ... - * on non x86 architectures, so if you are writting portable code, ...
    (Linux-Kernel)
  • Re: X-CD Roast question again please
    ... Using generic SCSI-3/mmc CD-R driver. ... Disk sub type: Medium Type A, ... ATIP start of lead in: -11318 ... writing 152 KB of pad data. ...
    (RedHat)
  • Re: number of /dev/usb nodes
    ... Hash: SHA1 ... I'm writing ... as a driver you get informed for each new device. ... I never said I was writing a FreeBSD driver... ...
    (freebsd-hackers)
  • [PATCH] tree-wide: Assorted spelling fixes
    ... duplicating on the driver side. ... The Intel P30 chip has 2 non-identical chips on ... The FX2 chip does not give us a zero length read at end of frame. ... * chip by writing to the appropriate register. ...
    (Linux-Kernel)
  • Re: DDK Training
    ... Once in a while I go to devcon, Redmond is too cold for my taste:). ... > the pitfalls in driver writing. ... getting information on future directions for kernel ... > Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)