Oops. I responded to the part about sysTrapHostControl, but didn't answer the
real question. To determine if you're running under Poser or not, check for the
'pose' feature. Using the technique of calling HostGetHostID requires that
sysTrapHostControl be implemented, which is not something you can safely check
for on pre-3.0 systems.
-- Keith Rollin
-- Palm OS Emulator engineer
Robert Herold <[EMAIL PROTECTED]> on 01/21/2000 12:36:30 PM
Please respond to [EMAIL PROTECTED]
Sent by: Robert Herold <[EMAIL PROTECTED]>
To: "'palm-dev-forum @ls.3com.com'" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: Where is sysTrapHostControl defined
I'm trying to write code that figures out if I am running on the emulator or
not. The include file that comes with the emulator, HostControl.h, has
declarations for just the function I need: HostID HostGetHostID (void);
Trouble is, that devolves to a trap, sysTrapHostControl, and I cannot find
the trap definition anywhere in the emulator sources or in the System
headers.
Anyone know where I can find the definition, or failing that, what the trap
number is?
-- bob
====================
Robert Herold (650) 627-3302
Webvan Group, Inc (650) 627-3948 (fax)
310 Lakeside Drive [EMAIL PROTECTED]
Foster City, CA 94404 www.webvan.com