Simple.. you need to respond to the launch code
sysAppLaunchCmdSyncNotify in your PilotMain, then you can run any code
you like. Unfortunately there is a limitation; you cannot use global
variables at this stage.
In a related question, does anyone know how I can switch out of Hotsync
to another app when responding to sysAppLaunchCmdSyncNotify? Using
SysUIAppSwitch() resets the device, SysAppLaunch() doesn't do anything.
> my program need to detect the hotsync then disable some
> functions. is it
> possible to receive message during hotsync even my program is
> not runing?
>
> Eric
>
>