Re: how to get IMEI of a pocket pc? by Peter
Peter
Wed Nov 23 04:19:04 CST 2005
Yes you can use lineGetGeneralInfo on Pocket PC - the IMEI is returned in
the serial number part of the struct. I don't have any c++ examples of
calling it, but the basic process is:-
lineInitializeEx - initialise TAPI
lineOpen - get a handle to the cellular line
lineGetGeneralInfo - get info structure
lineClose - close handle to line
lineShutdown - close handle to TAPI
Peter
--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com
"djarjar" <djarjar@discussions.microsoft.com> wrote in message
news:DD336852-31D8-4DF9-8422-BEA492C5B890@microsoft.com...
>I have only done it on Smartphone using the lineGetGeneralInfo method.
> I don't know if it is working on PPC but you can try to search these
> newsgroups for some example on how to use lineGetGeneralInfo.
>
> "Jingfu" wrote:
>
>> Is there any API in pocket 2003 can retrieve the IMEI of a pocket pc
>> device?
>>
>> I found that KernelIoControl function with IOCTL_HAL_GET_DEVICEID
>> parameter
>> can do this.
>> From msdn it says:
>>
>> Requirements
>> OS Versions: Windows CE 2.10 and later.
>> Header: Pkfuncs.h.
>> Link Library: Coredll.lib.
>>
>> however, I found no Pkfuncs.h in pocket pc 2003 sdk Include folder.
>>
>> Does it means this function is not supported in pocket pc 2003 SDK, or do
>> I
>> miss something to be able to use it?
>>
>> If this function is not supported in pocket pc 2003 SDK, is there any
>> other
>> methods to get IMEI( device ID) ?
>>
>> thx