The following retrieves the phone type, either hsAttrPhoneTypeCDMA or
hsAttrPhoneTypeGSM:

UInt32 temp;
HsAttrGet(hsAttrPhoneType,0,&temp);

It is a Handspring function with the following definition:

#define sysTrapHsSelector                                 sysTrapOEMDispatch
#define hsSelAttrGet                                      0x27
#define SYS_SEL_TRAP(trapNum, selector) \
        = {0x3f3c, selector, m68kTrapInstr+sysDispatchTrapNum,trapNum}

Err             
HsAttrGet (UInt16 /*HsAttrEnum*/ attr, UInt32 param, UInt32* valueP)
                                SYS_SEL_TRAP (sysTrapHsSelector,
hsSelAttrGet);

I suppose if you didn't want to use the HS SDK, you could hardwire it.

--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 16, 2004 1:02 PM
To: Palm Developer Forum
Subject: Identifying Treo 600 CDMA from GPRS


Is there a way to programatically differentiate between a Treo 600 CDMA and
GPRS phones,

- using the Handspring SDKs, and
- without using the Handspring SDKs

Thanks!

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

Reply via email to