PDA

View Full Version : Execute a Phone Call on a PPC with build in CellPhone


DirectDance
02-26-2007, 10:09 AM
Hi there,

here is, how to execute a phone call on a Pocket PC with build in Cell Phone. I have tested it on my MDA Vario II, should work on all other PPC´s with build in Cell Phone, too:


#declare PhoneMakeCall "phone.dll" PhoneMakeCall 1 1

#define PHONEMAKECALLINFO {"cbSize", "dwFlags", "pszDestAddress", TWIDE, "pszAppName", TWIDE, "pszCalledParty", TWIDE, "pszComment", TWIDE}

proc PhoneCallNow(phonenumber$)
phonenumber$ = wide(phonenumber$);
struct(pinfo$, PHONEMAKECALLINFO);
pinfo.cbSize$ = sizeof(pinfo$);
pinfo.dwFlags$ = 0;
pinfo.pszDestAddress$ = &phonenumber$;
pinfo.pszAppName$ = NULL;
pinfo.pszCalledParty$ = NULL;
pinfo.pszComment$ = NULL;
result$ = PhoneMakeCall(&pinfo$);
end;

phonecallnow("the number to dial here");


Using the command "phonecallnow" together with a valid phonenumber will execute your build in cell phone app and dial the number.

I needed it for a project of mine, but because I love this great community, I would like to share it here. Have fun with it !lol

Cheers,
DirectDance

matteo.m
02-26-2007, 03:19 PM
Thanks DirectDance to share this, for me is very useful i didnt had any clue how to make it!! thanks a lot

kornalius
02-26-2007, 08:03 PM
Wow this is nice, I didn't know it was even possible.