I'm current patching DmDeleteDatabase (for specific needs of my app) but
I'm running into some problems when installing a new version of the app over
the top of an older version (because DmDeleteDatabase gets called to delete
the old version). So I need to know, in my hack, whether or not the palm is
currently Syncing w/ the desktop.
    I've tried intercepting the 'sysAppLaunchCmdSyncRequestLocal' launch
command and setting an application preference to 'true' using
'PrefSetAppPreferences' and then setting it back to false when I get a
'sysAppLaunchCmdSyncNotify' launch command (my code is shown below). Which
in theory, should work perfectly for finding out whether it is syncing or
not. But it doesn't seem to be. So I'm asking is there anyway to check and
see whether the palm is currently syncing or could anyone show me something
wrong w/ my code.


When I get a 'sysAppLaunchCmdSyncRequestLocal' or
'sysAppLaunchCmdSyncRequestRemote' launch command I do:

Boolean   syncing = true;
PrefSetAppPreferences(AppFileCreator, MyPrefrenceID, MyAppVersion, &syncing,
sizeof(Boolean), true);


When I get a 'sysAppLaunchCmdSyncNotify' launch command I do:

Boolean   syncing = false;
PrefSetAppPreferences(AppFileCreator, MyPrefrenceID, MyAppVersion, &syncing,
sizeof(Boolean), true);


To check whether it is syncing or not I do:
Boolean   syncing;
UInt16     size = sizeof(Boolean);
PrefGetAppPreferences(AppFileCreator, MyPreferenceID, &syncing, &size,
true);


Thanks in advance for all your help.....



____________________________________________________________
Samuel Trimble - Extended Technology Systems
"Extending Information Via HandHeld Computer Technology"
Web site:                 http://www.exts.com
Email to PC:             [EMAIL PROTECTED]
Email to HandHeld:  [EMAIL PROTECTED]
"We're Out There"



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to