Share via


IMessengerService::ServiceName Property

Deprecated. Retrieves the service name of the contact associated with this MessengerContact object.

Syntax

HRESULT IMessengerService::get_ServiceName(BSTR *pbstrServiceName);

Parameters

  • pbstrServiceName
    Pointer to a BSTR containing a string that identifies the service used by this contact.

Return Value

Returns one of the following values. 

S_OK Success.
RPC_X_NULL_REF_POINTER pbstrServiceName is a NULL pointer.
E_FAIL General failure.
E_OUTOFMEMORY Internal string copy failed.

Remarks

This method is useful for obtaining human-readable, service-identifying strings to be used in the user interface (UI).

Note  This property is available for scripting languages.

Important  IMessengerService::ServiceName is no longer available in Windows Vista. See Windows Messenger for more information.

See Also

IMessengerService::ServiceID