MSN的服务的程序

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

我在写一个关于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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航