Share via


IMessenger::Window property

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

Gets a pointer to a MessengerWindow object that is used to control automation properties of the main application window, including dimensions, positioning, and visibility.

This property is read-only.

Syntax

HRESULT get_Window(
  [out, retval] IDispatch **ppMWindow
);

Property value

Return value. Address of a pointer to an IDispatch interface on a MessengerWindow object. This object can now be accessed through its IMessengerWindow interface.

Error codes

Returns one of the following values.

Name Meaning
S_OK
Success. See Remarks.
E_INVALIDARG
Client not responding.
E_FAIL
Client not responding.
RPC_X_NULL_REF_POINTER
ppMWindow is a NULL pointer.

Remarks

This property allows access to an object with the IMessengerWindow interface that is used to implement a number of other common automation properties, including Height, Width, Top, Left, and Show.

Note

This property is available for scripting languages.

Requirements

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