SMS Interception

Windows Mobile 5.0 introduces a set of managed APIs, one of which is a class capable of intercepting incoming Short Message Service (SMS) messages that match a rule of your choosing. This functionality is contained in the Microsoft.WindowsMobile.PocketOutlook.MessageInterception namespace. A rule consists of a property, a comparison type, and a string keyword or phrase. You can use either the message body or sender property for your rule, and the comparison is a member of the MessagePropertyComparisonType enumeration. You can set up a comparison rule to match messages beginning or ending with a specific phrase or messages containing the phrase in any location. When a matching message is received, you can then access the message ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.