Does FwpsInjectionHandleDestroy0 wait for completionFn's completion? RRS feed

  • Question

  • Hello,

    Just wonder is calling FwpsInjectionHandleDestroy0 on driver unloading sufficient or remove locks in completionFn should be used?

    The manual says "The FwpsInjectionHandleDestroy0 function will not return to the caller until all pending injections are completed." -- not clear whether it waits for completionFn.


    Friday, April 8, 2011 2:44 PM


  • FwpsInjectionHandleDestroy() waits for the completionFn.  This is why one may deadlock if they called the function from within the completionFn

    Hope this helps


    Dusty Harper [MSFT]
    Microsoft Corporation
    This posting is provided "AS IS", with NO warranties and confers NO rights
    Thursday, April 14, 2011 9:39 PM