How to programmatically access windows XP arp cache

Roger Alcindor
Roger Alcindor used Ask the Experts™
on
I am developing Windows software to run on an XP machine and wish to enumerate entries in the local PC ARP cache to obtain a list of IP addresses on the local area network that are in the ARP cache. I am using Indy network components with C++ Builder.
Can anyone suggest how to do this without doing an ICMP echo request to IP addresses that are of interest ?

Thanks,

Roger
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
You can do tat via SNMP, yet it's not quite trivial - see the article plus source code at http://www.codeproject.com/Articles/22483/Edit-Add-Remove-Modify-ARP-Tables
Converting that to C++ builder is possible, but you might have to invest some amount of work.

Author

Commented:
You are correct, it is not a trivial exercise. Thanks for the solution, I will be working on this in a few weeks time.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial