Platform SDK: Internet Protocol Helper

CreateIpNetEntry

The CreateIpNetEntry function creates an Address Resolution Protocol (ARP) entry in the ARP table on the local computer.

DWORD CreateIpNetEntry(
  PMIB_IPNETROW pArpEntry    // pointer to info for new entry
);

Parameters

pArpEntry
Pointer to a MIB_IPNETROW structure that specifies information for the new 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

DeleteIpNetEntry, MIB_IPNETROW, SetIpNetEntry