SetFTPTransferMethod

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetFTPTransferMethod (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int iValue);

Description

Sets the Transfer Method property of the stored FTP connection identified by dwConnectionID. This property specifies whether the files should be copied or moved to the FTP server.

Parameters

BlackIceDEVMODE* pDevMode

Pointer to the BlackIceDEVMODE structure.

 

DWORD dwConnectionID

The ID of the connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection functions.

 

int iValue

The new value of the property. The value can be one of the values from the FTPTransferMethod enum:

enum FTPTransferMethod
{
            FTP_TRANSFEER_METHOD_COPY = 0,         // 0 – Copy the files
            FTP_TRANSFEER_METHOD_MOVE                // 1 – Move the files
};

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None