How to set the speed dial option to a contact

  • Thread starter Thread starter stalliontheblack
  • Start date Start date
S

stalliontheblack

Hi All, i have a problem of assigning the speed dial to a particular
contact no in Windows Mobile 5.0. i have not seen the speed dial
function in Windowsmobile.telephony etc. if anyone could tell me the
function which will do that option, would be appreciated greatly.

Thanks in Advance
stallion
 
There isn't a function to set a SpeedDial in the managed libraries. You can
P/Invoke PhoneAddSpeedDial e.g.

[DllImport("phone.dll")]
private static extern int PhoneAddSpeedDial(int dwFlags, ref int piKey,
string pszDisplayName, string pszTelNumber);

int num = 2;
PhoneAddSpeedDial(0, ref num, contact.FileAs,
contact.MobileTelephoneNumber);

Peter
 
Back
Top