HighTechTalks DotNet Forums  

RasEnumConnections problem on WM2005

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss RasEnumConnections problem on WM2005 in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Korwin
 
Posts: n/a

Default RasEnumConnections problem on WM2005 - 10-10-2007 , 06:35 AM






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



Reply With Quote
  #2  
Old   
Chris Oswald
 
Posts: n/a

Default Re: RasEnumConnections problem on WM2005 - 10-10-2007 , 08:59 AM






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(Microso ft.WindowsMobile.Status.SystemProperty.Connections DesktopCount)

AddHandler desktopConnections .Changed, AddressOf
ConnectionCountChanged

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

On Oct 10, 5:35 am, "Korwin" <korwi... (AT) op (DOT) pl> wrote:
Quote:
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


Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: RasEnumConnections problem on WM2005 - 10-10-2007 , 09:22 AM



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


"Korwin" <korwinek (AT) op (DOT) pl> wrote

Quote:
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.