From: JY on 3 Mar 2010 08:49 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 3 Mar 2010 18:28 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 4 Mar 2010 02:12 > 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 4 Mar 2010 12:51 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 >
|
Pages: 1 Prev: How to use WdfDeviceIndicateWakeStatus? Next: KeDelayExecutionThread in 64-bit drivers |