Share via


DeleteIpNetEntry (Compact 2013)

3/26/2014

This function deletes an ARP entry from the ARP table on the local device.

Syntax

DWORD DeleteIpNetEntry(
  PMIB_IPNETROW pArpEntry
);

Parameters

  • pArpEntry
    [in] Pointer to a MIB_IPNETROW structure that contains the entry to delete. The caller must specify values for at least the dwIndex and dwAddr members of this structure.

Return Value

Return code

Description

NO_ERROR (zero)

The function is successful.

ERROR_ACCESS_DENIED

Access is denied.

ERROR_INVALID_PARAMETER

An input parameter is invalid, no action was taken. This error is returned if the pArpEntry parameter is NULL or a member in the MIB_IPNETROW structure pointed to by the pArpEntry parameter 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.

Remarks

To retrieve the ARP table, call the GetIpNetTable function.

Requirements

Header

iphlpapi.h

Library

Iphlpapi.lib

See Also

Reference

IP Helper Functions
FlushIpNetTable
GetIpNetTable
CreateIpNetEntry
MIB_IPNETROW
SetIpNetEntry

Other Resources

IP Helper