wince 5 0 獲取手機號碼

2021-04-15 17:16:00 字數 1319 閱讀 4065

#include "stdafx.h"

#include "windows.h"

#include "tapi.h"

#include "tsp.h"

#include

#define exit_on_null(_p)     /

if (_p == null)    /

#define exit_on_false(_f)     /

if (!(_f))    /

#define tapi_api_low_version   0x00020000

#define tapi_api_high_version  0x00020000

#define caps_buffer_size    512

#define max_loadstring 25

tchar sznumber[max_loadstring];

hresult shgetphonenumber(lptstr sznumber, uint cchnumber, uint nlinenumber); 

dword dwtapilinedeviceid;

const dword dwaddressid = nlinenumber - 1;

liep.dwtotalsize = sizeof(liep);

liep.dwoptions   = lineinitializeexoption_useevent;

byte* pcapbuf = null;

dword dwcapbufsize = caps_buffer_size;

lineextensionid  lineextensionid;

linedevcaps*     plinedevcaps = null;

lineaddresscaps* placaddresscaps = null;

pcapbuf = new byte[dwcapbufsize];

exit_on_null(pcapbuf);

plinedevcaps = (linedevcaps*)pcapbuf;

plinedevcaps->dwtotalsize = dwcapbufsize;

//increase buffer size if too **all to hold the device capabilities

if (dwcapbufsize < plinedevcaps->dwneededsize)

hr = s_ok;

} delete pcapbuf;

} // end if ()

return hr;

}

獲取手機號碼

使用telephonymanager.getdefault getline1number 已經不能獲得目前移動sim卡的 號碼了,老的sim卡也許可以,現在介紹一種方法,可以獲得手機號碼 cursor mycursor getcontentresolver query uri.parse conte...

wap獲取手機號碼

原來獲取使用者手機號碼很簡單,關鍵是通訊營運商給不給你送。如果給你送的話,手機號碼是在http請求頭里獲取,通常在 x up calling line id項裡,如果通過此項得不到的話。可採用迴圈讀出所有的http頭里的資訊,號碼在哪乙個頭里就一目了然了。string userphone reque...

獲取手機號碼 和IMEI

nsuserdefaults standarduserdefaults valueforkey sbformattedphonenumber 獲取手機的imei import message networkcontroller.h networkcontroller ntc networkcontr...