本文介绍了newcall活动 - TAPI& cprog.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在开发一个位于cprog.exe旁边的WM 5.0应用程序,并在TAPI的帮助下监视来电。如果呼叫者匹配给定的号码,我的编程会丢弃呼叫。问题是cprog.exe在我的应用程序检查完呼叫之前就开始播放铃声了。有没有人知道如何防止这种情况发生?Hi, I'm developing an application for WM 5.0 that sits beside cprog.exe and monitor incoming calls with the help of TAPI. If the caller matches a given number my prog drops the call. The problem is that cprog.exe starts to play the ringtone before my app is done checking the callerid. Does anyone got any idea of how I can prevent this from happening?推荐答案 ArrayList stateList = new ArrayList (); ArrayList stateList = new ArrayList();  SystemState _statePhoneIncoming; SystemState _statePhoneIncoming;  SystemState _StatePhoneActiveCount; SystemState _StatePhoneActiveCount;  SystemState _phoneCaller; SystemState _phoneCaller;  SystemState _ localData; 私人SystemState _localData;private void _phoneCaller_Changed( object sender, ChangeEventArgs args) { void _phoneCaller_Changed(object sender, ChangeEventArgs args){ 串 s = SystemState 。PhoneIncomingCallerName + SystemState 。PhoneIncomingCallerNumber; string s = SystemState.PhoneIncomingCallerName + SystemState.PhoneIncomingCallerNumber;  MessageBox 显示(一个或多个); MessageBox.Show(s); } }  private void Form1_Load( 对象 发件人, EventArgs e) {private void Form1_Load(object sender, EventArgs e){ SystemState s; s = SystemState s;s = 新 SystemState ( SystemProperty 。PhoneIncomingCall); s.Changed + = new SystemState(SystemProperty.PhoneIncomingCall);s.Changed += new ChangeEventHandler (ChangeOccurred); stateList.Add(s); new ChangeEventHandler(ChangeOccurred);stateList.Add(s); _phoneCaller = _phoneCaller = new SystemState ( SystemProperty 。PhoneIncomingCallerNumber, true ); _phoneCaller.Changed + = new SystemState(SystemProperty.PhoneIncomingCallerNumber, true);_phoneCaller.Changed += new ChangeEventHandler (_ phoneCaller_Changed); } 如果您对此有任何疑问,请与我们联系。 问候, Malleswar new ChangeEventHandler(_phoneCaller_Changed);}Please let me know if you have any queries regarding this.Regards,Malleswar 这篇关于newcall活动 - TAPI& cprog.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-20 12:32