> To set it from a backuped infromation a a card if for some reaons
> the plam loses everthing like hardreset so i can hot syinc again
> using a cel fone etc...
the hotsync username is stored in the saved preferences database.
so, when you do a backup, make sure you include this file - and,
then, when you restore - it'll be as it was before. easy.
> we have a program here that make multiples hotsync at a server
> with palm has his name (the hotsync one) for this operation
> if a user is in another city anothe rplace..he can still make
> his hotsync with the server if i restore the program and the
> plam name form a memory card
see the response above - it is definately possible to set this
programatically; but, 99.9% of the cases you dont need to.
there is a structure stored in the preferences, like this:
typedef struct
{
UInt8 paddingA[4];
UInt32 userID;
UInt8 paddingB[32];
UInt8 userNameLen;
//UInt8 paddingC[7]; // x86 padding [for PalmSim]
UInt8 paddingC[3]; // arm padding [for ARM device]
UInt32 data;
} DlkUserInfoType_ARM;
db_ref = DmOpenDatabaseByTypeCreator('pref', 'psys', dmModeReadWrite);
if (db_ref)
{
MemHandle memHandle;
DlkUserInfoType_ARM *ptr;
memHandle = DmGetResource('psys', 4);
ptr = (DlkUserInfoType_ARM *)MemHandleLock(memHandle);
and, off you go. now, thats not rocket science; and, anyone can
write this up based on the header files distributed by palm and
have a little understanding of structure alignment - beware for
68k/arm/x86 :)
look for DlkUserInfoType structure in your header files - and,
then, you can fix it that way.
---
Aaron Ardiri
[EMAIL PROTECTED]
http://www.mobilewizardry.com/members/aaron_ardiri.php [profile]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/