A Simple Question...

Hi again!
I?m trying to understand how Windows make a 1-to-1 relationship between PID and VID of my device and the internal name of the driver used by Windows Driver Kit RTM examples. Specifically, I?m studing the “usbsamp” code (WINDDK\6000\src\kmdf\usbsamp). So, I would like to know the follow:

  1. Is the connection between PID/VID and internal driver name set in .inf file?
  2. Where I set the internal driver name?

Thanks!

Lucas.


Fale com seus amigos de gra?a com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

Take a look at usbsamp.inx you will see the PID/VID described as follows:

[Microsoft.NT$ARCH$]
%USB\VID_0547&PID_1002.DeviceDesc%=usbsamp.Dev, USB\VID_0547&PID_1002 ;
OSR USB-FX

Now notice there is a name after the equals sign of usbsamp.Dev, this is
then used to select the additional sections:

[usbsamp.Dev.NT]
CopyFiles=usbsamp.Files.Ext

[usbsamp.Dev.NT.Services]
Addservice = usbsamp, 0x00000002, usbsamp.AddService

[usbsamp.AddService]
DisplayName = %usbsamp.SvcDesc%

Where the CopyFiles indicates the files to copy, the Addservice indicatated
the service name in the registry to add, and the DisplayName indicated the
name the device manager will show.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Lucas Bracher” wrote in message
news:xxxxx@ntdev…
Hi again!
I´m trying to understand how Windows make a 1-to-1 relationship between PID
and VID of my device and the internal name of the driver used by Windows
Driver Kit RTM examples. Specifically, I´m studing the “usbsamp” code
(WINDDK\6000\src\kmdf\usbsamp). So, I would like to know the follow:

1) Is the connection between PID/VID and internal driver name set in .inf
file?
2) Where I set the internal driver name?

Thanks!

Lucas.

__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

>1) Is the connection between PID/VID and internal driver name set in .inf
file?

Yes.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com