>> Perhaps you may find following coding useful.  It solves half of your
>> problem (i.e. determine Treo600), for Treo650, more information about
>> the Dev ID is needed.

For the Treo 650, surprisingly, the DevID = 'H102'...

// Treo 600 related code names
#define Treo600ComID 'hspr'
#define Treo600DevID 'H101'

#define Treo600ComIDSim 'hspr'
#define Treo600DevIDSim 'H201'

static Boolean Treo600Test()
{
        UInt32 companyID;
        UInt32 deviceID;

        FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID);
        FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceID);
        
        return (((companyID == Treo600ComID) && (deviceID ==
Treo600DevID)) ||
                ((companyID == Treo600ComIDSim) && (deviceID ==
Treo600DevIDSim))
               );
}


Regards,
Stephen H.S. Lee


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Lussier
Sent: Thursday, December 02, 2004 1:53 AM
To: Palm Developer Forum
Subject: determine treo



does anyone know, how programatically it can be determined if running on
a 
Treo (600/650)?

I would think something along the lines of

 UInt32  deviceId;
 FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceId);

if (deviceId== whatever)
??
so Maybe a stupid question
but appreciate is anyone knows

thanks!







-- 
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/

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

Reply via email to