mSafdel
mSafdel

Reputation: 1495

Flash SMS in Windows Mobile

How can i write code for send Flash SMS (Sms Class 0) in Windows Mobile? please guide me with .NET or C++ code also .Net is better.

Upvotes: 0

Views: 2073

Answers (2)

Mobile Developer
Mobile Developer

Reputation:

Use this enumeration with the TEXT_PROVIDER_SPECIFIC_DATA and NOTIFICATION_PROVIDER_SPECIFIC_DATA structures when calling SmsSendMessage and SmsReadMessage after having called SmsOpen with the message class. Refer to GSM specification 03.40 "Digital Cellular telecommunications system (Phase 2+); Technical realization of the Short Message Service (SMS)" for more details.

enum PROVIDER_SPECIFIC_MESSAGE_CLASS { PS_MESSAGE_CLASS0 = 0, PS_MESSAGE_CLASS1, PS_MESSAGE_CLASS2, PS_MESSAGE_CLASS3, PS_MESSAGE_CLASSUNSPECIFIED, };

Upvotes: 0

macbirdie
macbirdie

Reputation: 16193

Use the PROVIDER_SPECIFIC_MESSAGE_CLASS enumeration's PS_MESSAGE_CLASS0 value provided in a call to SmsSendMessage (the pbProviderSpecificData parameter).

This code is a bit lower level than Compact Framework's APIs, thus gives you some more control over the message you want to send. You have to marshall it from native DLL. Here's an example of using it in Compact Framework.

Upvotes: 4

Related Questions