Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 940 Bytes

IcmpCreateFile.md

File metadata and controls

44 lines (27 loc) · 940 Bytes

Home

Function name : IcmpCreateFile

Group: IP Helper - Library: iphlpapi


Opens a handle on which ICMP Echo Requests can be issued.


Code examples:

How to ping a remote site using ICMP API calls

Declaration:

HANDLE IcmpCreateFile(void);  

FoxPro declaration:

DECLARE INTEGER IcmpCreateFile IN icmp  

Parameters:

This function has no parameters.


Return value:

Returns an open handle on success. Returns INVALID_HANDLE_VALUE (-1) upon failure.


Comments:

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.