PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Message Interception API on WM6

Reply

Message Interception API on WM6

 
Thread Tools Rate Thread
Old 28-06-2007, 09:02 AM   #1
oldsap
Guest
 
Posts: n/a
Default Message Interception API on WM6


I used an vb.net application on my WM5 smartphone that uses message
interception API and it worked just fine. When i tried it on a WM6
emulator, it was also ok. But on a real WM6 smartphone device, it is
not able to intercept the incoming sms, instead, the sms goes directly
to the Inbox. How come?

  Reply With Quote
Old 28-06-2007, 09:43 AM   #2
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: Message Interception API on WM6

The API for this is the same, can you show us a code-sample of how you are
using it.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"oldsap" <charliesl45@gmail.com> wrote in message
news:1183017748.757254.176960@e16g2000pri.googlegroups.com...
>I used an vb.net application on my WM5 smartphone that uses message
> interception API and it worked just fine. When i tried it on a WM6
> emulator, it was also ok. But on a real WM6 smartphone device, it is
> not able to intercept the incoming sms, instead, the sms goes directly
> to the Inbox. How come?
>


  Reply With Quote
Old 28-06-2007, 10:12 AM   #3
oldsap
Guest
 
Posts: n/a
Default Re: Message Interception API on WM6

On Jun 28, 4:43 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> The API for this is the same, can you show us a code-sample of how you are
> using it.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
>
> "oldsap" <charlies...@gmail.com> wrote in message
>
> news:1183017748.757254.176960@e16g2000pri.googlegroups.com...
>
> >I used an vb.net application on my WM5 smartphone that uses message
> > interception API and it worked just fine. When i tried it on a WM6
> > emulator, it was also ok. But on a real WM6 smartphone device, it is
> > not able to intercept the incoming sms, instead, the sms goes directly
> > to the Inbox. How come?


This is my code snippet sir:

Private WithEvents msgInterceptor As MessageInterceptor

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
msgInterceptor = New
MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
AddHandler msgInterceptor.MessageReceived, AddressOf OnSMSRcvd
End Sub

Private Sub OnSMSRcvd(ByVal sender As Object, ByVal e As
MessageInterceptorEventArgs)
....
End Sub

  Reply With Quote
Old 02-07-2007, 07:05 PM   #4
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: Message Interception API on WM6

Okay, this would be used to intercept all messages, what happens if you
specify a rule to only catch certain messages?

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"oldsap" <charliesl45@gmail.com> wrote in message
news:1183021943.563611.251140@g37g2000prf.googlegroups.com...
> On Jun 28, 4:43 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> wrote:
>> The API for this is the same, can you show us a code-sample of how you
>> are
>> using it.
>>
>> Peter
>>
>> --
>> Peter Foot
>> Microsoft Device Application Development
>> MVPwww.peterfoot.net|www.inthehand.com
>>
>> "oldsap" <charlies...@gmail.com> wrote in message
>>
>> news:1183017748.757254.176960@e16g2000pri.googlegroups.com...
>>
>> >I used an vb.net application on my WM5 smartphone that uses message
>> > interception API and it worked just fine. When i tried it on a WM6
>> > emulator, it was also ok. But on a real WM6 smartphone device, it is
>> > not able to intercept the incoming sms, instead, the sms goes directly
>> > to the Inbox. How come?

>
> This is my code snippet sir:
>
> Private WithEvents msgInterceptor As MessageInterceptor
>
> Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> msgInterceptor = New
> MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
> AddHandler msgInterceptor.MessageReceived, AddressOf OnSMSRcvd
> End Sub
>
> Private Sub OnSMSRcvd(ByVal sender As Object, ByVal e As
> MessageInterceptorEventArgs)
> ...
> End Sub
>


  Reply With Quote
Old 24-07-2007, 08:27 AM   #5
oldsap
Guest
 
Posts: n/a
Default Re: Message Interception API on WM6

On Jul 3, 2:05 am, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> Okay, this would be used to intercept all messages, what happens if you
> specify a rule to only catch certain messages?
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "oldsap" <charlies...@gmail.com> wrote inmessage
>
> news:1183021943.563611.251140@g37g2000prf.googlegroups.com...
>
> > On Jun 28, 4:43 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> > wrote:
> >> The API for this is the same, can you show us a code-sample of how you
> >> are
> >> using it.

>
> >> Peter

>
> >> --
> >> Peter Foot
> >> Microsoft Device Application Development
> >> MVPwww.peterfoot.net|www.inthehand.com

>
> >> "oldsap" <charlies...@gmail.com> wrote inmessage

>
> >>news:1183017748.757254.176960@e16g2000pri.googlegroups.com...

>
> >> >I used an vb.net application on my WM5 smartphone that usesmessage
> >> >interceptionAPI and it worked just fine. When i tried it on a WM6
> >> > emulator, it was also ok. But on a real WM6 smartphone device, it is
> >> > not able to intercept the incoming sms, instead, the sms goes directly
> >> > to the Inbox. How come?

>
> > This is my code snippet sir:

>
> > Private WithEvents msgInterceptor As MessageInterceptor

>
> > Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles MyBase.Load
> > msgInterceptor = New
> > MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
> > AddHandler msgInterceptor.MessageReceived, AddressOf OnSMSRcvd
> > End Sub

>
> > Private Sub OnSMSRcvd(ByVal sender As Object, ByVal e As
> > MessageInterceptorEventArgs)
> > ...
> > End Sub


The sms goes directly to the inbox sir. the application is not able
to intercept it.

  Reply With Quote
Old 24-07-2007, 09:48 AM   #6
oldsap
Guest
 
Posts: n/a
Default Re: Message Interception API on WM6

On Jul 3, 2:05 am, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> Okay, this would be used to intercept all messages, what happens if you
> specify a rule to only catch certain messages?
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "oldsap" <charlies...@gmail.com> wrote inmessage
>
> news:1183021943.563611.251140@g37g2000prf.googlegroups.com...
>
> > On Jun 28, 4:43 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> > wrote:
> >> The API for this is the same, can you show us a code-sample of how you
> >> are
> >> using it.

>
> >> Peter

>
> >> --
> >> Peter Foot
> >> Microsoft Device Application Development
> >> MVPwww.peterfoot.net|www.inthehand.com

>
> >> "oldsap" <charlies...@gmail.com> wrote inmessage

>
> >>news:1183017748.757254.176960@e16g2000pri.googlegroups.com...

>
> >> >I used an vb.net application on my WM5 smartphone that usesmessage
> >> >interceptionAPI and it worked just fine. When i tried it on a WM6
> >> > emulator, it was also ok. But on a real WM6 smartphone device, it is
> >> > not able to intercept the incoming sms, instead, the sms goes directly
> >> > to the Inbox. How come?

>
> > This is my code snippet sir:

>
> > Private WithEvents msgInterceptor As MessageInterceptor

>
> > Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles MyBase.Load
> > msgInterceptor = New
> > MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
> > AddHandler msgInterceptor.MessageReceived, AddressOf OnSMSRcvd
> > End Sub

>
> > Private Sub OnSMSRcvd(ByVal sender As Object, ByVal e As
> > MessageInterceptorEventArgs)
> > ...
> > End Sub


when sms arrives, it goes directly to the inbox. the application is
not able to intercept it.

  Reply With Quote
Old 19-09-2007, 01:52 AM   #7
=?Utf-8?B?U2hlcm1hbiBLQg==?=
Guest
 
Posts: n/a
Default RE: Message Interception API on WM6

I'm having a simular problem with Windows Mobile 6, and a Windows Mobile
Smart phone. Did you ever get an answer?
--
Ken S


"oldsap" wrote:

> I used an vb.net application on my WM5 smartphone that uses message
> interception API and it worked just fine. When i tried it on a WM6
> emulator, it was also ok. But on a real WM6 smartphone device, it is
> not able to intercept the incoming sms, instead, the sms goes directly
> to the Inbox. How come?
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off