Get Object id from PhoneGetCallLogEntry

 HANDLE h;
  CEOID oidCallLog = (CEOID) pItemArray->rgRefs[0].pRef;
  hr =PhoneOpenCallLog(&h);
  CHR(hr);
  CEOID re;
  hr=PhoneSeekCallLog(h,CALLLOGSEEK_END,0,&re); //finding the ref of last record
  CHR(hr);
  DWORD i,pp;
  CALLLOGENTRY pCall[150]; //limited to 150 entries
  for (i=0;i<re;i++){
   hr=PhoneSeekCallLog(h, CALLLOGSEEK_BEGINNING,i,&pp);
   CHR(hr);
   pCallIdea.cbSize=sizeof(CALLLOGENTRY);
   hr=PhoneGetCallLogEntry(h,&pCallIdea);
   CHR(hr);    
  }
  //testing now
  __int32 temp;
  oidCallLog=(CEOID)pCall[0]; //here i'm testing
  temp=oidCallLog;
  wchar_t buffer[64];
  _itow(temp,buffer,10);
  ::MessageBox(GetActiveWindow(),buffer,TEXT("test"),MB_OK);

////////////// The result is really different when i check the value of oidCallLog !! ! ! !

-----------------------------------------------------------------

hi all,

i'm trying to add a new menu extension for call history.

i used everything based on Inbox menu extension sample in WM2005 sdk

evertything works great,except i dont know how to relate the Object id (oidCallLog) which i'm getting from the context menu,with the actualy call log entry.

i mean,pCallIdea has the call log. how to extract an object id from it which would be really same as the one i'm getting from pItemArray, so i know exactly this is the call log i'm selecting with context menu.

 

i hope i made it clear enough :(

 

Thankx alot in advance



Answer this question

Get Object id from PhoneGetCallLogEntry