IWindowForBindingUI::GetWindow

The URL moniker calls this method to obtain an HWND for a window to present information in the user interface during a bind operation.

HRESULT GetWindow(

GUID guidReason

// Why a window is needed

HWND *phwnd

// Pointer to window handle of parent window for moniker to use

);

Parameter

guidReason
[in] Same value as IID_ICodeInstall, IID_IAuthenticate, or IID_IHttpSecurity.
phwnd
[out] Pointer to a window handle of the parent window to use for displaying user interface information.

Return Values

S_OK
The window handle was successfully returned.
E_INVALIDARG
The phwnd parameter is invalid.

Notes to Implementers

If you implement this interface, you can return S_FALSE for this method to indicate that no window is available for displaying user interface information.

See Also

IAuthenticate, IHttpNegotiate, IWinInetInfo