internet connection status

BlitzPlus Forums/BlitzPlus Programming/internet connection status

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

So far I've got this

SuperStrict

Extern "win32"
	Function LoadLibrary:Int(name$z) = "LoadLibraryA@4"
	Function GetProcAddress:Byte Ptr ( Library:Int , Name$z )
EndExtern


Local urld:Int = LoadLibrary( "C:\WINDOWS\system32\url.dll" )
Local InetIsOffline:Int(dwflags:Int) = GetProcAddress ( urld , "InetIsOffline" )


Notify InetIsOffline:Int(0)


Connected or not, it will always return 0, dunno what I did wrong here..