Is it possible to write a Ping class in C # that will work in a Windows 8 Metro environment?

Since the Metro environment in Windows 8 lacks most of the .NET Framework class libraries or contains an alternative version, can I ping from a Metro style application? There is support for sockets, so I hope there is hope, but I don’t know where to start, since every example of "C # Ping" uses System.Net.NetworkInformation.Ping, and this is not possible in WinRT.

I also studied the source code for Mono, and their implementation of ping starts ping.exe and returns the result from the standard output window on the command line.

+5
source share
1 answer

, . ICMP WinRT: IcmpCreateFile API Win32 "Desktop" API. ICMP , WinRT (, , , ), .

Windows Store (http://lanscan.rcook.org/), .

+5

All Articles