Triggering activesync event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

just the following problem: In my pocket pc (vb.net) application I need to
trigger (and handle) the event when the user initiates an ActiveSync event
(or better: when the activesync has finished). How can I do this?

I googled and I found a way to run an application everytime the user puts
the pocket pc in the cradle (and activesync is launched). But what I haven't
found is a way to trigger in a way, that only my handler (a vb.net function)
is called. Can anyone help?

Thanks a lot
Peter
 
Thanks for replying! But unfortunately, neither CeRunAppAtEvent or
CeSetUserNotification are able to call a function/sub (!) inside my running
vb.net program - or are they?

Thanks
Peter
 
You might try passing them a named event name, rather than an application
name. You'd have to fork off a thread in your program which would use
CreateEvent() to create an instance of the indicated named event, then call
CeRunAppAtEvent() to tell the notification system to fire the event when the
system 'event' occurs, then wait on that event and do the right thing when
the event is fired. Look at OpenNETCF's Notification class. It does this
with CeRunAppAtTime() and the format for the application name string is the
same as you'd use for CeRunAppAtEvent().

Paul T.
 
Back
Top