简体   繁体   English

Windows Mobile中的Flash SMS

[英]Flash SMS in Windows Mobile

How can i write code for send Flash SMS (Sms Class 0) in Windows Mobile? 如何在Windows Mobile中编写用于发送Flash SMS(Sms类0)的代码? please guide me with .NET or C++ code also .Net is better. 请用.NET或C ++代码指导我,.Net也更好。

Use the PROVIDER_SPECIFIC_MESSAGE_CLASS enumeration's PS_MESSAGE_CLASS0 value provided in a call to SmsSendMessage (the pbProviderSpecificData parameter). 使用对SmsSendMessagepbProviderSpecificData参数)的调用中提供的PROVIDER_SPECIFIC_MESSAGE_CLASS枚举的PS_MESSAGE_CLASS0值。

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. 该代码比Compact Framework的API低一些,因此使您可以更好地控制要发送的消息。 You have to marshall it from native DLL. 您必须从本机DLL封送它。 Here's an example of using it in Compact Framework. 这是在Compact Framework中使用它的示例。

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. 在使用消息类调用SmsOpen之后,调用SmsSendMessage和SmsReadMessage时,请对TEXT_PROVIDER_SPECIFIC_DATA和NOTIFICATION_PROVIDER_SPECIFIC_DATA结构使用此枚举。 Refer to GSM specification 03.40 "Digital Cellular telecommunications system (Phase 2+); Technical realization of the Short Message Service (SMS)" for more details. 有关更多详细信息,请参阅GSM规范03.40“数字蜂窝电信系统(第2阶段);短消息服务(SMS)的技术实现”。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM