|
Posted by Paul G. Tobey [eMVP] on May 11, 2009, 12:37 pm
You want to detect this *on the device*, right? You can try resolving the
host name "ppp_peer" from a program running on the device using
gethostbyname() from the WinSock API. If it resolves, there's a very high
probability that the connection is active (99%+). Seems like that should be
enough. Note that the best place to ask Windows Mobile-based development
questions is not the ActiveSync group, but
microsoft.public.pocketpc.developer. In fact, I think that searching the
archives of that newsgroup with GoogleGroups would get you an answer faster
than waiting for someone to respond to a new question...
Paul T.
> Hi All,
> I am using an iPAQ PDA device and Pocket PC 2003 SDK to develop a
> module which will sense and report ActiveSyncStatus i,e; whether its
> connected or not. I am able to acheive this by checking the property:
> 'Microsoft.WindowsMobile.Status.SystemState.ActiveSyncStatus'
> but just for Windows Mobile 5.0 Pocket PC Device, which actually does
> not work for Pocket PC 2003 target PDA and reports some dll dependency
> exception. :(
> Thanking in advance for ny ideas or help.
|
> I am using an iPAQ PDA device and Pocket PC 2003 SDK to develop a
> module which will sense and report ActiveSyncStatus i,e; whether its
> connected or not. I am able to acheive this by checking the property:
> 'Microsoft.WindowsMobile.Status.SystemState.ActiveSyncStatus'
> but just for Windows Mobile 5.0 Pocket PC Device, which actually does
> not work for Pocket PC 2003 target PDA and reports some dll dependency
> exception. :(
> Thanking in advance for ny ideas or help.