views:

452

answers:

2

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.

+4  A: 

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.

macbirdie
A: 

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, };