通过诺基亚PC套件API接收短信 [英] Receive SMS through nokia pc suite API

查看:111
本文介绍了通过诺基亚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!!!!!!!

推荐答案

为此,您需要查看诺基亚SDK文档以了解详细信息.有关详细信息,请参见 http://www .forum.nokia.com/info/sw.nokia.com/id/bd896b31-92ba-4624-aa9d-ebf732e7cc0d/Nokia_PC_Suite_Connectivity_API_1_1.html [
For that you need to see the Nokia SDK Documentation for details. For details see http://www.forum.nokia.com/info/sw.nokia.com/id/bd896b31-92ba-4624-aa9d-ebf732e7cc0d/Nokia_PC_Suite_Connectivity_API_1_1.html[^]


首先研究PC Suite API v3.2的"Content Access API 3.2参考手册",来自:
https://www.forum.nokia.com/info/sw....y_API_1_1.html

然后在那里记录相关的API.从这一点来看,我猜您是从CAAPI_Initialize开始,然后在内容层次结构(CAGetFolderInfo,CAGetIDList)中导航到SMS消息/收件箱,然后使用CAReadItem读取实际消息并以CAAPI_Terminate结尾.

如果PIMNavigator和其他示例+头文件和参考手册还不够.尝试至少在此基础上编写一些代码,然后发布您有问题的代码,包括任何编译或运行时错误,也许有人可以提供帮助(我本人并没有真正使用PC Suite API,因此,除了我能提供的帮助之外,还有很多其他内容.



Start by studying the "Content Access API 3.2 Reference Manual" of the PC Suite API v3.2 from:

https://www.forum.nokia.com/info/sw....y_API_1_1.html

Then related APIs are documented there. From looking at that, I guess you start from CAAPI_Initialize and navigate through the content hierarchy (CAGetFolderInfo, CAGetIDList) to the SMS messages/Inbox and then use CAReadItem to read an actual message and finish off with CAAPI_Terminate.

If the PIMNavigator and other examples + the header files and reference manual is not enough. Try to write at least some piece of code based on that, and then post the code you have problems with, including any compilation or run-time errors and perhaps someone can assist (I haven''t really used the PC Suite APIs myself, so there''s not much more than that I can help with).



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........


任何人以前都做过.任何人都可以帮我一些初始代码或一些东西
Has anyone done it previously. Can anyone help me with some initial code or something


这篇关于通过诺基亚PC套件API接收短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆