Share via


MessengerContact object

[MessengerContact is no longer available for use as of Windows Vista. See Windows Messenger for more information.]

Do not use. The MessengerContact object corresponds to the IMessengerContact interface. This object provides a local representation of a remote contact. It represents a single user as stored in the Messenger object's internal contact list.

Remarks

MSMSGS.EXE implements this object.

A MessengerContact object is not intended to be created separately through CoCreateInstance or other Component Object Model (COM) object instantiation techniques. Client implementers should access existing MessengerContact objects only after creating the Messenger object. After this object is created, a MessengerContact object can be referenced through one of the following:

MessengerContact objects will continue to exist after they are removed from the contact list programmatically or through user action until they are released. In Microsoft Visual C++, you can determine whether MessengerContact objects are no longer in the contact list by monitoring OnContactListRemove events. In most cases, a MessengerContact object that is no longer in the contact list should be released. All objects should be released as part of a cleanup or shutdown routine.

Interfaces Implemented

MessengerContact

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
End of client support
Windows XP
End of server support
Windows Server 2003
Product
Messenger 4.5
Header
Msgrua.h
IDL
Msgrua.idl