PDA

View Full Version : how to determine an XDA environment


xgadkob
10-04-2003, 01:37 PM
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
10-04-2003, 04:21 PM
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
11-04-2003, 09:33 AM
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.