CHttpQueue::Stop Method  
 
BOOL Stop();

The Stop method stops transferring queued files.

Parameters

None.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, it will return zero. To get extended error information, call GetLastError.

Remarks

When the Stop method is called and there is a file transfer in progress, it will not immediately stop the upload or download of the file. Instead, the queue manager is signaled to stop processing additional files in the queue after the transfer has completed. To wait for the current transfer to complete, call the Wait method.

It is permitted to call the Stop method from within a queue event handler. In this case, the current file transfer will complete and the queue manager will terminate.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtpv12.lib

See Also