|
| |||
| SimReadPhonebookEntry returns -2013265083 Hi, I am trying to retrieve the contact Information from SIM. I am using the SIMManager API's HSIM hSim; DWORD m = 0; DWORD n = 0; SimInitialize(0, 0, 0, &hSim); uint uiUsed = 0; uint uiTotal = 0; SimGetPhonebookStatus(hSim, SIM_PBSTORAGE_SIM, &m, &n); for(int i = 1; i <= m; i++) { SIMPHONEBOOKENTRY *entry = new SIMPHONEBOOKENTRY (); entry->cbSize = sizeof(SIMPHONEBOOKENTRY); HRESULT hr = SimReadPhonebookEntry(hSim, SIM_PBSTORAGE_SIM, i, entry); } SimDeinitialize(hSim); For certain i values(in my case if i==8) it returns -2013265083. The entry struct does not contain any value. Can someone shed light on this issue. Thanks, Krish |
| |||
| Re: SimReadPhonebookEntry returns -2013265083 Hello, Have you posted your question in the microsoft.public.pocketpc.developer group? You will likely receive an answer there quicker. Regards, -- Clinton Fitch, MVP-Mobile Devices http://www.clintonfitch.com http://www.hpcfactor.com "Krish" <mohanakrishnan.giridharan******.com> wrote in message news:bf633488-9ed1-4c37-8c43-6fb5e118405f@h5g2000yqh.googlegroups.com... > Hi, > > I am trying to retrieve the contact Information from SIM. > > I am using the SIMManager API's > > > HSIM hSim; > DWORD m = 0; > DWORD n = 0; > SimInitialize(0, 0, 0, &hSim); > > uint uiUsed = 0; > uint uiTotal = 0; > SimGetPhonebookStatus(hSim, SIM_PBSTORAGE_SIM, &m, > &n); > > for(int i = 1; i <= m; i++) > { > SIMPHONEBOOKENTRY *entry = new SIMPHONEBOOKENTRY > (); > entry->cbSize = sizeof(SIMPHONEBOOKENTRY); > > HRESULT hr = SimReadPhonebookEntry(hSim, SIM_PBSTORAGE_SIM, i, > entry); > } > SimDeinitialize(hSim); > > For certain i values(in my case if i==8) it returns -2013265083. The > entry struct does not contain any value. > > Can someone shed light on this issue. > > Thanks, > Krish |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CNN Mobile Returns | Beverly Howard [Ms-MVP/MobileDev] | Pocket PC General | 3 | 12-31-2007 07:11 PM |
| In IE7 Help About returns red X | Alfred Collins | Internet Explorer | 1 | 10-26-2007 12:30 AM |
| Always returns to login screen | Gr6au | Internet Explorer | 4 | 06-30-2007 05:10 AM |
| GetAvailableVidMem() returns DDERR_NODIRECTDRAWHW | Vikram | Vista Hardware | 0 | 04-12-2007 05:40 PM |
| Extra Returns in posts | Mack McKinnon | Windows XP Tablet PC Newsgroup | 5 | 08-16-2005 08:22 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |