MSN的服务的程序
2004-11-16 22:54
344 查看
我在写一个关于MSN的服务的程序,需要通过自己的客户端和MSN的服务进行交互。
根据微软的文档中说的过程和例子;
1。建立一个session对象。Create a Session Object
2。解锁Messenger APIs。Unlock the Messenger APIs
3。发出邀请。Send an Invitation
4。监听事件。Notifications Fired From a Messenger Service
我可以建立对象了。
但是。解锁的时候我却胡涂了。
MLockSessionManager.SendResponse g_ChallengeID, sMD5Key, lTransactionID
MLockSessionManager.SendResponse 需要三个参数:
g_ChallengeID:不知道
sMD5Key: 知道一半
lTransactionID:知道
这里有一个概念我不懂,ID/KEY。
g_ChallengeID,就是ID
sMD5Key:是KEY和建立Session时服务返回来一个值相加,然后MD5得到的。
建立Session时服务返回来一个值我知道,所以说sMD5Key我知道一半。
我现在想请教的是:如何得到自己程序的ID/KEY。是如何进行的。
如果哪位大虾能邦助我解决这个问题,1000分以外,还可以公布我的源代码给他。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/WinMessenger/winmessenger/overview/lockandkey.asp
Unlock the Messenger APIs
To unlock the Messenger service APIs, you must have a license and valid ID/key pair. The license requires an application that uses the API to follow guidelines designed to help protect the integrity of the Messenger service. The Lock and Key mechanism helps prevent unauthorized applications from using the Messenger service APIs.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/WinMessenger/winmessenger/overview/lockandkey.asp
根据微软的文档中说的过程和例子;
1。建立一个session对象。Create a Session Object
2。解锁Messenger APIs。Unlock the Messenger APIs
3。发出邀请。Send an Invitation
4。监听事件。Notifications Fired From a Messenger Service
我可以建立对象了。
但是。解锁的时候我却胡涂了。
MLockSessionManager.SendResponse g_ChallengeID, sMD5Key, lTransactionID
MLockSessionManager.SendResponse 需要三个参数:
g_ChallengeID:不知道
sMD5Key: 知道一半
lTransactionID:知道
这里有一个概念我不懂,ID/KEY。
g_ChallengeID,就是ID
sMD5Key:是KEY和建立Session时服务返回来一个值相加,然后MD5得到的。
建立Session时服务返回来一个值我知道,所以说sMD5Key我知道一半。
我现在想请教的是:如何得到自己程序的ID/KEY。是如何进行的。
如果哪位大虾能邦助我解决这个问题,1000分以外,还可以公布我的源代码给他。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/WinMessenger/winmessenger/overview/lockandkey.asp
Unlock the Messenger APIs
To unlock the Messenger service APIs, you must have a license and valid ID/key pair. The license requires an application that uses the API to follow guidelines designed to help protect the integrity of the Messenger service. The Lock and Key mechanism helps prevent unauthorized applications from using the Messenger service APIs.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/WinMessenger/winmessenger/overview/lockandkey.asp
相关文章推荐
- What is Mono? [转贴]
- 自动化测试工具
- 项目风险
- 在.NET环境中使用单元测试工具NUnit
- C++中的动态多维数组
- 如何修改Pop-menu(右键弹出的菜单)的内容(Caption)
- printf()与*p
- 计算机的发展历史
- 农历与西历对照、万年历
- flex datagrid 前面序号固定
- 欢迎试用Crystal Blog 1.0 beta!
- C#中字符串的格式化及转换成数值的方法
- C#:获得文件版本信息及只读文件的删除
- C#实现的18位身份证格式验证算法[转载]
- 放弃与收获
- 项目管理的重要性
- The End
- C#:文件的按行读/写及文件目录的操作
- blog收藏
- 查询出每种类型的createtime第二和第三大的两条记录