Hi Bastian,

Here you are - this is a method I use.

CharPtr getName()
{
 static char name[dlkUserNameBufSize];

 DlkGetSyncInfo( NULL, NULL, NULL, name, NULL, NULL );
 if (!name[0])
 {
  StrCopy( name, "Emulator" );
 }
 return name;
}

Alastair

ps.  Have you noticed how many Palm programming snobs there are?  You post a
reasonable question onto the group and get abuse for it.  In cases where the
person really hasn't made an effort to find out, then fair enough, but I
know for a fact that this bit of code isn't available in any of the
documentation handed out by 3Com (or anyone else I could see), and it isn't
on the 'Knowledge' base either.

Alastair



----- Original Message -----
From: Bastian <[EMAIL PROTECTED]>
To: Palm Dev Mailing List <[EMAIL PROTECTED]>
Sent: Monday, September 27, 1999 5:07 PM
Subject: User Information


> Hi,
>
> does someone know how to get the user or owner string (set in
> Prefs/Owner) within a program?
>
> Thanks a lot
>
> Bastian
>


Reply via email to