5,606,201 Members 33,766 Now Online
XDA Developers Android and Mobile Development Forum

how to determine an XDA environment

Tip us?
 
xgadkob
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 22
Join Date: Apr 2003
Default how to determine an XDA environment

Hi ,

I have a similar question as my neighbour,
but in another context:

I want do detemine from my Pocket PC-Application (written in eMbedded C++),
if it is runnung on an XDA or not.
(If it is not runnung on an XDA, I want to disable the phone-part of my application).

Perhaps anyone knows ?

Bye

Franz
 
bamse
Old
#2  
Senior Member
Thanks Meter 2
Posts: 375
Join Date: Mar 2003
I think the TAPI function phoneInitializeEx would do the trick. It will return the number of available phone devices.

It won't be able to tell an XDA from any other Pocket PC with a phone extension, but you probably don't want to do that anyway?
 
tyfy
Old
#3  
Member
Thanks Meter 0
Posts: 48
Join Date: Mar 2003
There are 2 things you can do.

If you want to know if you are runnung on an XDA then use lineGetGeneralInfo to get Model and Manufacturer.

For my XDA the Manufacturer comes up as HTC and the Model as Wallaby.

When you use lineGetGeneralInfo I have found that the phone needs to be on otherwise the call fails.

As an alternative you could use lineGetRadioPresence to see if there is a radio.

Both of there methods are in documented in ppc3sdkr.chm that comes with the PocketPC 2002 SDK.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes