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

前端 未结 1 1318
你的背包
你的背包 2020-12-21 01:53

Since the Metro environment on Windows 8 lacks most of the .NET framework class libraries or contains a substancially pared down version, is it possible to execute a \"ping\

相关标签:
1条回答
  • 2020-12-21 02:24

    No, unfortunately not. ICMP is not supported in WinRT: IcmpCreateFile and related Win32 APIs are only available in the "desktop" API partition. ICMP can be implemented using raw sockets but since these are not supported in WinRT (and usually require elevation, anyway), this option is also not available to you.

    As the developer of a Windows Store network scanning tool myself (http://lanscan.rcook.org/), I'd love to be able to do this.

    0 讨论(0)
提交回复
热议问题