Platform SDK: Internet Protocol Helper |
The NotifyAddrChange function causes a notification to be sent to the caller whenever a change occurs in the table that maps IP addresses to interfaces.
DWORD NotifyAddrChange( PHANDLE Handle, LPOVERLAPPED overlapped );
If the function succeeds, the return value is NO_ERROR.
If the function fails, use FormatMessage to obtain the message string for the returned error.
If the caller specifies NULL for the Handle and overlapped parameters, the call to NotifyAddrChange blocks until an IP address change occurs.
If the caller specifies a handle variable and an OVERLAPPED structure, the caller can use the returned handle with the OVERLAPPED structure to receive asynchronous notification of IP address changes. See GetQueuedCompletionStatus and the I/O Completion Ports overview for information about using the handle and OVERLAPPED structure to receive notifications.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Iphlpapi.h.
Library: Use Iphlpapi.lib.