How to check ActiveSync Connection Status?

K

kenjan

I want to download database data to PocketPC.
But I don't know how to check ActiveSync connection status,
so I can't determine whether the process enable or
disable, too.

Could you tell me how to do?

Thank a lot.
 
D

Dave Corun

I think you need to use RAPI to get that info.

This site has some really cool libraries wrapping up the API calls.
http://www.opennetcf.org/communication.asp

The code would be:

Dim i As New OpenNETCF.Desktop.Communication.RAPI
i.Connect(True)

If i.Connected = False Then
Me.lblError.Text = "Unable to connect to device"
Exit Sub
End If

Hope this helps!!

// Dave





I want to download database data to PocketPC.
But I don't know how to check ActiveSync connection status,
so I can't determine whether the process enable or
disable, too.

Could you tell me how to do?

Thank a lot.
 

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