Sunday, January 17, 2016
The availability of short messages discretion
In the window mobile in the ability to get a short message after the system, get SMS discretion, after processing (for example, calls firewall and the like) and then decide whether to throw the upper interface
Reply:
up
Reply:
wm5 may be able
Reply:
Use MessageInterceptor object. The following is a short message received vb Code
Imports Microsoft.WindowsMobile.Telephony
Imports Microsoft.WindowsMobile.PocketOutlook
Imports Microsoft.WindowsMobile.PocketOutlook.MessageInterception
Imports Microsoft.WindowsMobile
Private _SMSCatcher As MessageInterceptor = New MessageInterceptor (InterceptionAction.NotifyAndDelete, True)
Private _SMSFilter As MessageCondition = New MessageCondition ()
Private Sub Form1_Load (ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Receiving SMS code
Dim mi As New Microsoft.WindowsMobile.PocketOutlook.MessageInterception.MessageInterceptor
mi = New MessageInterceptor
AddHandler mi.MessageReceived, AddressOf mi_MessageReceived
'--------------
End Sub
Private Sub mi_MessageReceived (ByVal sender As Object, ByVal e As Microsoft.WindowsMobile.PocketOutlook.MessageInterception.MessageInterceptorEventArgs)
Dim mySMS As SmsMessage = CType (e.Message, SmsMessage)
TextBox1.Text = mySMS.Body 'short message content
End Sub
SMS filtering is set MessageCondition attribute.
Reply:
SDK examples there are, ah, called Mapirule, mainly used MailRuleClient
Reply:
It calls firewall how to achieve it, thank you
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment