Windows Messenger Client Reference
This documentation provides information about the Microsoft Windows Messenger API which is a set of interfaces for objects related to the Messenger client. These APIs expose standard automation, messaging, and window management functionality.
The Messenger interfaces include the basic object interface; several interfaces that house entities such as users, windows, and lists; and an event sink (connection point) interface.
Enums
BASICIM_ConstantsNot currently supported.
BIMSTATESpecifies local or remote client state.
Note The BIMSTATE enumerated type is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use MISTATUS instead.BIMUSERPROPERTYNot currently supported.
FONTSIZENot currently supported.
INFOBARNot currently supported.
MCONNECTIONTYPENot currently supported.
MCONTACTPROPERTYUsed to ask for the property that indicates which groups a user belongs to, or the contact's e-mail address.
MFILETRANSFER_FLAGSNot currently supported.
MFIRSTTIME_FLAGSNot currently supported.
MFOLDERNot currently supported.
MINVITE_FLAGSNot currently supported.
MISTATUSSpecifies local or remote client state. The user can select these options from the File menu of the Messenger window or by clicking the Messenger icon in the taskbar. The current state of the local user is detected on the local client. The current state of the remote clients is detected through the server automatically. Not all states are valid for remote clients.
MLISTUsed to retrieve information about contact lists.
Note The MLIST enumerated type is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger.MLOCALOPTIONNot currently supported.
MLOCALOPTION_LIMITSNot currently supported.
MMESSENGERPROPERTYUsed to retrieve the Messenger client version and client locale ID (LCID).
MMSGPRIVACYNot currently supported.
MMSGTYPENot currently supported.
MOPTDLGPAGESpecifies which page of the Messenger client
MOPTIONPAGESpecifies which page of the Messenger client
MPFLFIELDNot currently supported.
MPHONE_TYPESpecifies which phone number of a given contact is used.
MPROMPTNot currently supported.
MPROXYTYPENot currently supported.
MSERVICE_FLAGSNot currently supported.
MSERVICEPROPERTYUsed to ask for the property of a service.
MSGRConstantsThe following are constants used for error and success returns of methods and properties of the Windows Messenger
MSGRConstantsThe following are constants used for error or success returns of methods and properties of the Windows Messenger
MSTATESpecifies local or remote client state.
Note The MSTATE enumerated type is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use MISTATUS instead.MSVCSTATUSNot currently supported.
MUAFOLDERUsed for selecting the folder for the count of unread messages.
MUASORTSpecifies how the Contact List should be sorted.
MUPDATE_FLAGSNot currently supported.
MURLTYPENot currently supported.
MUSERPROPERTYNot currently supported.
MWINDOWPROPERTYUsed to turn on or off the conversation window sidebar and toolbar.
SSTATENot currently supported.
VOICESESSIONSTATENot currently supported.
DispInterfaces
DBasicIMEventsThe DBasicIMEvents dispinterface handles events that are generated or received by a BasicIMObject object.
Note The DBasicIMEvents dispinterface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents instead.DMessengerAppEventsThe DMessengerAppEvents dispinterface handles events that are generated or received by a MessengerApp object.
DMessengerEventsThe DMessengerEvents dispinterface handles events that are generated or received by a Messenger object.
DMsgrObjectEventsThe DMsgrObjectEvents dispinterface handles events that are generated or received by a MsgrObject object.
Note The DMsgrObjectEvents dispinterface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents instead.
Events
DMsgrObjectEvents::OnAppInviteAcceptedNot currently supported.
DMsgrObjectEvents::OnAppInviteCancelledNot currently supported.
DMsgrObjectEvents::OnAppInviteReceivedNot currently supported.
DBasicIMEvents::OnAppShutdownNot currently supported.
DMessengerEvents::OnAppShutdownIndicates that the client application is about to shut down for purposes of a client upgrade initiated either by the server or client user.
DMsgrObjectEvents::OnAppShutDownNot currently supported.
DMessengerAppEvents::OnBeforeLaunchIMUINot currently supported.
DMsgrObjectEvents::OnBuddyPropertyChangeResultNot currently supported.
DMessengerEvents::OnContactAddedToGroupIndicates that a contact has been added to a group.
DMessengerEvents::OnContactBlockChangeIndicates that the block settings of a contact in the local client's Contact List have changed. Queries whether the contact is blocked by the local client user.
DMessengerEvents::OnContactFriendlyNameChangeIndicates that a contact in the client's Contact List has changed the friendly name.
DMessengerEvents::OnContactListAddIndicates the result of an attempt to add to the Messenger object's Contact List.
DBasicIMEvents::OnContactListAddResultNot currently supported.
DMessengerEvents::OnContactListRemoveIndicates the result of an attempt to remove a contact from the Messenger object's Contact List.
DBasicIMEvents::OnContactListRemoveResultNot currently supported.
DMessengerEvents::OnContactPagerChangeIndicates that a contact in the local client's Contact List has changed the pager information access permissions.
DMessengerEvents::OnContactPhoneChangeIndicates that the phone information of a contact in the local client's Contact List has changed.
DMessengerEvents::OnContactPropertyChangeIndicates that property information for a contact in the local client's Contact List has changed.
DMessengerEvents::OnContactRemovedFromGroupIndicates that a contact has been removed from a group.
DMessengerEvents::OnContactStatusChangeIndicates that the status of a contact in the local client's Contact List has changed, and returns the current state of the contact.
DMessengerAppEvents::OnDestroyIMUINot currently supported.
DMsgrObjectEvents::OnFileTransferCancelledNot currently supported.
DMessengerAppEvents::OnFileTransferIMUINot currently supported.
DMsgrObjectEvents::OnFileTransferInviteAcceptedNot currently supported.
DMsgrObjectEvents::OnFileTransferInviteCancelledNot currently supported.
DMsgrObjectEvents::OnFileTransferInviteReceivedNot currently supported.
DMsgrObjectEvents::OnFileTransferStatusChangeNot currently supported.
DMsgrObjectEvents::OnFindResultNot currently supported.
DMessengerEvents::OnGroupAddedIndicates that a new group has been created.
DMessengerEvents::OnGroupNameChangedIndicates that the name of a group has been changed.
DMessengerEvents::OnGroupRemovedIndicates that a group has been deleted.
DMessengerEvents::OnIMWindowContactAddedIndicates that a contact has been added to the ongoing conversation.
DMessengerEvents::OnIMWindowContactRemovedIndicates that a contact has been removed from the ongoing conversation.
DMessengerEvents::OnIMWindowCreatedIndicates that a new conversation window has been opened.
DMessengerEvents::OnIMWindowDestroyedIndicates that a new conversation window has been closed.
DMessengerAppEvents::OnIndicateMessageReceivedIMUINot currently supported.
DMessengerAppEvents::OnInfobarTextIMUINot currently supported.
DMsgrObjectEvents::OnInviteMailResultNot currently supported.
DMsgrObjectEvents::OnInviteUserNot currently supported.
DMsgrObjectEvents::OnListAddResultIndicates the result of an attempt to add to the Messenger User object's User List.
Note The DMsgrObjectEvents::OnListAddResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnContactListAdd instead.DMsgrObjectEvents::OnListRemovedResultIndicates the result of an attempt to remove a user from the Messenger User object's User List.
Note The DMsgrObjectEvents::OnListRemovedResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnContactListRemove instead.DMsgrObjectEvents::OnLocalFriendlyNameChangeResultIndicates that the settings of a user in the local client's User List have changed.
Note The DMsgrObjectEvents::OnLocalFriendlyNameChangeResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnMyFriendlyNameChange instead.DMsgrObjectEvents::OnLocalPropertyChangeResultNot currently supported.
DBasicIMEvents::OnLocalStateChangeResultNot currently supported.
DMsgrObjectEvents::OnLocalStateChangeResultIndicates that the status of the local client has been changed or that a status change was attempted.
Note The DMsgrObjectEvents::OnLocalStateChangeResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnMyStatusChange instead.DBasicIMEvents::OnLogoffIndicates that the logoff is complete.
Note The DBasicIMEvents::OnLogoff event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnSignout instead.DMsgrObjectEvents::OnLogonoffNot currently supported.
DBasicIMEvents::OnLogonResultNot currently supported.
DMsgrObjectEvents::OnLogonResultIndicates that an attempt has been made to sign in to the primary service.
Note The DMsgrObjectEvents::OnLogonResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnSignin instead.DMsgrObjectEvents::OnMessagePrivacyChangeResultNot currently supported.
DMessengerAppEvents::OnMicrophoneMuteIMUINot currently supported.
DMessengerEvents::OnMyFriendlyNameChangeIndicates that the local client's friendly name has been changed or that a change was attempted.
DMessengerEvents::OnMyPhoneChangeIndicates that the local client's phone contact information has been changed or that a change was attempted.
DMessengerEvents::OnMyPropertyChangeIndicates that an uncategorized element of the local client's property information has been changed or that a change was attempted.
DMessengerEvents::OnMyStatusChangeIndicates that the status of the local client has changed or that a status change was attempted, and returns the current status of the local client.
DMsgrObjectEvents::OnNewerClientAvailableNot currently supported.
DMsgrObjectEvents::OnNewSessionRequestNot currently supported.
DMsgrObjectEvents::OnNotificationReceivedNot currently supported.
DMsgrObjectEvents::OnPrimaryServiceChangedNot currently supported.
DMsgrObjectEvents::OnPromptChangeResultNot currently supported.
DMsgrObjectEvents::OnRequestURLPostResultNot currently supported.
DMsgrObjectEvents::OnRequestURLResultNot currently supported.
DMessengerAppEvents::OnSendEnabledIMUINot currently supported.
DMsgrObjectEvents::OnSendResultNot currently supported.
DMsgrObjectEvents::OnServiceLogonoffNot currently supported.
DMsgrObjectEvents::OnSessionStateChangeNot currently supported.
DMessengerAppEvents::OnShowIMUINot currently supported.
DMessengerEvents::OnSigninIndicates that an attempt has been made to sign in to the primary service.
DMessengerEvents::OnSignoutIndicates that the local client has signed out of the primary service.
DMsgrObjectEvents::OnSPMessageReceivedNot currently supported.
DMessengerAppEvents::OnStatusTextIMUINot currently supported.
DMsgrObjectEvents::OnTextReceivedIndicates that a message has been received.
Note The DMsgrObjectEvents::OnTextReceived event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger.DMessengerAppEvents::OnTitlebarTextIMUINot currently supported.
DMsgrObjectEvents::OnTrustChangedNot currently supported.
DMessengerEvents::OnUnreadEmailChangeIndicates the number of unread e-mail messages in the Messenger client's correlated MSN Hotmail Inbox that have changed from the last count of previous DMessengerEvents::OnUnreadEmailChange events or initial sign-in.
DMsgrObjectEvents::OnUnreadEmailChangedNot currently supported.
DMsgrObjectEvents::OnUserDroppedNot currently supported.
DBasicIMEvents::OnUserFriendlyNameChangeResultNot currently supported.
DMsgrObjectEvents::OnUserFriendlyNameChangeResultIndicates that a user in the User List has changed his or her friendly name.
Note The DMsgrObjectEvents::OnUserFriendlyNameChangeResult event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnContactFriendlyNameChange instead.DMsgrObjectEvents::OnUserJoinNot currently supported.
DMsgrObjectEvents::OnUserLeaveNot currently supported.
DBasicIMEvents::OnUserStateChangedIndicates that the user's state has changed.
Note The DBasicIMEvents::OnUserStateChanged event is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use DMessengerEvents::OnContactStatusChange instead.DMsgrObjectEvents::OnUserStateChangedNot currently supported.
DMessengerAppEvents::OnVoiceSessionStateIMUINot currently supported.
Interfaces
IBasicIMNot currently supported.
IBasicIMOldMessenger Basic IM Object Interface - old version.
Note The IBasicIMOld interface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use IMessenger instead.IBasicIMUserMessenger User for an OE Private interface.
Note The IBasicIMUser interface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use IMessenger instead.IBasicIMUser2Not currently supported.
IBasicIMUsersNot currently supported.
IMessengerThe primary interface for Windows Messenger APIs calls. Includes methods for displaying Messenger client
IMessenger2The secondary interface for the Windows Messenger API calls.
IMessenger3The third interface for the Windows Messenger API calls.
IMessengerAppThe IMessengerApp interface provides methods and properties to handle Messenger applications.
Note The IMessengerApp interface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use IMessenger instead.IMessengerApp2Not currently supported.
IMessengerApp3Not currently supported.
IMessengerContactThe primary interface for an individual MessengerContact object (the local representation of a remote user). Each contact in the contact list exists as its own MessengerContact object.
IMessengerContactsAn interface that manipulates the contact list, which maintains a collection of users in a Messenger object.
Any MessengerContacts collection object can have zero members in its collection.
List collection objects are not explicitly created or destroyed. They already exist and were created by the Messenger object. To create a pointer to the existing object that represents the Contact List, use the IMessenger::GetContact method.
IMessengerConversationWndAn interface that returns an IDispatch
IMessengerGrouppointer to an IMessengerContacts collection that contains the participants of that conversation, excluding the local user. This is a read-only collection. IMessengerGroups::Remove cannot be used on this collection.
The IMessengerGroup interface provides methods and properties to handle a group's collection of users.
IMessengerGroupsThe IMessengerGroups interface provides methods and properties to handle groups of users.
IMessengerIMWindowNot currently supported.
IMessengerIMWindowsNot currently supported.
IMessengerServiceThe primary interface for an individual MessengerService object.
IMessengerServicesManipulates the list of services.
IMessengerWindowThe automation interface for a Messenger window.
IMsgrHostNot currently supported.
IMsgrIMSessionNot currently supported.
IMsgrIMSessionsNot currently supported.
IMsgrObjectThe IMsgrObject interface provides methods and properties to handle the Messenger Object.
Note The IMsgrObject interface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use IMessenger instead.IMsgrObject2Not currently supported.
IMsgrPassportClientNot currently supported.
IMsgrServiceNot currently supported.
IMsgrServicesNot currently supported.
IMsgrSPNot currently supported.
IMsgrSP2Not currently supported.
IMsgrUserNot currently supported.
IMsgrUser2Not currently supported.
IMsgrUsersThe IMsgrUsers interface provides methods and properties to handle the Messenger User object.
Note The IMsgrUsers interface is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use IMessengerContacts instead.IMsgrWebScriptManagerNot currently supported.
IMsnMessengerIMWindowNot currently supported.
IMsnMessengerIMWindow2Not currently supported.
Objects
BasicIMObjectThe Windows Messenger Basic Instant Messaging Service (IM) object.
Note The BasicIMObject object is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use Messenger instead.MessengerThe Messenger object implements the IMessenger3 interface and DMessengerEvents dispinterface. This object maintains lists of users and performs most automation functions.
MessengerAppNot currently supported.
MessengerContactThe 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.
MessengerContactsThe MessengerContacts object corresponds to the IMessengerContacts interface. It is a collection object of contacts in the contact list.
MessengerConversationWndThe MessengerConversationWnd object corresponds to the IMessengerConversationWnd interface.
MessengerGroupThe MessengerGroup object corresponds to the IMessengerGroup interface. It represents a single group as stored in the Messenger object's internal group list.
MessengerGroupsThe MessengerGroups corresponds to the IMessengerGroups interface. It is a collection object of groups in the contact list.
MessengerNativeThis is the native messenger object.
MessengerServiceThe MessengerService object corresponds to the IMessengerService interface. This object represents a single service.
MessengerServicesThe MessengerServices corresponds to the IMessengerServices interface. It represents a list of services in the Messenger object.
MessengerWindowThe MessengerWindow object corresponds to the IMessengerWindow interface. This object can represent either the main application window or a conversation window that contains one or more active sessions between contacts and the local client user.
MsgrObjectThe MsgrObject object.
Note The MsgrObject object is available for use in Windows Messenger 4.7. It might be altered or unavailable in subsequent versions of Windows Messenger. You should use Messenger and MessengerContacts instead.
Structures
LOGFONT_DATANot currently supported.