GetFTPTransferMethod

 

#include “BlackIceDEVMODE.h”

 

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

Description

Gets 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

Pointer to a variable that will receive the property. The returned 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