RegisterInterfaceTimestampConfigChange function (iphlpapi.h)

Registers a user-implemented callback function, which the system calls to notify you of a timestamp capability change. You can cancel the registration by calling UnregisterInterfaceTimestampConfigChange.

For more info, and code examples, see Packet timestamping.

Syntax

IPHLPAPI_DLL_LINKAGE DWORD RegisterInterfaceTimestampConfigChange(
  PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK Callback,
  PVOID                                       CallerContext,
  HIFTIMESTAMPCHANGE                          *NotificationHandle
);

Parameters

Callback

Type: _In_ PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK

Your callback function, to be invoked when a timestamp capability change happens.

CallerContext

Type: _In_opt_ PVOID

An optional caller-allocated context.

NotificationHandle

Type: _Out_ HIFTIMESTAMPCHANGE

A handle, returned by the function, that identifies the registration.

Return value

Type: DWORD

A DWORD return code indicating success or failure.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header iphlpapi.h
Library Iphlpapi.lib
DLL Iphlpapi.dll

See also