FwpsInjectionHandleDestroy

I am doing some work in an area I don’t normally work in, so could use some
guidance. I create an injection handle with FwpsInjectionHandleCreate, but
the driver does not inject any packets. During unload
FwpsInjectionHandleDestroy is waiting and never returns. Is there
something here I am missing?

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

Hi Don,

Have you figured out the culprit since then?
I have the same issue.
Checked - the inject & complete calls are matched.

Thanks,
Greg

The order of my cleanup is as follows:

  1. Base filtering engine callback
  2. All manually allocated flow contexts
  3. Filters
  4. Callouts
  5. Sublayers
  6. Injection handles
  7. ndis handles and objects

I’ve never had this issue. Maybe ensure you’ve all relevant driver verifier options selected and see if a bluescreen provides more info?

Forget about it.
My code erroneously called FwpsInjectionHandleDestroy() twice.
This causes either a hang or a BSOD.
Nice one on the MS’s part, BTW.

Regards,
Greg.

sounds like it definately, definately wasn’t your fault.