IMessenger::MyServiceId property
[IMessenger::MyServiceId is no longer available for use as of Windows Vista. For more information, see Windows Messenger.]
Retrieves the service ID, a GUID, of the primary service to which the local client user is currently signed in. Use ServiceID instead. To return a list of MessengerService objects, use the Services property.
This property is read-only.
Syntax
HRESULT get_MyServiceId(
[out, retval] BSTR *pbstrServiceId
);
Property value
Return value. Pointer to a BSTR that contains a GUID that uniquely identifies the service used by the local client user.
Error codes
Returns one of the following values.
Name | Meaning |
---|---|
|
Success. |
|
General failure. |
Remarks
If the local client is offline, this method returns the service ID of the default service.
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 |
|