using System;
using System.Runtime;
using System.Runtime.InteropServices;
public static class InternetConnectionStatus
{
    [DllImport("wininet.dll")]
    private extern static bool InternetGetConnectedState(out int Description, int Reserved);
    public static bool Connected()
    {
        int Descript;
        return InternetGetConnectedState(out Descript, 0);
    }
}

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-07-14
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2021-05-13
  • 2021-12-05
  • 2021-11-19
  • 2021-11-18
  • 2021-07-17
相关资源
相似解决方案