Integrating .net application with msn messenger

i am developing an application wherein I need to activate the messenger or if I can, get the users from the messenger(should be able to see if they are online or not) .
We use msn exchange accounts internally for messenger. And what I want to achieve is to select a user from messenger (or from a windows form that I may develop) and right click ,select an option from the context menu and invite them for a meeting and schedule their calendars.

For this either I need to do some add-ins on messenger or create a form that shows all the users from exchange and sort them by online offline or something similat to messenger. But I have no idea how messenge API can help me on this.

The activity api is more for messenger and did not seems to be working for my integration. But again I am not sure :-)

And yes we use messgenger 5.0

Can someone help me with this.

Thanks!!
Vivek


Answer this question

Integrating .net application with msn messenger

  • Spktrader

    The Windows Messenger API is no longer published or supported by Microsoft. The API is not compatible with current versions of MSN or Windows Live(tm) Messenger.

    -Scott



  • abyss_thomas

    This api would not help you, it allows you to create custom games and activites for a Messenger conversation. There may have been a more in depth api some time ago for your needs though.
  • Rory Hudson

    I have been digging in this API to. The problem i see is that it is linked to the windows messenger binary and not the msn messenger.

    Is this API still supported by microsoft Is it gonna work with future versions of MSN Messenger

  • Ned Radenovic

    I was expecting that some MVP would help me out but got a little disappointedSad. But anyways I found a way out, and it is very very very easy. Just need to reference a com object for messender and that does it all. I am able to get all the contact and I am displaying them sorted (online/offline).

    So for someone else like me who wants to integrate messenger with their application and is a first timer, here is how I did it:

    Solution: Referenced "Messenger API Type Library" , you can get that in COM Components when you reference.

    This is snapshot of my testing code that I used to see if it works but it can be of some help to someone else.
    //here it starts

    using MessengerAPI;


    private void button1_Click(object sender, System.EventArgs e)

    {

       MessengerClass mclass = new MessengerClass();

       if (mclass.MyStatus == MISTATUS.MISTATUS_OFFLINE)

       {

          mclass.AutoSignin();

       }


       IMessengerContacts contacts;

       contacts =(IMessengerContacts) mclass.MyContacts;

       foreach(IMessengerContact mycontact in contacts)

       {

          MessageBox.Show(mycontact.FriendlyName + " is " + mycontact.Status);

       }   

    }
    //here it ends


    Hope this helps someone else.


    Cheers !!

    Vivek Vishist


  • Kuma1

    Look at the Code Project web site, there you'll find the source for a Visual Studio .net add-in, that creates a panel with MSN Messenger.

    It may help you.

  • Integrating .net application with msn messenger