Export (0) Print
Expand All

IMessenger::MyServiceName Property

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

Deprecated in Windows Messenger 5.0. Retrieves the service name of the primary service to which the local client user is currently signed in.

This property is read-only.

Syntax (get)

HRESULT get_MyServiceName(
  [out, retval]  BSTR *pbstrServiceName
);

Parameters

pbstrServiceName [out]

Return value. A pointer to the string that identifies the primary service.

Return Value

Returns one of the following values.

Return codeDescription
S_OK

Success.

RPC_X_NULL_REF_POINTER

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.

Important  MyServiceName 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
ServiceName

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2010

Community Additions

ADD
Show:
© 2015 Microsoft