IMessengerService::MyStatus Property

[MyStatus is no longer available in Windows Vista. See Windows Messenger for more information.]

Retrieves the status of the local user in a service.

This property is read-only.

Syntax (get)

HRESULT get_MyStatus(
  [out, retval]  MISTATUS *pmiStatus
);

Parameters

pmiStatus [out]

Pointer to the MISTATUS of the user.

Return Value

Returns one of the following values: 

Return codeDescription
S_OK

Success.

RPC_X_NULL_REF_POINTER

pmiStatus is a NULL pointer.

 

Remarks

This property does not return any error codes.

Note  This property is available for scripting languages.

Examples

The following Visual Basic example shows the use of this method.


Public WithEvents MsgrUIA As MessengerAPI.Messenger
Public MsgrService As MessengerAPI.IMessengerService

Private Sub btnServiceStatus_Click()
    On Error Resume Next
    MsgBox("Service status= " & ServiceStatusLookup(MsgrService.MyStatus))
    ErrorTrap ("MsgrService.MyStatus")	'Error handling routine
End Sub

Requirements

Header

Msgrua.h

IDL

Msgrua.idl

DLL

Msgsc.dll

See Also

IMessengerService
MyFriendlyName
MySigninName

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2010

Community Additions

ADD
Show: