From: "Ralf Zimmermann" <[EMAIL PROTECTED]>
> 1) How do i get the user name (which is used during hotsync) of the
device?
> 2) Is there a unique id of the device that i can read in my application?

These 2 questions are asked by someone at least once a month, so the
archives are a good place to look (eGroups or eScribes).  There is also a
knowledge base article that answers the first question.  Here is one way to
do it:

#include <DLServer.h>
...
static void GetUserName( Char * UserName )
{
  MemHandle nameH;
  Char *nameP;

  nameH = MemHandleNew( dlkMaxUserNameLength + 1 );
  nameP = MemHandleLock( nameH );
  MemSet( nameP, dlkMaxUserNameLength + 1, 0 );
  DlkGetSyncInfo( NULL, NULL, NULL, nameP, NULL, NULL );
  StrCopy( UserName, nameP );
  MemPtrUnlock( nameP );
}

The short answer to question #2 is: no.  The long answer depends upon which
devices your app runs on.  See the archives.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to