Compartilhar via


SetIpNetEntry (Compact 2013)

3/26/2014

This function modifies an existing ARP entry in the ARP table on the local device.

Syntax

DWORD SetIpNetEntry(
  PMIB_IPNETROW pArpEntry 
);

Parameters

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

Return Value

Return code

Description

NO_ERROR

The function succeeds.

ERROR_ACCESS_DENIED

Access is denied.

ERROR_INVALID_PARAMETER

The pArpEntry parameter is NULL, or SetIpNetEntry is unable to read from the memory pointed to by pArpEntry, or one of the members of the MIB_IPNETROW structure is invalid.

ERROR_NOT_SUPPORTED

The IPv4 transport is not configured on the local device.

Other

Use FormatMessage to obtain the message string for the returned error.

Requirements

Header

iphlpapi.h

Library

Iphlpapi.lib

See Also

Reference

IP Helper Functions
CreateIpNetEntry
DeleteIpNetEntry
MIB_IPNETROW

Other Resources

IP Helper