Hi all,
I have driverA loaded (e.g., aic78xx) , and driverB is upperfilter of driverA (e.g., MyDriver). Can driverB get the driverA’s name (in this case aic78xx)?
I dont think IoGetDeviceProperty can directly give you this, though.
Thanks
Peter
Hi all,
I have driverA loaded (e.g., aic78xx) , and driverB is upperfilter of driverA (e.g., MyDriver). Can driverB get the driverA’s name (in this case aic78xx)?
I dont think IoGetDeviceProperty can directly give you this, though.
Thanks
Peter
“Peter Trinh” wrote in message
news:xxxxx@ntdev…
>
> I have driverA loaded (e.g., aic78xx) , and driverB is upperfilter of
driverA (e.g., MyDriver). Can driverB get > the driverA’s name (in this
case aic78xx)?
>
How’s IOGetDeviceAttachmentBaseRef, followed by searching for the device
that points directly to your device object. Then it’s just a matter of:
DeviceObject->DriverObject->DriverName, then ObDeferenceObject?
Peter
OSR
> How’s IOGetDeviceAttachmentBaseRef
MN_QUERY_DEVICE_RELATIONS/TargetDeviceRelation is also helpful.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com