.net Compact Framework question on loading phone APIs

S

Sirfalas

Hi.

I am using the .net compact framework(using vb.net) to develop for
phones running on windows mobile 2003. Particularly my Xphone for now
but as i get more familiar, i'll develop it for all the devices.

But what i need to know is, how do i access the phone API's? I find
there are some files with names like phone.lib but when i search for
examples, they keep telling me to do a dllimport(core.dll) or
dllimport(phone.dll). But these dll files don't exist anywhere in the
first place. i did a search for them on my harddrive but i can't find
it so how am i supposed to import these APIs.

Someone help. Thank you.
 
P

Peter Foot [MVP]

From .NETCF code you can Platform Invoke (P/Invoke) the various
Phone/SMS/SIM API functions. However you'll find this has already been done
in the OpenNETCF.Phone.dll (part of the SDF - www.opennetcf.org/sdf/) or if
you just want the basic phone support as found in the new Windows Mobile
v5.0 APIs you could use the InTheHand.WindowsMobile.Telephony.dll assembly
in this free package (http://www.inthehand.com/windowsmobile.aspx)

Peter
 
S

Sirfalas

thanks. i am checking out the 'inthehand' APIs. I have the opennet
compact framework v1.2. but for some reason, it doesn't seem to work
properly.

1) I use the 'GetDeviceID' in opennetCF to get the imei number but
when i put it on my phone, i just get something like
0000111-01110-111011-111000. What's wrong?

2) If i want to just access the phone details like the IMEI and Sim
Card functions, what API would i need?

3) I heard that in the mobile 5.0 APIs, stuff like the IMEI can be
retrieved easily without requiring App signing. Is that true as well?

Thanks for the prompt help. I really appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top