0

I was trying to compile the IcmpSendEcho function (icmpapi.h) in Vscode with Mingw compiler with C++ language.

Normally I coded with raw socket method. Also I want to test out the ICMP.DLL API method.

However, I take this error below once I compile my code:

error `IcmpCreateFile'

error `IcmpSendEcho'

error `GetIpErrorString'

error `IcmpCloseHandle'

Should I strictly use Visual Studio 2019 or something to call ICMP.dll?

I really want to learn to compile it with Mingw in Vscode

What sort of approaches should I follow to tackle down this issue?

Thanks.

Btw. here is the documentation website link:

[https://learn.microsoft.com/en-us/windows/win32/api/icmpapi/nf-icmpapi-icmpsendecho]

cikalekli
  • 1
  • 1

0 Answers0