Hi, i use TAPI wrapper! download on
http://www.alexfeinman.com/download.asp?doc=Tapi1.6.zip
Code example to retrieve IMEI:
--------------------------------------------------------
using Opennetcf.tapi;
Line line;
Tapi tapi;
int ret = 0;
tapi = new Tapi();
tapi.Initialize();
line = tapi.CreateLine(0, LINEMEDIAMODE.DATAMODEM,
OpenNETCF.Tapi.LINECALLPRIVILEGE.OWNER |
OpenNETCF.Tapi.LINECALLPRIVILEGE.MONITOR);
LINEOPERATOR lop = new LINEOPERATOR();
byte[] data = new byte[lop.SizeOf];
ret = CellTSP.lineGetCurrentOperator(line.hLine, data);
ByteCopy.ByteArrayToStruct(data, lop);
OpenNETCF.Tapi.LINEGENERALINFO lgi =
new OpenNETCF.Tapi.LINEGENERALINFO(1024);
lgi.Store();
ret = CellTSP.lineGetGeneralInfo(line.hLine, lgi.Data);
lgi.Load();
return lgi.SerialNumber.Substring(0, 15); <--- IMEI