Log in

View Full Version : PhoneOpenCallLog function throws an exception


Deepak
04-27-2005, 06:37 AM
There is some problem with PhoneOpenCallLog function whenever i use it, it throws an exception.....might be possible that m not using it in the correct way plz help me... M writing the following code......



#include <windows.h>
#include <windowsx.h>
#include <aygshell.h>
#include <Phone.h>
#include "resource.h"

HRESULT result;
HANDLE hPhoneOpenCallLog;
HANDLE *ph;

int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,
int nCmdShow
)
{
DWORD sizset = 0;
PCALLLOGENTRY pCallLogEntry;
sizset = sizeof(CALLLOGENTRY);

pCallLogEntry->cbSize = sizset;
pCallLogEntry->fOutgoing = 1;
result = PhoneOpenCallLog(ph);
PhoneGetCallLogEntry(ph,pCallLogEntry);
MessageBox(NULL,(const unsigned short *)pCallLogEntry-
>fOutgoing,NULL,1);
PhoneCloseCallLog (ph);
return 0;
}