From: eagersh on 29 Mar 2010 12:44 > @eagersh > > > You could trace StartDevice Irp in your filter driver. Such Irp > > contains PCI resources including mapped BAR's. > > -I think this is the way is supposed to be handled, but I had problems > tracking down appropriate structure and fields. > IRP_MN_START_DEVICE handler provides me with (PDEVICE_OBJECT > DeviceObject, PIRP Irp). > And then I am not sure what to do with them. Look in WDM documentation on IRP_MN_START_DEVICE. You need to process CM_RESOURCE_LIST. You could also look in WDM samples to see how IRP_MN_START_DEVICE is processed. But again, it would not use this method. Only in the case of the last chance. Igor Sharovar |