本文介绍了通过诺基亚PC套件API接收短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用C#编写一个应用程序,该应用程序将使用诺基亚PC连接API接收SMS.我也想知道哪些诺基亚设备将通过应用程序支持接收功能,因为我进行了一些研发,发现S60设备不支持.所以我也需要有正确的设备进行测试
谁能提供一些链接或示例给我
在此先感谢!!!!!!!
Hi I want to make an application in C# which will receive SMS using Nokia PC Connectivity API. Also I want to know which nokia devices will support the receive functionality via an application because I did some R&D and found that S60 devices dont support. So i need to have the right device for testing it too
Can anyone provide me some links or samples if any
Thanks in advance!!!!!!!
推荐答案
CAContentAccess.DAContentAccessDefinitions.CA_FOLDER_INFO folderInfo = new CAContentAccess.DAContentAccessDefinitions.CA_FOLDER_INFO();
folderInfo.iSize = Marshal.SizeOf(typeof(CAContentAccess.DAContentAccessDefinitions.CA_FOLDER_INFO));
folderInfo.iFolderId = CADataDefinitions.CA_MESSAGE_FOLDER_INBOX;
CAContentAccess.DAContentAccessDefinitions.CA_ID_LIST caIDList = new DAContentAccessDefinitions.CA_ID_LIST();
caIDList.iSize = Marshal.SizeOf(caIDList);
IntPtr buf = Marshal.AllocHGlobal(Marshal.SizeOf(caIDList));
Marshal.StructureToPtr(caIDList, buf, true);
iRet = DAContentAccess.CAGetIDList(m_hSMS, folderInfo.iFolderId, 0, buf);
if ((iRet != Errors.CONA_OK) & (iRet != Errors.ECONA_NOT_FOUND))
{
Utils.ShowErrorMessage("CAGetIDList", iRet);
}
但是上面的代码提供了一些错误........
But Above code provide some error........
这篇关于通过诺基亚PC套件API接收短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!