惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - Levins Dai

我知道你不知道我知道你不知道我知道你不知道 Pixel doubling, why's it there? Why does current running process always be mapped to slot 0? 金刚的爱 - Levins Dai - 博客园 What's the difference between GetThreadPriority and CeGetThreadPriority? 新年音乐会 再说GSM SMS文字短信编码与长度 Windows Mobile 文字短信的长度 - Levins Dai 国家地理选美中国 木兰秋猎 - Levins Dai - 博客园 30 years anniversary of Microsoft Back from off site meeting 摄影是什么? Talking about Talking about 谈论谈论好男人 关于Naming的故事 两个星期,两条旧闻 On Board Day 3G和Windows XP 是卖书还是送书?
How to send class 0 message on Windows Mobile 5.0?
Levins Dai · 2006-01-06 · via 博客园 - Levins Dai

According to GSM Spec, Class 0 SMS is defined as text messages that display on MS immediately when arrive and do not have to be saved in MS or SIM. Windows Mobile 5.0 supports sending and receving class 0 SMS, but unfortunately you can only do it programmatically.

There is a managed method Microsoft.WindowsMobile.PocketOutlook.SmsMessage.Send() that can be used to send out SMS in a really convenient way. But again, it does not give a way for you to specify the message class you are going to use.

To send SMS with given message class, you should call Cellcore function: SmsSendMessage():

HRESULT SmsSendMessage (
const SMS_HANDLE smshHandle,
const SMS_ADDRESS * const psmsaSMSCAddress,
const SMS_ADDRESS * const psmsaDestinationAddress,
const SYSTEMTIME * const pstValidityPeriod,
const BYTE * const pbData,
const DWORD dwDataSize,
const BYTE * const pbProviderSpecificData,
const DWORD dwProviderSpecificDataSize,
const SMS_DATA_ENCODING smsdeDataEncoding,
const DWORD dwOptions,
SMS_MESSAGE_ID * psmsmidMessageID);

The 7th parameter is a provider-specific structure you can use to customize a couple of SMS options and flags. For general text provider data, the message class can be set throught the struct member: psMessageClass.

That's the way to go! A little bit tedious actually, but it works, :)