Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server-Initiated Synchronization » MobiLink Listener SDK for Palm » Message processing interface

palm_lsn_ret enumeration Next Page

LsnMain function


Provides the main entry point to PalmLsn.lib, the Palm Listener library.

Prototype

UInt32 LsnMain(
UInt16 cmd,
MemPtr cmdPBP,
UInt16 launchFlags
)

Parameters
Return Value

A Palm OS error code. If the Palm listener library successfully processed the launch code, the function returns errNone.

Remarks

The values passed to LsnMain are analogous to the launch code parameters passed to PilotMain, the main entry point of a Palm OS application.

For more information about these parameters, consult your Palm OS Reference.

See also
Example

The following example, used in the Treo 600 smartphone implementation, passes launch code parameters to LsnMain in the main entry point of the Listener application.

UInt32 PilotMain(
/***************/
    UInt16 cmd,
    MemPtr cmdPBP,
    UInt16 launchFlags )
{
    return( LsnMain( cmd, cmdPBP, launchFlags ) );
}