Share via


IInternetProtocolSink::Switch

Send Feedback

Passes data from an asynchronous pluggable protocol's worker thread intended for the same asynchronous pluggable protocol's apartment thread.

Syntax

HRESULT Switch(
  PROTOCOLDATA * pProtocolData
);

Parameters

  • pProtocolData
    [in] Address of a PROTOCOLDATA structure containing the data to be passed back to the apartment thread.

Return Values

Returns S_OK if successful, or E_FAIL if called when an asynchronous operation is pending.

Remarks

The IInternetProtocolSink interface should pass the data from the worker thread, without modification, back to the asynchronous pluggable protocol by calling its IInternetProtocolRoot::Continue method.

Asynchronous pluggable protocol handlers can operate asynchronously in a separate worker thread. This method allows the protocol handler to pass data back to the apartment (or user interface) thread it was created on.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib

See Also

IInternetProtocolSink

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.