...dial a telephone number using the Telephony API?

Author: Thomas Stutz

Category: Misc

implementation

{$R *.DFM}

function tapiRequestMakeCall(DestAddress, AppName,
  CalledParty, Comment: PChar): Longint; stdcallexternal 'TAPI32.DLL';

procedure TForm1.Button1Click(Sender: TObject);
var
  
PhoneNumber, AppName: array[0..255] of Char;
begin
  
PhoneNumber := '1234567890';
  StrPCopy(AppName, Application.Title);
  tapiRequestMakeCall(PhoneNumber, AppName, '', '');
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base