I have 3 usb devices with the same VID and separate PIDs. I’m using WinUSB and WinUSB.dll to communicate with them and they are currently all installed via 3 separate (though very similiar) .inf files. They have the same GUID for the class, but separate GUIDs for each device.
I’m curious if I can combine all 3 .inf files into one to make installation easier. It seems like most parts can either be left or just cloned, but where I get stuck (if it’s even possible) is with assigning the GUIDs to each device. In the [Dev_AddReg] section, I know the GUIDs are listed, but I don’t see what assocates them with a specific VID/PID combination, other than being that is just what is found in the file.
Is something like this possible? I’m just doing it to make my installer run smoother.
Yes, you can do this. Each addreg is referenced by ddinstall.hw. As long as each hwid maps to its own top level ddinstall section you can distinguish between instances. Common addreg directives can be shared across instances
d
Sent from my phone with no t9, all spilling mistakes are not intentional.
-----Original Message-----
From: xxxxx@gmail.com
Sent: Wednesday, April 22, 2009 2:03 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Multiple WinUSB (dll) devices in a single .inf?
I have 3 usb devices with the same VID and separate PIDs. I’m using WinUSB and WinUSB.dll to communicate with them and they are currently all installed via 3 separate (though very similiar) .inf files. They have the same GUID for the class, but separate GUIDs for each device.
I’m curious if I can combine all 3 .inf files into one to make installation easier. It seems like most parts can either be left or just cloned, but where I get stuck (if it’s even possible) is with assigning the GUIDs to each device. In the [Dev_AddReg] section, I know the GUIDs are listed, but I don’t see what assocates them with a specific VID/PID combination, other than being that is just what is found in the file.
Is something like this possible? I’m just doing it to make my installer run smoother.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
I guess it is possible but I’m not sure if it brings you something but
one overcomplicated INF. You can distinguish devices in the Models
section by DDInstall name and finally have [Dev1_AddReg], [Dev2_AddReg]
etc. As you can see, everything would be repeated 3 times but maybe you
can reuse some parts.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, April 22, 2009 11:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Multiple WinUSB (dll) devices in a single .inf?
I have 3 usb devices with the same VID and separate PIDs.
I’m using WinUSB and WinUSB.dll to communicate with them and
they are currently all installed via 3 separate (though very
similiar) .inf files. They have the same GUID for the class,
but separate GUIDs for each device.
I’m curious if I can combine all 3 .inf files into one to
make installation easier. It seems like most parts can
either be left or just cloned, but where I get stuck (if it’s
even possible) is with assigning the GUIDs to each device.
In the [Dev_AddReg] section, I know the GUIDs are listed, but
I don’t see what assocates them with a specific VID/PID
combination, other than being that is just what is found in the file.
Is something like this possible? I’m just doing it to make
my installer run smoother.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online
at http://www.osronline.com/page.cfm?name=ListServer
Recently I loaded winusb for three identical devices, all having same vid
and pid. The same inf file served for all the devices. Using setupapi I am
able to retrieve handles for all the three devices.
So I guess that you can have same guid for multiple devices. Adding
multiple hardware ids in the inf can serve the purpose.
Regards.
On Thu, Apr 23, 2009 at 2:41 AM, Doron Holan wrote:
> Yes, you can do this. Each addreg is referenced by ddinstall.hw. As long
> as each hwid maps to its own top level ddinstall section you can distinguish
> between instances. Common addreg directives can be shared across instances
>
> d
>
> Sent from my phone with no t9, all spilling mistakes are not intentional.
>
> -----Original Message-----
> From: xxxxx@gmail.com
> Sent: Wednesday, April 22, 2009 2:03 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Multiple WinUSB (dll) devices in a single .inf?
>
>
> I have 3 usb devices with the same VID and separate PIDs. I’m using WinUSB
> and WinUSB.dll to communicate with them and they are currently all installed
> via 3 separate (though very similiar) .inf files. They have the same GUID
> for the class, but separate GUIDs for each device.
>
> I’m curious if I can combine all 3 .inf files into one to make installation
> easier. It seems like most parts can either be left or just cloned, but
> where I get stuck (if it’s even possible) is with assigning the GUIDs to
> each device. In the [Dev_AddReg] section, I know the GUIDs are listed, but
> I don’t see what assocates them with a specific VID/PID combination, other
> than being that is just what is found in the file.
>
> Is something like this possible? I’m just doing it to make my installer
> run smoother.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>