SetIpNetEntry

The SetIpNetEntry function modifies an existing ARP entry in the ARP table on the local computer.

DWORD SetIpNetEntry(
  PMIB_IPNETROW pArpEntry  // pointer to new information
);

Parameters

pArpEntry
[in] Pointer to a MIB_IPNETROW structure. The information in this structure specifies the entry to modify and the new information for the entry. The caller must specify values for all members of this structure.

Return Values

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.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iphlpapi.h.
  Library: Use Iphlpapi.lib.

See Also

CreateIpNetEntry, DeleteIpNetEntry, MIB_IPNETROW