1

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

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Jorge Ferreira
  • 96,051
  • 25
  • 122
  • 132

1 Answers1

1

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 picture. Here's an example of setting the 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.");
        }
Stephen Curial
  • 1,686
  • 15
  • 14