IMFNetResourceFilter::OnRedirect method (mfidl.h)

Called when the byte stream redirects to a URL.

Syntax

HRESULT OnRedirect(
  [in]  LPCWSTR      pszUrl,
  [out] VARIANT_BOOL *pvbCancel
);

Parameters

[in] pszUrl

The URL to which the connection has been redirected.

[out] pvbCancel

To cancel the redirection, set this parameter to VARIANT_TRUE. To allow the redirection, set this parameter to VARIANT_FALSE.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfidl.h

See also

IMFNetResourceFilter