Good Afternoon Alice,
You can get this information by running an application called Palm Name
which is freeware. I found it on www.smaller.com
It definitely helped me out. Here is a snippet from the readme that the
author of the app wrote:
The UserID is a number from 256 to 65535 (Word) this is also to identify
your
Palm device. The PalmDesktop (Win/Mac) uses this number to identify your
Palm
while syncing. The UserID is the actual criteria for identifing the Palm not
the UserName.
As far as I know the UserID is just a random number chosen by the
PalmDesktop
software at the first HotSync. The numbers from 0 to 255 are special. 0
means
no ID present, 1 to 255 are profiles.
If you just change the UserName and sync, the PalmDesktop will reset the
UserName to the old value (he identifies the device using the UserID).
So if you want to sync with a different user you have to change both the
UserName
and the UserID. If that UserID is new to the PalmDesktop you will be asked
if
a new user should be created by the PalmDesktop. This also happens if the
UserID actualy is a profile ID (1-255) then a new profile will be created.
If
the UserID is 0 (no UserID set) you have to select or creat a user. After
the
sync the Palm will be reseted (soft reset).
The FlashRom serial number and the OS version (string):
On startup (the first startup) of PalmName the original FlashRom serial
number and
the OS version (string) will be displayed. If you don't change them nothing
will
happen. If you change one or both the system traps will be patched. If you
want to
undo the patching just clear the fields and tap "Set ROM/OS", this will do
it. If
you want to look at the results just go to "App" -> "Info" menu in the
standart
launcher and select "Version" this will show you the changes. If you do a
soft reset
you have to start PalmName to patch the traps.
Hope this helps Alice.
Kevin
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alice
Potts
Sent: Tuesday, May 09, 2000 12:53 PM
To: Palm Developer Forum
Subject: Re: Get user id in application on Palm
Thanks for the information. However I'd like the user ID, not the user
name. I'd also like to know how the user ID is generated/assigned.
- Alice
"Richard Burmeister" <[EMAIL PROTECTED]> wrote in message
news:10846@palm-dev-forum...
>
> From: "Alice Potts" <[EMAIL PROTECTED]>
> > Is there a way to get the user id in an application running on a Palm?
>
> The answer to this is already in the archives several times, but here it
is
> again...
>
> #include <DLServer.h>
> ...
> Char userName[dlkMaxUserNameLength + 1];
> DlkGetSyncInfo( NULL, NULL, NULL, userName, NULL, NULL );
> // userName might not end with '\0', so insert one
> userName[dlkMaxUserNameLength] = '\0';
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/