FYI, the answers are found in HostControl.h Use this snippet to determine if you are on the emulator or simulator:
HostIDType hostID = HostGetHostID(); bool simulatorPresent = (hostID == hostIDPalmOSSimulator); bool emulatorPresent = (hostID == hostIDPalmOSEmulator); -Jon -------------------------------------------- Jonathan Hays Palm OS Certified Developer http://hazelware.luggle.com -------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Emilio Millan Sent: Wednesday, April 21, 2004 7:46 AM To: Palm Developer Forum Subject: Re: How to determine if an app is running on the Simulator? Well, I think I found my answer: Get the processor ID and if it's an Intel x86, I'm on the Simulator. Here's the code snippet: UInt32 idProcessor=0xFFFF; Err err = FtrGet(sysFtrCreator, sysFtrNumProcessorID, &idProcessor); if ((idProcessor & sysFtrNumProcessorMask) == sysFtrNumProcessorx86) { // Running on the Simulator. } Emilio Emilio Millan wrote: > I can *partially* answer my own question. Some Simulators (Garmin's and > at least some of the non-device-specific ones from PalmSource) return a > Company ID of 'psys' and a Device ID of ''. But the T3 Simulator > returns exactly what the T3 returns, so this isn't a complete solution. > > Emilio > > Emilio Millan wrote: > >> Does anyone know a way to determine programmatically whether or not an >> app is running on the Simulator? I'd like to know this so I can avoid >> calling SysGlueTrapExists() when running on the Simulator. (Calling >> SysGlueTrapExists() on the Simulator causes a debugger break.) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/