Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

FwpsInjectionHandleDestroy

Don_BurnDon_Burn Member - All Emails Posts: 1,730
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

Comments

  • Gregory_MessermanGregory_Messerman Member Posts: 51

    Hi Don,

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

    Thanks,
    Greg

  • Jason_StephensonJason_Stephenson Member Posts: 105

    The order of my cleanup is as follows:
    1. Base filtering engine callback
    2. All manually allocated flow contexts
    2. Filters
    3. Callouts
    4. Sublayers
    5. Injection handles
    6. 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?

  • Gregory_MessermanGregory_Messerman Member Posts: 51

    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.

  • Jason_StephensonJason_Stephenson Member Posts: 105

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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Developing Minifilters 24 May 2021 Live, Online
Writing WDF Drivers 14 June 2021 Live, Online
Internals & Software Drivers 27 September 2021 Live, Online
Kernel Debugging 15 November 2021 Live, Online