Database management during synchronization is handled completely by the conduit.
There is a standard database call used by the Sync Manager to create a database:
long SyncCreateDB(CDbCreateDB& rDbStats)
Like all the Sync Manager routines,
SYNCERR_NONE if no error occurs; otherwise, it
returns an error code.
SyncCreateDB creates a
new record or resource database on the handheld and then opens it.
You have the same control over database creation from within the
conduit that you have on the handheld.
parameter is of the type
and contains the following important fields:
Output field. On a successful return, this contains a handle to the created database with read or write access.
Database creator ID. This should typically match the creator ID of the application.
The database attributes. Choose one of the following:
eRecord for a standard database or
eResource for a resource database. Another flag
within which you can do a bitwise-or is
(this sets the backup bit of the database).
The 4-byte database type.
Memory card where the database is located. Use 0, since no Palm OS device has (or will likely have) more than one writable memory card.
The database name.
The version of the database.
Reserved for future use. Must be set to 0.
The Sync Manager call to open a remote ...