locked
ClassifyFn callout context RRS feed

  • Question

  • I there any way, during a WFP callout registration to specify a context (a pointer to some object) that will be accessible in the callout function?
    Thursday, May 12, 2011 10:31 AM

Answers

  • Not during registration.  The are ways to make data accessible afterwards though (FlowAssociateContext, Packet Tagging, ProviderContext etc...)  Using a PROVIDER_CONTEXT when you add your filter( and specifying the callout uses it via the flags) is an easy way to supply the callout with data.  The callout then just looks in the FWPS_FILTER parameter and retrieves the context.

     

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------

    Thursday, May 12, 2011 3:21 PM
    Moderator