Hello,
I'm writing a small app for a windows cd 5.0 device in .net 2005. This will be connected via Wifi.
I am trying to determine when the device is connected to the network. The IsNetworkAlive api call works fine on a Windows 2000/xp pc (example follows)
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
Const NETWORK_ALIVE_AOL = &H4
Const NETWORK_ALIVE_LAN = &H1
Const NETWORK_ALIVE_WAN = &H2
Dim Ret As Long
If IsNetworkAlive(Ret) = 0 Then
MsgBox "The local system is not connected to a network!"
Else
MsgBox "The local system is connected to a " + IIf(Ret = NETWORK_ALIVE_AOL, "AOL", _
IIf(Ret = NETWORK_ALIVE_LAN, "LAN", "WAN")) + " network!"
End If
Is it possible to do this on Windows CE?
Thank you.
I'm writing a small app for a windows cd 5.0 device in .net 2005. This will be connected via Wifi.
I am trying to determine when the device is connected to the network. The IsNetworkAlive api call works fine on a Windows 2000/xp pc (example follows)
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
Const NETWORK_ALIVE_AOL = &H4
Const NETWORK_ALIVE_LAN = &H1
Const NETWORK_ALIVE_WAN = &H2
Dim Ret As Long
If IsNetworkAlive(Ret) = 0 Then
MsgBox "The local system is not connected to a network!"
Else
MsgBox "The local system is connected to a " + IIf(Ret = NETWORK_ALIVE_AOL, "AOL", _
IIf(Ret = NETWORK_ALIVE_LAN, "LAN", "WAN")) + " network!"
End If
Is it possible to do this on Windows CE?
Thank you.