Windows Live Messenger software-defined display

How can I programmatically set the Windows Live Messenger display image (currently using 8.5.1302.1018). Possible solutions could be in C ++,. NET or VB. Even a hint can be helpful.

+1


source to share


1 answer


There is an open source project called MSNP-Sharp that you should look at.

You can use this to connect to MSN and set your profile. Here's an example of setting an image:



        try
        {
            Image fileImage = Image.FromFile(ConfigurationSettings.AppSettings["ImageFileName"]);
            DisplayImage displayImage = new DisplayImage();
            displayImage.Image = fileImage;
            m_Messenger.Owner.DisplayImage = displayImage;
            m_Messenger.Nameserver.StorageService.UpdateProfile(fileImage, "MyPhoto");
        }
        catch
        {
            LogError(new StackTrace(true), "Error adding avatar image.");
        }

      

+1


source







All Articles