Use this.
static void launchHotSync() {
Err err;
UInt16 cardNo;
LocalID dbID;
DmSearchStateType searchInfo;
err = DmGetNextDatabaseByTypeCreator(true, &searchInfo, sysFileTApplication,
sysFileCSync, true, &cardNo, &dbID);
if(err)
{
FrmAlert(1000);
}
else
{
err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdSyncRequestLocal,NULL);
}
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Fabrice
Meichtry
Sent: Tuesday, January 16, 2001 4:21 AM
To: Palm Developer Forum
Subject: How to get the local ID of Hotsync
Hi,
I'm trying to launch hotsync directly from my application. I know I have to
use the SysUIAppSwitch but i don't know I I can get the the localID for the
hotsync application, any idea ???
thx
Fabrice
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/