如题!
应该没什么技术含量的东西,只是一时不如何查msdn
还请指点一下相关函数之类的, 谢谢啦~
------解决方案--------------------
HSIM hSim;
HRESULT hr;
hr = SimInitialize(SIM_INIT_NONE, NULL ,NULL,&hSim);
BOOL bRes = FALSE;
if(hr != S_OK)
return FALSE;
DWORD dwTotal=0,dwCurRec=0;
SIMPHONEBOOKENTRY phoneBookEntry={0};
hr = SimGetPhonebookStatus(hSim,SIM_PBSTORAGE_SIM,&dwCurRec,&dwTotal);
if(FAILED(hr))
goto SimFail;
//SIMCAPS simCaps={0};
//simCaps.cbSize = sizeof(SIMCAPS);
//hr = SimGetDevCaps(hSim, SIM_CAPSTYPE_PBINDEXRANGE, &simCaps);
//if(hr != S_OK)
//{
// goto SimFail;
//}
//dwTotal = simCaps.dwMaxPBIndex - simCaps.dwMinPBIndex+1;
//dwCurRec = simCaps.dwMinPBIndex;
DWORD iIdx=1;
while(iIdx <= dwCurRec)
{
memset(&phoneBookEntry,0,sizeof(SIMPHONEBOOKENTRY));
if(SUCCEEDED(SimReadPhonebookEntry(hSim,SIM_PBSTORAGE_SIM, iIdx, &phoneBookEntry)))
{
//写你要处理的代码
}
iIdx++;
}
SimFail:
SimDeinitialize(hSim);
return bRes;
查找GPRS用TAPI应该可以实现。