Technology Questions

Go Back   Technology Questions > Hardware Questions > Electronics > Pocket PC General

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-19-2009, 11:44 AM
Krish
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-19-2009, 11:44 AM
  #2 (permalink)  
Old 01-19-2009, 11:44 AM
Clinton Fitch, MVP-Mobile Devices
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 12:51 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0