CeRunAppAtEvent RSS232_DETECTED to detect Active Sync Connection

M

Maja Kaeding

Hi!

I'm using the RSS232_DETECTED notification (CeRunAppAtEvent) to detect a
starting Active Sync connection on a PPC. This working really good on Device
with Pocket PC 2003 (SE) Phone Edition as OS.
But on devices with Windows Mobile 5 Phone Edition nothing happens. I think,
it has something to do with the way the devices Syncs (PPC 2003 : COM & WM5
: Network).

Does anybody knows, whether there is a way to start an application on WM5
devices automatically, when an Active Sync Connection is established?
I've tried the SYNC_END notfication, works fine, but this event fires much
to often (even if the device is not connected!!). Seems to be, there is a
timer that starts the notifation every 10 minutes or so.

PS: I'm using VB.NET 2005!

Greets
Maja
 
F

Fabien

Hi,

With WM 5.0, you have the new notification API and you have an event
indicating you that Active Sync is connected or not :
Here it is an exemple in C# :
You must create a SystemState object and then associate to the
ActiveSyncStatus property like this:
mySystState = new SystemState(SystemProperty.ActiveSyncStatus);
then you write the code in your handler mySystState_Changed...
mySystState.Changed += new ChangeEventHandler(mySystState_Changed);

BR

Fabien Decret
Windows Embedded consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Maja Kaeding a écrit :
 
M

Maja Kaeding

Super!

Thats what I've been looking for

Thanks a lot
Maja


Hi,

With WM 5.0, you have the new notification API and you have an event
indicating you that Active Sync is connected or not :
Here it is an exemple in C# :
You must create a SystemState object and then associate to the
ActiveSyncStatus property like this:
mySystState = new SystemState(SystemProperty.ActiveSyncStatus);
then you write the code in your handler mySystState_Changed...
mySystState.Changed += new ChangeEventHandler(mySystState_Changed);

BR

Fabien Decret
Windows Embedded consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Maja Kaeding a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top