//Read the calllogs on windows mobile.
HANDLE loghandle;
//open the call log handle.
HRESULT hr =PhoneOpenCallLog(&loghandle);
if (hr == S_OK)
{
CEOID re;
//finding the ref of last record.
hr=PhoneSeekCallLog(loghandle,CALLLOGSEEK_END,0,&re);
DWORD pp;
CALLLOGENTRY pCall; //limited to 150 entries
for (DWORD index=0;index<re;index++)
{
hr=PhoneSeekCallLog(loghandle, CALLLOGSEEK_BEGINNING,index,&pp);
pCall.cbSize=sizeof(CALLLOGENTRY);
hr=PhoneGetCallLogEntry(loghandle,&pCall);
//then you can get what you want from 'pCall'.
}
//close the log handle.
PhoneCloseCallLog(loghandle);
}