IMessenger::MyServiceId Property

[� The MyServiceId property is available for use in Windows Messenger 5.0. It may be unavailable in subsequent versions. Use ServiceID instead. To return a list of MessengerService objects, use the Services property. ]

Deprecated in Windows Messenger 5.0. Retrieves the service ID, a GUID, of the primary service to which the local client user is currently signed in.

This property is read-only.

Syntax (get)

HRESULT get_MyServiceId(
  [out, retval]  BSTR *pbstrServiceId
);

Parameters

pbstrServiceId [out]

Return value. Pointer to a BSTR that contains a GUID that uniquely identifies the service used by the local client user.

Return Value

Returns one of the following values.

Return codeDescription
S_OK

Success.

E_FAIL

General failure.

 

Remarks

If the local client is offline, this method returns the service ID of the default service.

Important  MyServiceId is no longer available in Windows Vista. See Windows Messenger for more information.

Note  This property is available for scripting languages.

Requirements

Header

Msgrua.h

IDL

Msgrua.idl

DLL

Msgsc.dll

See Also

IMessenger

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2010

Show: