DMessengerEvents::OnMyPropertyChange event
[OnMyPropertyChange is no longer available for use as of Windows Vista. See Windows Messenger for more information.]
Indicates that an uncategorized element of the local client's property information has been changed or that a change was attempted.
Syntax
void OnMyPropertyChange(
[in] LONG hr,
[in] MCONTACTPROPERTY ePropType,
[in] VARIANT vPropVal
);
Parameters
-
hr [in]
-
Success or error code as a LONG.
Note 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.
-
ePropType [in]
-
A value in the MCONTACTPROPERTY enumeration.
-
vPropVal [in]
-
A VARIANT that contains the current client user's new property information.
Return value
This event does not return a value.
Remarks
The Windows Messenger API does not have a method to put or set the client's property information. This event fires only if the friendly name is changed through internal APIs or user action on the UI. To get the current client user properties, establish a MessengerContact object that corresponds to the current client user and call Property on that object.
This method exists primarily for as yet undefined properties. The current properties (Phone and FriendlyName ) have get_ methods for accessing the property in the Messenger object and their own specific change events.
To be used when writing custom ::Invoke methods to handle these events.
Parameter | vaArgs[x] | Variant Type |
---|---|---|
vPropVal | 0 | VT_BSTR |
ePropType | 1 | VT_14 |
hr | 2 | VT_14 |
Note
This event is available for scripting languages.
Requirements
Minimum supported client |
Windows 2000 Professional, 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 |
|
IDL |
|
DLL |
|