FWPM_NET_EVENT_CALLBACK1 callback function (fwpmu.h)

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

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

Syntax

FWPM_NET_EVENT_CALLBACK1 FwpmNetEventCallback1;

void FwpmNetEventCallback1(
  [in, out] void *context,
  [in]      const FWPM_NET_EVENT2 *event
)
{...}

Parameters

[in, out] context

Type: void*

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

[in] event

Type: const FWPM_NET_EVENT2*

The net event information.

Return value

None

Remarks

Call FwpmNetEventSubscribe1 to register this callback function.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header fwpmu.h