FWPM_NET_EVENT_CALLBACK2 fonction de rappel (fwpmu.h)
La fonction FWPM_NET_EVENT_CALLBACK2 est utilisée pour ajouter un comportement personnalisé au processus d’abonnement aux événements net.
NotezFWPM_NET_EVENT_CALLBACK2'implémentation spécifique de FWPM_NET_EVENT_CALLBACK utilisée dans Windows 10 version 1607 et ultérieure. Pour plus d’informations , voir PAM Version-Independent noms et Ciblage de versions spécifiques de Windows . Pour Windows 8, FWPM_NET_EVENT_CALLBACK1 est disponible. Pour Windows 7, FWPM_NET_EVENT_CALLBACK0 est disponible.
Syntaxe
FWPM_NET_EVENT_CALLBACK2 FwpmNetEventCallback2;
void FwpmNetEventCallback2(
[in, out] void *context,
[in] const FWPM_NET_EVENT3 *event
)
{...}
Paramètres
[in, out] context
Pointeur de contexte facultatif. Il contient la valeur du paramètre de contexte de la fonction FwpmNetEventSubscribe2 .
[in] event
Un FWPM_NET_EVENT3 struct qui contient les informations d’événement.
Valeur de retour
None
Remarques
Appelez FwpmNetEventSubscribe2 pour inscrire cette fonction de rappel.
Configuration requise
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows 10, version 1607 [applications de bureau uniquement] |
Serveur minimal pris en charge | Windows Server 2016 (applications de bureau uniquement) |
Plateforme cible | Windows |
En-tête | fwpmu.h |