IMsgrSession::User Property
Deprecated. Retrieves a pointer to an IDispatch of a MessengerContact object.
Syntax
HRESULT IMsgrSession::get_User(IDispatch **ppUser);
Parameters
- ppUser
A pointer to an IDispatch of a MessengerContact object.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The MessengerContact object contains information about the contact associated with this object. For example, calling IMessengerContact::get_FriendlyName returns the friendly name of the contact.
The following table lists the error codes returned by this property.
Error Code Meaning E_INVALIDARG The value passed into the property was not valid. SR_NO_USER_INVITED No other user has been invited to this session. Important IMsgrSession::User is no longer available in Windows Vista. See Windows Messenger for more information.
See Also
Messenger Session Invite and Messenger Private APIs, Messenger Lock and Key API