0

I was wondering if there was a .NET wrapper for winInet that gives me managed code. I am aware of .NET wrappers for things like directx and openGl. For my new job, winInet is very important, however I don't have much knowledge of win32 api or C++.

I took a look over at this post and didn't quite see what I was looking for.

This post here is much closer, but the link doesn't appear to be working.

Community
  • 1
  • 1
Alexander Ryan Baggett
  • 2,347
  • 4
  • 34
  • 61

1 Answers1

1

You may use that syntax (just as a sample):

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

So, in your code you just jave to call:

If InternetGetConnectedState(0,0) = true

Look, it´s just a sample of what you must do. Good luck

David BS
  • 1,822
  • 1
  • 19
  • 35