Sending an ICMP Request

Send an Internet Control Message Protocol (ICMP) request, or ping, to determine whether or not a particular host is available.

    To send an ICMP request
  1. Call ICMPCreateFile to create a handle on which requests can be issued.
  2. Call ICMPSendEcho to send an ICMP echo request. It returns the status of the host.
  3. Call ICMPCloseHandle to close the handle created by ICMPCreateFile.