How to check ActiveSync Connection Status?

  • Thread starter Thread starter kenjan
  • Start date Start date
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.
 
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.
 
Back
Top