IWMSCacheProxyServer::CancelDownloadContent
Previous | Next |
IWMSCacheProxyServer::CancelDownloadContent
The CancelDownloadContent method is called by the cache plug-in to stop the download process.
Syntax
HRESULT CancelDownloadContent( IWMSContext* pArchiveContext , IWMSCacheProxyServerCallback* pCallback , VARIANT varContext );
Parameters
pArchiveContext
[in] Pointer to an IWMSContext interface containing an archive context. This is the same context that the server passed to the plug-in when it called IWMSCacheProxyServerCallback::OnDownloadContentProgress.
pCallback
[in, optional] Pointer to an IWMSCacheProxyServerCallback interface. The server calls IWMSCacheProxyServerCallback::OnCancelDownloadContent to respond to the plug-in.
varContext
[in, optional] VARIANT containing a value defined by the plug-in. For example, your plug-in can use this parameter to persist state information. The server does not alter this value and passes it back when calling IWMSCacheProxyServerCallback::OnCancelDownloadContent.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
E_INVALIDARG | 0x80070057 | The pArchiveContext parameter is NULL. |
E_UNEXPECTED | 0x8000FFFF | The archive has not been started or is already in the process of stopping. |
E_OUTOFMEMORY | 0x8007000E | The server could not allocate a command context. |
Requirements
Header: streamcache.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.
See Also
Previous | Next |