找回密码
 注册
搜索
查看: 1208|回复: 2

[讨论] 未读邮件和未读彩信

[复制链接]
发表于 2009-12-21 17:46:50 | 显示全部楼层 |阅读模式
请教一个问题,在代码中如何取得未读邮件数量和未读彩信数量呢?
说是未读彩信数量包含在未读邮件数量里面?是这样么?
发表于 2009-12-28 17:05:26 | 显示全部楼层
snapi.h

////////////////////////////////////////////////////////////////////////////////
// MessagingSmsUnread
// Gets the number of unread SMS messages.
#define SN_MESSAGINGSMSUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGSMSUNREAD_PATH TEXT("System\\State\\Messages\\SMS\\Unread")
#define SN_MESSAGINGSMSUNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingMmsUnread
// Gets the number of unread MMS messages
#define SN_MESSAGINGMMSUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGMMSUNREAD_PATH TEXT("System\\State\\Messages\\MMS\\Unread")
#define SN_MESSAGINGMMSUNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingVoiceMailTotalUnread
// Gets the number of unplayed voice mail messages.
#define SN_MESSAGINGVOICEMAILTOTALUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGVOICEMAILTOTALUNREAD_PATH TEXT("System\\State\\Messages\\VMail\\Total\\Unread")
#define SN_MESSAGINGVOICEMAILTOTALUNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingVoiceMail1Unread
// Gets the number of unplayed voice mail messages for line 1.
#define SN_MESSAGINGVOICEMAIL1UNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGVOICEMAIL1UNREAD_PATH TEXT("System\\State\\Messages\\VMail\\Line1\\Unread")
#define SN_MESSAGINGVOICEMAIL1UNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingVoiceMail2Unread
// Gets the number of unplayed voice mail messages for line 2
#define SN_MESSAGINGVOICEMAIL2UNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGVOICEMAIL2UNREAD_PATH TEXT("System\\State\\Messages\\VMail\\Line2\\Unread")
#define SN_MESSAGINGVOICEMAIL2UNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingActiveSyncEmailUnread
// Gets the number of unread ActiveSync e-mail messages.
#define SN_MESSAGINGACTIVESYNCEMAILUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGACTIVESYNCEMAILUNREAD_PATH TEXT("System\\State\\Messages\\Sync\\Unread")
#define SN_MESSAGINGACTIVESYNCEMAILUNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingTotalEmailUnread
// Gets the total number of unread e-mail messages from all POP3/IMAP accounts.
#define SN_MESSAGINGTOTALEMAILUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGTOTALEMAILUNREAD_PATH TEXT("System\\State\\Messages\\TotalEmail\\Unread")
#define SN_MESSAGINGTOTALEMAILUNREAD_VALUE TEXT("Count")

  
////////////////////////////////////////////////////////////////////////////////
// MessagingOtherEmailUnread
// Gets the number of unread e-mail messages from all non-ActiveSync messaging accounts.
#define SN_MESSAGINGOTHEREMAILUNREAD_ROOT HKEY_CURRENT_USER
#define SN_MESSAGINGOTHEREMAILUNREAD_PATH TEXT("System\\State\\Messages\\OtherEmail\\Unread")
#define SN_MESSAGINGOTHEREMAILUNREAD_VALUE TEXT("Count")
点评回复

使用道具 举报

发表于 2010-1-10 21:15:18 | 显示全部楼层
也可以通过MAPI 直接访问数据库获取未读彩信和短信的数量。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-25 20:44 , Processed in 0.045695 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表