Platform SDK: Internet Protocol Helper |
The SendARP function sends an ARP request to obtain the physical address that corresponds to the specified destination IP address.
DWORD SendARP( IPAddr DestIP, // destination IP address IPAddr SrcIP, // IP address of sender PULONG pMacAddr, // returned physical address PULONG PhyAddrLen // length of returned physical addr. );
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.
For information about the IPAddr data type, see Win32 Simple Data Types. To convert an IP address between dotted decimal notation and IPAddr format, use the inet_addr and inet_ntoa functions.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Iphlpapi.h.
Library: Use Iphlpapi.lib.
CreateIpNetEntry, DeleteIpNetEntry, FlushIpNetTable, SetIpNetEntry