Vini Bhatnagar wrote:
> Hi All,
>
> I need to retrieve owner name from Palm preferences for use in my
> application.
> To use any of the fuctions for Preferences SystemPreferencesChoice structure
> is used.
> but this does not have any reference to owner name.
> Please Help..
Hi Vini,
I used this in a recent app:
Char* GS_GetUsername()
{
Char G_Username[40];
Char* G_UsernamePtr;
Err err;
DlkGetSyncInfo(NULL,NULL,NULL,(Char *)&G_Username,NULL,NULL);
if(StrLen(G_Username) <= 1) {
StrCopy(G_Username,"None");
FrmCustomAlert(AlrtNoUsername,"","","");
}
G_UsernamePtr = G_Username;
return G_UsernamePtr;
}
Hope it helps...
'dillo
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/