Sample code ping remote ip in windows

hello guys…

anyone who have a sample code in pinging a remote ip address using ms
windows…???pls…share it with me…

i want to ping a remote ip address…and display its mac address…

i have a code in linux its running but not applied to windows…it
doesn’t work…pls…

tanx in advance…