RegisterInterfaceTimestampConfigChange, fonction (iphlpapi.h)
Inscrit une fonction de rappel implémentée par l’utilisateur, que le système appelle pour vous informer d’un changement de capacité d’horodatage. Vous pouvez annuler l’inscription en appelant UnregisterInterfaceTimestampConfigChange.
Pour plus d’informations et des exemples de code, consultez Horodatage des paquets.
Syntaxe
IPHLPAPI_DLL_LINKAGE DWORD RegisterInterfaceTimestampConfigChange(
PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK Callback,
PVOID CallerContext,
HIFTIMESTAMPCHANGE *NotificationHandle
);
Paramètres
Callback
Type : _In_ PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK
Votre fonction de rappel, à appeler lorsqu’un changement de capacité d’horodatage se produit.
CallerContext
Type : _In_opt_ PVOID
Contexte facultatif alloué par l’appelant.
NotificationHandle
Type : _Out_ HIFTIMESTAMPCHANGE
Handle, retourné par la fonction, qui identifie l’inscription.
Valeur retournée
Type : DWORD
Code de retour DWORD indiquant la réussite ou l’échec.
Spécifications
Client minimal pris en charge | Windows 10 Build 20348 |
Serveur minimal pris en charge | Windows 10 Build 20348 |
Plateforme cible | Windows |
En-tête | iphlpapi.h |
Bibliothèque | Iphlpapi.lib |
DLL | Iphlpapi.dll |