【问题标题】:Is there a .Net wrapper for WinInet是否有用于 WinInet 的 .Net 包装器
【发布时间】:2015-10-09 16:42:59
【问题描述】:

我想知道是否有一个为我提供托管代码的 winInet 的 .NET 包装器。我知道诸如directx 和openGl 之类的.NET 包装器。对于我的新工作,winInet 非常重要,但是我对 win32 api 或 C++ 了解不多。

我查看了this post 并不太明白我在寻找什么。

This post 这里更接近,但链接似乎不起作用。

【问题讨论】:

标签: .net wininet


【解决方案1】:

您可以使用该语法(仅作为示例):

<DllImport("wininet.dll")> _
Public Function InternetGetConnectedState(ByRef description As Integer, Reserved As Integer) As Boolean
End Function

所以,在您的代码中,您只需调用:

If InternetGetConnectedState(0,0) = true

看,这只是您必须做的一个示例。 祝你好运

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-07
    • 1970-01-01
    • 1970-01-01
    • 2010-09-10
    • 2012-09-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多