IMessengerWindow::HWND Property

Deprecated. Retrieves a window handle to a Messenger window.

Syntax

HRESULT IMessengerWindow::get_HWND(long *phWnd);

Parameters

  • phWnd
    Pointer to a LONG that receives a HWND handle to this Messenger window.

Return Value

Returns one of the following values: 

S_OK Success.
RPC_X_NULL_REF_POINTER phWnd is a NULL pointer.
E_FAIL Could not get window handle.
E_NOTIMPL Cannot be accessed through scripting.

Remarks

Unlike the Messenger application, there can be more than one conversation window and therefore multiple HWNDs.

If called on the IMessengerWindow interface of the application's Messenger window, it will return an HWND for the parent application.

Note  This property is not available for scripting languages.

Important  IMessengerWindow::HWND is no longer available in Windows Vista. See Windows Messenger for more information.

See Also

IMessenger