DMessengerEvents::OnContactPagerChange Event

Deprecated. Indicates that a contact in the local client's Contact List has changed the pager information access permissions.

Syntax

void OnContactPagerChange(      
    LONG hr,
    IDispatch *pContact,
    VARIANT_BOOL pBoolBlock
);

Parameters

  • hr
    [in] Success or error code as a LONG.

    An error result for hr might result in all other event parameters being meaningless, NULL, or otherwise invalid. Always check for a successful hr before attempting to use the other event parameters.

  • pContact
    [in] Pointer to a IDispatch World Wide Web link interface on the MessengerContact object where a change in block value was attempted.

  • pBoolBlock
    [in] One of two possible values of the VARIANT_BOOL constant enumeration defined by the Component Object Model (COM). This value is potentially NULL or otherwise not useful if hr in the event returned any error code.

Return Value

No return value.

Event DISPID

DISPID_MUAE_ONUSERPAGERCHANGE

The DISPID for this event is defined in msgrua.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Remarks

To use this event in Microsoft Windows Messenger, you must install an add-in component that supports paging.

This event returns only that the allowed or disallowed state of the information has changed. Only the allow-access flag is stored by the Microsoft .NET Messenger Service. The mobile information itself is stored on servers that are not directly under the control of Windows Messenger. The mobile device or pager information query is not performed through Windows Messenger APIs.

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

Parameter vaArgs[x] Variant Type
pBoolPage 0 VT_BOOL
pContact 1 VT_DISPATCH
hr 2 VT_I4

Note  This event is available for scripting languages.

Important  DMessengerEvents::OnContactPagerChange is no longer available in Windows Vista. See Windows Messenger for more information.