Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.);
Parameters
- DestIP
Specifies the destination IP address. The ARP request attempts to obtain the physical address that corresponds to this IP address. - SrcIP
Specifies the IP address of the sender. This parameter is optional. The caller may specify zero for the parameter. - pMacAddr
Pointer to a ULONG variable. On successful return, this variable contains the physical address that corresponds to the IP address specified by the DestIP parameter. - PhyAddrLen
Pointer to a ULONG variable. On successful return, this variable contains the length of the physical address pointed to by the pMacAddr parameter.
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.
Remarks
For information about the IPAddr data type, see the Win32 Simple Data Types topic in the Platform SDK.
Requirements
Runs On | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 3.0 and later | Iphlpapi.h | Iphlpapi.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
CreateIpNetEntry, DeleteIpNetEntry, FlushIpNetTable, FormatMessage, SetIpNetEntry
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.