I just asked POSE about the number I spoke about. It was my fault, I admit,
calling the serial number of the ROM "machine's ID".
I suggest we postpone my execution for a while.
So after I asked POSE with
CharPtr p;
Word sz;
Word error;
error = SysGetROMToken(0, sysROMTokenSnum, (unsigned char**)&p, &sz);
it replayed with:
error: 65535 (which, when heard from appropriate angle could sound
like -1)
p:0x00000000 (nothing to say)
sz: 0 (on volume off).
My player is POSE 2.1d24 with the latest amplifier from MW (the values are
from CW's panel).
What I would like to know is the verse of the popular "Are you real Palm,
aren't you a POSEr". It is guaranteed that the song would be performed by
IIIrd or above generation players or by emulator.
Would you take the leading, please?
With kidding aside I solved it, but the behaviour of SysGetROMToken is a bit
different from what you said. Am I missing something again?
Thanks,
Bobby
-----Original Message-----
From: Jim Schram <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 09 #237#ado 1999 a. 18:35
Subject: Re: POSE Pilot unique ID emulation
Hi Bobby,
>Does anyone knows what's the standard behavior of POSE when asked about
the
>machine's ID?
Usually it just sits there, ignoring us humans. I've tried asking
nicely,
using 'please' and 'pretty please' but to no avail. I've even tried
shouting,
but that didn't work either. I think mine's mad at me now. :oP
>Can I rely on what I have (I haven't checked it yet, but it seems to me
it
>doesn't return error code on HwrGetRomToken).
I don't know... what do you have? HwrGetRomToken returns an error if the
token is not found... so which is it? BTW, you should be using
SysGetROMToken,
not HwrGetRomToken.
>Finally, can I somehow emulate the ID?
You could try, but your NOT a number! You're a human being!
All kidding aside, what exactly are you trying to do? Show us your code.
What version of POSE? Windows or Mac? What ROM image? What ROM tokens are
you
trying to get? Do you want the serial number of the device or the hardware
ID?
Do you want to know if you're running on a licensee product or a Palm
product?
If you're trying to get the unit's serial number from code running
inside
POSE, you'll get back a 'faked' number ("Pilot1234567" or something like
that)
because that information lives outside of the ROM image.
Best Regards,
Jim Schram
3Com/Palm Computing
Partner Engineering
Bobby Kolev
Software Engineer,
Interactive Edge LLC.
email: [EMAIL PROTECTED]
work: (212) 462 49000 ext.216, voice #257
home: (718) 349 1030