IMessengerGroup::AddContact Method
Deprecated. Adds a contact to the group.
Syntax
HRESULT AddContact( VARIANT vContact );
Parameters
- vContact
[in] VARIANT that defines the contact to add to the group.
Return Value
Returns one of the following values.
S_OK Success. E_INVALIDARG vContact is NULL, points to a NULL string, or points to a string that has a space as the first character.
- or -vContact is VT_BStr that exceeded 129 characters (130 if the string terminator is included in the count. This allows for a 64-character sign-in name, @ symbol, and a 64-character domain name. This format does not have to be followed.)
- or -vContact is VT_BStr and contains a carriage return or linefeed.
E_FAIL General failure. MSGR_E_NOT_LOGGED_ON Client is offline. MSGR_E_USER_NOT_FOUND The user specified to be added does not exist.
Remarks
Note This method is not available for scripting languages.
Important IMessengerGroup::AddContact is no longer available in Windows Vista. See Windows Messenger for more information.
See Also