Skip to main content

Windows Dev Center

IMFNetResourceFilter::OnRedirect method

Called when the byte stream redirects to a URL.

Syntax


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

Parameters

[in]

The URL to which the connection has been redirected.

pvbCancel [out]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

None supported

Header

Mfidl.h

See also

IMFNetResourceFilter