From: JY on
Hi,

I'm trying to add device instances to a DeviceInfoSet using
SetupDiOpenDeviceInfo(), but the DeviceInstanceId parameter is not accepting
any wildcard characters in it. For example, I want to add all device
instances with "USB\\MyVendorID\\*" or "USB\\MyVendorID\\0000" if 0000 could
match anything perhaps, but the call fails with ERROR_NO_SUCH_DEVINST.

My question is, how do I add all devices belonging to the logical group
"USB\\MyVendorID" to the DeviceInfoSet?

TIA,
JY
From: Doron Holan [MSFT] on
you need to wake the tree and look at each devnode to find a match. look at
the devcon sample which does its own wild card matching

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"JY" <JY(a)discussions.microsoft.com> wrote in message
news:93A3E688-FD90-4371-A1CB-A2282AB7AF3A(a)microsoft.com...
> Hi,
>
> I'm trying to add device instances to a DeviceInfoSet using
> SetupDiOpenDeviceInfo(), but the DeviceInstanceId parameter is not
> accepting
> any wildcard characters in it. For example, I want to add all device
> instances with "USB\\MyVendorID\\*" or "USB\\MyVendorID\\0000" if 0000
> could
> match anything perhaps, but the call fails with ERROR_NO_SUCH_DEVINST.
>
> My question is, how do I add all devices belonging to the logical group
> "USB\\MyVendorID" to the DeviceInfoSet?
>
> TIA,
> JY

From: Maxim S. Shatskih on
> you need to wake the tree and look at each devnode to find a match.

"To wake"? or "to walk"?

:-)

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Doron Holan [MSFT] on
walk

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Maxim S. Shatskih" <maxim(a)storagecraft.com.no.spam> wrote in message
news:e9vMTo2uKHA.3408(a)TK2MSFTNGP06.phx.gbl...
>> you need to wake the tree and look at each devnode to find a match.
>
> "To wake"? or "to walk"?
>
> :-)
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>