How to calculate the unique ID of a Live Messenger account based on the live ID

Source: Internet
Author: User

It's not easy. I finally found it.

BasicAlgorithmIt should have been found, probably like this:

1) convert the live ID to an ANSI string; 2) convert all characters of the string to lowercase; 3) traverse the string and multiply the accumulated result by 101, then add the ASCII value of the next character; // algorithm unsigned int calcliveid (cstring strliveid) {uses_conversion; int IID = 0; If (0 = strliveid. getlength () return IID; strliveid = strliveid. trim (); strliveid = strliveid. makelower (); char * pstr = w2a (strliveid); For (INT I = 0; I <: strlen (pstr); I ++) {IID = IID * 101; IID = IID + pstr [I];} return IID;} Live Messenger Store configuration information for multiple accounts under HKEY_CURRENT_USER \ Software \ Microsoft \ msnmessenger \ perpassportsettings in the registry. However, the subkeys under this key are not named by live ID, it is an integer. For example, the integer corresponding to my live ID: mic_lee2000 ^ hotmail.com is 2417325927.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.