FWPM_NET_EVENT_CALLBACK0 callback function (fwpmu.h)

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

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

Syntax

FWPM_NET_EVENT_CALLBACK0 FwpmNetEventCallback0;

void FwpmNetEventCallback0(
  [in, out] void *context,
  [in]      const FWPM_NET_EVENT1 *event
)
{...}

Parameters

[in, out] context

Type: void*

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

[in] event

Type: FWPM_NET_EVENT1*

The net event information.

Return value

None

Remarks

Call FwpmNetEventSubscribe0 to register this callback function.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header fwpmu.h

See also

FWPM_NET_EVENT1

FwpmNetEventSubscribe0