How to write device driver auto-installation

I wrote an AC97 device driver, and use fastinst.exe (Walter Oney WDM book)
to install my driver, but the result is fail when I restart the system.
Anyone know what the problem is or tell me other solution to write driver
auto-installation.
Thanks in advance,
LP

Look at the setupDixxx APIs in the DDK.

xxxxx@atlanta.nsc.com wrote:

Look at the setupDixxx APIs in the DDK.

The XP DDK’s devcon example uses these routines, if a real-world example
would be helpful.