The MessengerPriv object enables an application to query the IMessengerPrivate interface to add contacts to a Communicator instance without using any UI elements.

Remarks

The MessengerPriv object implements the IMessengerPrivate interface and DMessengerPrivateEvents dispinterface.

Object Information

Class ID

899FAA7D-D876-47bd-B8F2-0EE3611C6FAA

(CLSID_MessengerPrivate)

Implemented interfaces

IMessengerPrivate

DMessengerPrivateEvents

Instantiation method

Call the CoCreateInstance setting the CLSID parameter to CLSID_MessengerPrivate

Header/IDL

Msgrpriv.h, Msgrpriv.idl

Versions

Microsoft® Office Communicator Automation API

Operating systems

Microsoft Windows Server® 2003, Windows® XP SP1 or later, or Windows 2000 SP4. Communicator-imposed restrictions apply.

Example

Description

The following code example illustrates the creation of an instance of a MessengerPriv object implementing the IMessengerPrivate interface.

Code

Copy Code
CommunicatorPrivate.MessengerPrivClass msgrPrivClass = new MessengerPrivClass();

See Also