Bonjour,

j ai un probleme je n arrive pas a intercepter les appels manqués
pour l instant j ai fait ca
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
 
            SystemState me = new SystemState(SystemProperty.ActiveApplication);
 
            SystemState state1 = new SystemState(SystemProperty.PhoneMissedCall);
            state1.Changed += new ChangeEventHandler(Interceptor1);
            state1.EnableApplicationLauncher("/notify " + me.ApplicationLaunchId );
            state1.EnableApplicationLauncher("/notify " + state1.ApplicationLaunchId);
 
            SystemState state2 = new SystemState(SystemProperty.PhoneIncomingCall );
            state2.Changed += new ChangeEventHandler(Interceptor2);
        }
 
        private void menuItem1_Click(object sender, EventArgs e)
        {
            SmsMessage sms = new SmsMessage( "0442424242", "Hello Message");
            sms.Send();
        }
 
        private MessageInterceptor interceptor =
            new MessageInterceptor( InterceptionAction.NotifyAndDelete, true );
 
        void Interceptor1(object sender, ChangeEventArgs  e )
        {
            SmsMessage sms = new SmsMessage("0442424242", "je viens de rater un appel");
            sms.Send();
        }
 
        void Interceptor2(object sender, ChangeEventArgs e)
        {
            SmsMessage sms = new SmsMessage("0442424242", "appel recu de ");
            sms.Send();
        }
    }
Ce code me permet d intercepter les message recus, mais ne fonctionne pas pour les manqués

Vous voyez mon probleme ?