FtpRemoveQueuedFile Function  
 
BOOL WINAPI FtpRemoveQueuedFile(
  HQUEUE hQueue,  
  DWORD dwFileId  
);

The FtpRemoveQueuedFile removes the specified file from the queue.

Parameters

hQueue
A handle to a file transfer queue.
dwFileId
An unsigned integer value which uniquely identifies the file in the queue. This value cannot be zero.

Return Value

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

Remarks

Files can only be removed from the queue when in an idle or paused state. If you attempt to remove a file while the queue manager is in the process of uploading or download files, the function will fail.

The file identifier can be obtained by several different functions, including FtpEnumQueuedFiles and FtpGetQueueStatus, which provides information about the current file being processed in the queue. Do not make any assumptions about the value of the identifier. Although the value is guaranteed to be unique for the specified queue, it is not guaranteed that file identifiers will be assigned in sequential order.

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: csftpv12.lib

See Also