Share via


IInternetProtocolSink::Switch (Windows Embedded CE 6.0)

1/6/2010

This method 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 Value

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

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IInternetProtocolSink
IInternetProtocolRoot::Continue