RasEnumConnections problem on WM2005

K

Korwin

Hi,
When connect my device to desktop computer, ActiveSync synchronize and
establish connection. When call RasEnumConnections function on device with
PC2003, it returns ActiveSync connection. But on device with WM2005 it
returns no active connections.
So, my question is: How can I detect ActiveSync connection on device with
WM2005?

Korwin
 
C

Chris Oswald

There are probably several things you could look at in the SystemState
library. Here is what I would do.

Dim desktopConnections As New
Microsoft.WindowsMobile.Status.SystemState(Microsoft.WindowsMobile.Status.SystemProperty.ConnectionsDesktopCount)

AddHandler desktopConnections .Changed, AddressOf
ConnectionCountChanged

Private Sub ConnectionCountChanged(ByVal sender As Object, ByVal args
As Microsoft.WindowsMobile.Status.ChangeEventArgs)
MsgBox(args.NewValue)
End Sub
 
G

Guest

If you simply want to know if the connection exists, try resolving the
PPP_PEER domain name. If it resolves, you're connected.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top