IInternetProtocolSink::Switch (Windows CE 5.0)
This method passes data from an asynchronous pluggable protocol's worker thread intended for the same asynchronous pluggable protocol's apartment thread.
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
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
See Also
IInternetProtocolRoot::Continue | IInternetProtocolSink
Send Feedback on this topic to the authors