Driver/Device Association

I have a very basic question. How can I associate a driver with the device I want it to handle without first having to learn how to write a .INF file? I am a total Windows driver novice. I’m writing a driver for a custom PCI card. I did an experiment by building and installing the sioctl driver from the DDK samples. Then (with my PCI card installed) I tried to go through the hardware wizard to see if the sioctl driver showed up in the list of drivers as a candicate to point to my device. However it does not appear in any list I could find. I realize that the sioctl example would, in no way, handle the card. I just want to find out how to make the driver/hardware association. It appears that my experiment was not the way to do it. What should I have done?

Thanks,
Wayne King

The first INF file is a little scary, but really these are trivial to do.
In your case I would take the INF from the PCIDRV sample as a starting
point, then:

  1. Replace the Device Id’s with ones for you device
  2. Replace all pcidrv.sys with the name of your driver
  3. Replace the Strings in the string section with proper descriptors for
    you device.

As some point in the future you can go back and clean up more as you feel
comfortable. Also, after you have modified the INF, use the ChkINF tool to
verifiy it and fix all the problems and warnings. If you have problems ask
the group and include the INF in the message.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
>I have a very basic question. How can I associate a driver with the
>device I want it to handle without first having to learn how to write a
>.INF file? I am a total Windows driver novice. I’m writing a driver for
>a custom PCI card. I did an experiment by building and installing the
>sioctl driver from the DDK samples. Then (with my PCI card installed) I
>tried to go through the hardware wizard to see if the sioctl driver showed
>up in the list of drivers as a candicate to point to my device. However
>it does not appear in any list I could find. I realize that the sioctl
>example would, in no way, handle the card. I just want to find out how to
>make the driver/hardware association. It appears that my experiment was
>not the way to do it. What should I have done?
>
> Thanks,
> Wayne King
>