O'Reilly logo

Programming for Unified Communications with Microsoft® Office Communications Server 2007 R2 by Micosoft Office Communications Server Team, Oscar Newkerk, Chris Mayo, Vishwa Ranjan, Kurt De Ding, Rui Maximo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting Conversations

By using the Office Communicator Automation API, you can start conversations on behalf of the local user. Conversation modalities can include IM, voice, and video.

Using the IMessengerAdvanced Interface

As described in Chapter 2, IMessengerAdvanced is an interface implemented by the Messenger class.

To get a reference to IMessengerAdvanced, you need to create an instance of the Messenger class and cast it to IMessengerAdvanced as shown in the following code.

Messenger _messenger = new Messenger();
IMessengerAdvanced _messengerAdv =
    (IMessengerAdvanced)_messenger;

IMessengerAdvanced, like all classes and interfaces in the API, is an unmanaged COM type that you access in managed code by using COM Interop. This means that you must ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required