WinInet DECLS to Mod - But Wrong

BlitzMax Forums/BlitzMax Programming/WinInet DECLS to Mod - But Wrong

Wouldn't it be something like...
Import "-lwininet"

Extern "Win32"
    Function InternetOpen(sAgent$z, lAccessType, sProxyName$z, sProxyBypass$z, lFlags) = "InternetOpenA@20"
End Extern

Local hOpen = InternetOpen("test", 1, Null, Null, 0)
DebugLog Hex(hOpen)
DebugLog Hex(hOpen)
DebugLog Hex(hOpen)

DebugLog ""

test()

End

Function test()
    Local hOpen = InternetOpen("test1", 1, Null, Null, 0)
    DebugLog Hex(hOpen)
    DebugLog Hex(hOpen)
    DebugLog Hex(hOpen)
End Function
??