PC Review


Reply
Thread Tools Rate Thread

How to detect from PPC when ActiveSync is connected

 
 
Tihomir Ignatov
Guest
Posts: n/a
 
      3rd Jun 2005
Hello,
How can I detect from my device when Activesync is connected?

Tihomir
 
Reply With Quote
 
 
 
 
Arun
Guest
Posts: n/a
 
      3rd Jun 2005
Try CeRunAppAtEvent API with NOTIFICATION_EVENT_RS232_DETECTED

http://support.microsoft.com/default...;en-us;Q276556

http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=97

Remember you always need to clear by calling CeRunAppAtEvent API again
with NOTIFICATION_EVENT_NONE

Hope this helps,
Cheers,
Arun.
www.innasite.com

 
Reply With Quote
 
Richard Lewis
Guest
Posts: n/a
 
      3rd Jun 2005
Tihomir Ignatov wrote:

> Hello,
> How can I detect from my device when Activesync is connected?
>
> Tihomir


try checking the IP address for PPP_PEER

private static bool IsInCradle()
{
bool result = false;
try
{
// if the device is in the cradle and connected to ActiveSync
// then the desktop computer can be accessed using the hostname
// "PPP_PEER"
IPAddress nullAddress = new IPAddress(0);
IPHostEntry activeSync = Dns.GetHostByName("PPP_PEER");
if(activeSync != null)
{
for(int index=0; index < activeSync.AddressList.Length; index++)
{
if(activeSync.AddressList[index].Address != 0)
{
result = true;
break;
}
}
}
}
catch {}
return result;
}
 
Reply With Quote
 
Robert Levy [MS]
Guest
Posts: n/a
 
      3rd Jun 2005
On Windows Mobile 5.0, you can just query the SystemState.CradlePresent
property


"Tihomir Ignatov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> How can I detect from my device when Activesync is connected?
>
> Tihomir



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Detect ActiveSync =?Utf-8?B?TWljaGFsIFJpemVr?= Microsoft C# .NET 0 29th Oct 2007 12:51 PM
wi-fi is not working when connected via ActiveSync knurgb Microsoft Dot NET Compact Framework 4 20th May 2006 02:01 PM
Find IP of Desktop PC from PPC Activesync Connected =?Utf-8?B?QXJ1bmt1bWFy?= Microsoft Dot NET Compact Framework 4 27th Jun 2005 07:42 AM
Using Dns.Resolve() when connected via ActiveSync Chris Darrigo Microsoft Dot NET Compact Framework 0 2nd Sep 2004 12:13 PM
Check if connected via ActiveSync Dan M Microsoft Dot NET Compact Framework 1 9th Jan 2004 09:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:38 AM.