任何人都可以指导我如何使用c#中的skype4com来回答Skype通话。 目前我正在制作一个活动,当有来电并且运行良好但我不知道如何回答该电话...提前感谢您的帮助
using System.Runtime.InteropServices;
using SKYPE4COMLib;
[DllImport("winmm.dll")]
private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr oCallback);
skype.CallStatus += new _ISkypeEvents_CallStatusEventHandler(Skype_checkincoming);
public void Skype_checkincoming(Call call, TCallStatus status)
{
try
{
if ((call.Type == TCallType.cltIncomingP2P)
|| (call.Type == TCallType.cltIncomingPSTN))
{
if (status == TCallStatus.clsRinging)
{
}
}
}
catch (Exception e)
{
MessageBox.Show(DateTime.Now.ToLocalTime() + ": " +
"Call Status Event Fired - Failed" +
" - Exception Source: " + e.Source + " - Exception Message: " + e.Message);
}
}
答案 0 :(得分:1)
的问题是什么?
call.Answer();