Parameters
hConnect
[in] Handle returned from a call to InternetConnect.
fExpectResponse
[in] Indicates whether or not the application expects a response from the FTP server. This must be set to TRUE if a response is expected, or FALSE otherwise.
dwFlags
[in] Controls this function. This parameter can be set to one of the following values.Value Meaning
FTP_TRANSFER_TYPE_ASCII Transfers the file using FTP's ASCII (Type A) transfer method. Control and formatting information is converted to local equivalents.
FTP_TRANSFER_TYPE_BINARY Transfers the file using FTP's Image (Type I) transfer method. The file is transferred exactly as it exists with no changes. This is the default transfer method.
lpszCommand
[in] Pointer to a string that contains the command to send to the FTP server.
dwContext
[in] Pointer to a variable that contains an application-defined value that is used to identify the application context in callbacks.
phFtpCommand
[out] Pointer to a handle that will be created if a valid data socket is opened. The fExpectResponse parameter must be set to TRUE for phFtpCommand to be filled.