From: chris.aseltine on 25 Jul 2006 21:48 Eliyas, > For that, you use the NDIS registered interface guid to enumerate the > device, identify the device you want to target, get some unique information > about the device (pdo-name, etc) and send that information (cookie) in the > ioctl. > > In your driver, as the miniport instances are added, you find the same > unique information about the device in your MiniportInitializeHandler using > IoGetDeviceProperty and keep it in the miniport-context. You have to have a > global structure that contains a link to all the miniport contexts. > > In your ioctl, walk the miniport context list (protected by a spinlock), > looking for a matching device based on the cookie. Problem solved. Thanks -- I totally get it now. I'll definitely use this in my approach. -Chris
From: Maxim S. Shatskih on 26 Jul 2006 15:59
> What mechanism would I use from userspace to determine which > MyUsbDevice* named device objects are present on the system? PnP device interfaces is for this. -- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim(a)storagecraft.com http://www.storagecraft.com |