Windows Vista Tips

Windows Vista Tips > Newsgroups > ActiveSync > Re: How to ActiveSync Status using Pocket PC 2003 SDK

Reply
Thread Tools Display Modes

Re: How to ActiveSync Status using Pocket PC 2003 SDK

 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a

 
      05-11-2009
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.

<> wrote in message
news:29f5dddf-e76a-4d88-9aa2-...
> 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.Active SyncStatus'
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pocket PC hangs when running Direct3D and ActiveSync Robert Janik ActiveSync 0 10-25-2006 02:57 AM
Re: Cingular 8125/WM5.0/Win2000/AS 4.1 No Can Do... Raj Pillai ActiveSync 1 04-26-2006 01:33 PM
Pocket PC developer ActiveSync horrors Mike ActiveSync 0 03-21-2006 07:36 PM
Can't reach Internet from Pocket PC duely connected and synced with my PC Michel Merlin ActiveSync 2 12-23-2004 08:50 PM
Outlook 2003, ActiveSync, Pocket PC Phone, XP, HP Pavilion Tommy ActiveSync 4 09-01-2004 05:51 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59