Partager via


CancelMibChangeNotify2, fonction

La fonction CancelMibChangeNotify2 annule l’inscription d’une notification de modification de pilote pour les modifications apportées à l’interface IP, les modifications d’adresse IP, les modifications d’itinéraire IP et les demandes pour récupérer la table d’adresses IP unidiffusion stable.

Syntaxe

NETIOAPI_API CancelMibChangeNotify2(
  _In_ HANDLE NotificationHandle
);

Paramètres

  • NotificationHandle [in]
    Handle retourné à partir d’une fonction d’inscription ou de récupération de notification pour indiquer quelle notification annuler.

Valeur de retour

CancelMibChangeNotify2 retourne STATUS_SUCCESS si la fonction réussit.

Si la fonction échoue, CancelMibChangeNotify2 retourne l’un des codes d’erreur suivants :

Retourner le code Description
STATUS_INVALID_PARAMETER

Un paramètre non valide a été passé à la fonction. CancelMibChangeNotify2 renvoie cette erreur si le paramètre NotificationHandle était un pointeur NULL NULL.

autres

Utilisez la fonction FormatMessage pour obtenir la chaîne de message pour l’erreur retournée.

Remarques

La fonction CancelMibChangeNotify2 annule l’inscription d’une notification de modification de pilote précédemment demandée pour les modifications apportées à l’interface IP, les modifications d’adresse IP ou les modifications d’itinéraire IP sur un ordinateur local. Ces demandes sont effectuées en appelant NotifyIpInterfaceChange, NotifyRouteChange2ou NotifyUnicastIpAddressChange. La fonction CancelMibChangeNotify2 annule également une requête précédente pour récupérer la table d’adresses IP unidiffusion stable sur un ordinateur local. Cette requête est effectuée en appelant la fonction NotifyStableUnicastIpAddressTable.

Le paramètre NotificationHandle retourné à ces fonctions de notification est transmis à CancelMibChangeNotify2 pour désinscrire les notifications de modification du pilote ou annuler une demande en attente pour récupérer la table d’adresses IP unidiffusion stable.

Exigences

Plateforme cible

universel

Version

Disponible dans Windows Vista et versions ultérieures des systèmes d’exploitation Windows.

En-tête

Netioapi.h (include Netioapi.h)

Bibliothèque

Netio.lib

IRQL

PASSIVE_LEVEL

Voir aussi

NotifyIpInterfaceChange

NotifyRouteChange2

NotifyStableUnicastIpAddressTable

NotifyUnicastIpAddressChange