DMessengerEvents::OnContactStatusChange Event

[OnContactStatusChange is no longer available in Windows Vista. See Windows Messenger for more information.]

Indicates that the status of a contact in the local client's Contact List has changed, and returns the current state of the contact.

Syntax

void OnContactStatusChange(
  [in]  IDispatch *pMContact,
  [in]  MISTATUS mStatus
);

Parameters

pMContact [in]
Pointer to a IDispatch interface on the MessengerContact object that corresponds to the contact. Using this pointer, clients can now code to its IMessengerContact interface. There is no hr in this event. Unless there is an error, pMContact will not be NULL.A MessengerContact object that corresponds to the contact. There is no hr in this event. Unless there is an error, pMContact will not be NULL.
mStatus [in]

A member of the MISTATUS enumerator that specifies the current state of the MessengerContact object.

Return Value

This event does not return a value.

Remarks

When the local client initially signs in to the service, events are distributed for those users on the local client's Contact List who are not offline. Otherwise, such events are distributed whenever status changes.

This event is received only for users in the client's Contact List.

All online MISTATUS results are grouped by a common factor in the constant.

To be used when writing custom ::Invoke methods to handle these events.

ParametervaArgs[x]Variant Type
mStatus0VT_14
pMContact1VT_DISPATCH

 

Note  This event is available for scripting languages.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP

Minimum supported server

Windows Server 2003

Product

Messenger 4.5

Header

Msgrua.h

IDL

Msgrua.idl

DLL

Msgsc.dll

See Also

DMessengerEvents
Status
OnMyStatusChange

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2010

Show: