Group: IP Helper - Library: iphlpapi
How to ping a remote site using ICMP API calls
HANDLE IcmpCreateFile(void);
DECLARE INTEGER IcmpCreateFile IN icmp
This function has no parameters.
Returns an open handle on success. Returns INVALID_HANDLE_VALUE (-1) upon failure.
Use the returned handle with the IcmpSendEcho function to send an ICMP Echo request and get a reply. The IcmpCloseHandle function closes a handle opened by a call to IcmpCreateFile.