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
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