Share via


IMessengerService::MyStatus property

[MyStatus is no longer available for use as of Windows Vista. See Windows Messenger for more information.]

Retrieves the status of the local user in a service.

This property is read-only.

Syntax

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

Property value

Pointer to the MISTATUS of the user.

Error codes

Returns one of the following values.

Name Meaning
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

End of client support
Windows XP
End of server support
Windows Server 2003
Header
Msgrua.h
IDL
Msgrua.idl
DLL
Msgsc.dll

See also

IMessengerService

MyFriendlyName

MySigninName