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 ...

Get Programming for Unified Communications with Microsoft® Office Communications Server 2007 R2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.