IMessenger::MyServiceName property
[IMessenger::MyServiceName is no longer available for use as of Windows Vista. For more information, see Windows Messenger.]
Retrieves the service name of the primary service to which the local client user is currently signed in. Use ServiceName instead. To return a list of MessengerService objects, use the Services property.
This property is read-only.
Syntax
HRESULT get_MyServiceName(
[out, retval] BSTR *pbstrServiceName
);
Property value
Return value. A pointer to the string that identifies the primary service.
Error codes
Returns one of the following values.
Name | Meaning |
---|---|
|
Success. |
|
MySigninName is a NULL pointer. |
Remarks
If the local client is offline, this property returns the string of the default service. The default service and the primary service are usually the same.
Note
This property is available for scripting languages.
Requirements
Minimum supported client |
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 |
Header |
|
IDL |
|
DLL |
|