This topic has not yet been rated - Rate this topic

DWebBrowserEvents2::RedirectXDomainBlocked Event

Fired when a cross-domain redirect request is blocked.

Syntax


void RedirectXDomainBlocked(
    IDispatch *pDisp,
    VARIANT *StartURL,
    VARIANT *RedirectURL,
    VARIANT *Frame,
    VARIANT *StatusCode
);

Parameters

pDisp
[in] The IWebBrowser2 object that triggered the event.
StartURL
[in] A VARIANT of type VT_BSTR that specifies the original target URL.
RedirectURL
[in] A VARIANT of type VT_BSTR that specifies the redirected URL.
Frame
[in] A VARIANT of type VT_BSTR that specifies the target frame name.
StatusCode
[in] A VARIANT of type VT_I4 that specifies the reason for the redirect (HTTP status code).

Return Value

No return value.

Event DISPID


DISPID_REDIRECTXDOMAINBLOCKED

The DISPID for this event is defined in exdispid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Remarks

Windows Internet Explorer fires this event but does not respond to it. The event is intended for use by Browser Helper Objects (BHOs).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ