OK
im on a 56k aol connection That says it all
When Aol was either closed or running but NOT connected i got:
ONLINE
NOT CONNECTED
When Aol was connected (able to brows the net) i got:
ONLINE
CONNECTED
so it seems the only one that's worth using is the second one which uses the Wininet.dll
Heres the final source to decide wether or not you can exchange packets and view web pages (connected or not)
load dll "wininet.dll", 1
do
if InternetGetConnectedState() then connection# = 1
if connection#=1 then exit
loop
delete dll 1
end
function InternetGetConnectedState()
local Result as dword
local Flags as dword
local TempMem as dword
TempMem=make memory(4)
Result = call dll(1, "InternetGetConnectedState", TempMem, 0)
Flags = *TempMem
delete memory TempMem
if Result > 0
if (Flags && 0x20) > 0 then Result=0
endif
endfunction Result
>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!