"Yuva Kumar" <[EMAIL PROTECTED]> wrote in message
news:64121@palm-dev-forum...
>
> Hi All,
>
> Why is that the Owner preferences is not there in the Preference.h
file. How
> to set the owner information to the database. Where is the data for
Owner
> information - Preference are stored.
>
> PLEASE NOTE I AM ASKING ABOUT OWNER INFO AND NOT THE HOTSYNC USER
NAME.
While this is subject to change, the Owner string is stored as
preference #1 under the creator code 'ownr'. You can retrieve a copy of
it via
Int16 prefSize = 0;
void *owner = NULL;
PrefGetAppPreferences('ownr', 1, NULL, &prefSize, true);
owner = MemPtrNew(prefSize);
PrefGetAppPreferences('ownr', 1, owner, &prefSize, true);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/