In WDM I can attach to any device first getting the object with IoGetDeviceObjectPointer and later using IoAttachDevice and then it will pass all the IRPs through my driver and I can do whatever I want with it. Is this also possible in WDF? (taking into consideration I can call WDM functions inside KMDF driver)
I was looking at other questions especially this one: https://social.msdn.microsoft.com/Forums/en-US/65101f09-0785-4e27-97bb-8d4552e1f344/devicedriver-stack-in-wdf?forum=wdk
But I'm really confused. It says WDF drivers can only use .inf files to make them act like a filters. But what if I want to modify behaviour of a third party driver(not related to hardware) and not listed in official documentation talking about filters. Can I use WDF for that too?
All I want is this:
1. Get device object by it's name
2. Attach to the stack / Replace function in dispatch table of the driver
3. Preprocess, postprocess IRPs (io completion routine)