locked
winapi on mobile device RRS feed

  • Question

  • I've got a question about programming for mobile devices in winapi. Is that possible to check if a mobile device like pocket PC or palmtop was connected to ActiveSync? I mean I need a code that will catch an event when the connection is established and active sync notifys about that.

    I'm using WinAPI, VS 2005 SP1, Windows Mobile 6.1
    Monday, February 2, 2009 10:53 PM

Answers

  •  
    A program can be scheduled to start upon the device being cradled through some registry settings.

    You can monitor the state of ActiveSync through the state and notifications broker (if you are not familiar with it see this, this, and this).


    One can also use CeRunAppAtEvent twith the argument  NOTIFICATION_EVENT_SYNC_END to be notified of when syncing completes.
    Joel Ivory Johnson
    Monday, February 2, 2009 11:52 PM