Detecting an ActiveSync connection?

  • Thread starter Thread starter djohnson
  • Start date Start date
D

djohnson

Hi,
Is there a way to, from within a c# application, detect when an ActiveSync
connection is made?
Specifically, I have an application that is running, can this application
*hook* into some event that is raised when the device is docked?

Is there a way to use the CeRunAppAtEvent to raise an event that my
application can catch?

Does anyone have any ideas on how to do this?

Thank You,
David Johnson
 
After thinking about it a bit,

One thought is that a small application could be launched on the event that
simply writes a reg key with a "connected" value.

The second app would poll the registry key value at regular intervals and
take some action when the "connected" value was found. After acting on the
"connected" value the second app could reset the registry key flag to "not
connected"

Its ugly, and may work, but isn't there a better solution to handle
detecting the event?

Thanks

David Johnson
 
Back
Top