FWPM_NET_EVENT_CALLBACK2 callback function (fwpmu.h)

The FWPM_NET_EVENT_CALLBACK2 function is used to add custom behavior to the net event subscription process.

Note  FWPM_NET_EVENT_CALLBACK2 is the specific implementation of FWPM_NET_EVENT_CALLBACK used in Windows 10, version 1607 and later. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information. For Windows 8, FWPM_NET_EVENT_CALLBACK1 is available. For Windows 7, FWPM_NET_EVENT_CALLBACK0 is available.
 

Syntax

FWPM_NET_EVENT_CALLBACK2 FwpmNetEventCallback2;

void FwpmNetEventCallback2(
  [in, out] void *context,
  [in]      const FWPM_NET_EVENT3 *event
)
{...}

Parameters

[in, out] context

Optional context pointer. It contains the value of the context parameter of the FwpmNetEventSubscribe2 function.

[in] event

An FWPM_NET_EVENT3 struct that contains the event information.

Return value

None

Remarks

Call FwpmNetEventSubscribe2 to register this callback function.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header fwpmu.h

See also

FwpmNetEventSubscribe2