auto-reply: RTFM
Well, I was looking for it... I spent time but probably not using the correct reference book...
What I wanted is finally working great; in MFC it could look like the foolowing:
BOOL CPhoneHelper::MakePhoneCall(CString strPhoneNumber, CString strCalledName)
{
WCHAR pszDestAddress[TAPIMAXDESTADDRESSSIZE];
WCHAR pszCalledParty[TAPIMAXCALLEDPARTYSIZE];
PHONEMAKECALLINFO pmci;
wcsncpy(pszDestAddress, strPhoneNumber, TAPIMAXDESTADDRESSSIZE-1);
wcsncpy(pszCalledParty, strCalledName, TAPIMAXCALLEDPARTYSIZE-1);
pmci.cbSize = sizeof(PHONEMAKECALLINFO);
pmci.dwFlags = PMCF_DEFAULT;
pmci.pszDestAddress = pszDestAddress;
pmci.pszAppName = NULL;
pmci.pszCalledParty = pszCalledParty;
pmci.pszComment = NULL;
if (PhoneMakeCall(&pmci) == 0)
return TRUE;
else
return FALSE;
}
|