Start the phone, Process.Start() ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi folks,

Does anyone know if its possible to start the phone automatically, perhaps
via a call to Process.Start() ? Possibly even pass in a telephone number to
be dialled automatically? That would be neat!

David
 
This has worked nicely, and simply -

Process p = Process.Start(@"\Windows\cprog.exe", "");

I guess I could probably pass in some command line arguments to call a
number automatically. Cool.
 
You've not said which version of CE you are using. If Windows Mobile 5 you
can use the Phone class to initiate a call ie:-

Microsoft.WindowsMobile.Telephony.Phone phone = new
Microsoft.WindowsMobile.Telephony.Phone();
phone.Talk("12345");

The above class is foind in the WM5 SDK (Microsoft.WindowsMobile.dll).

If you are using pre WM5 then I *think* Peter Foot has written a wrapper for
this.
 
Hi,

Thanks for the reply. I'm building the app in VS 2005 as a Pocket PC 2003
project. Will probably port it over to Mobile 6 though. Looks nice and easy
that Phone class. Excellent!

David
 
Back
Top