Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.62 KB

FtpCommand.md

File metadata and controls

76 lines (51 loc) · 1.62 KB

Home

Function name : FtpCommand

Group: Internet Functions (WinInet) - Library: wininet


Sends commands directly to an FTP server.


Code examples:

Using FtpCommand

Declaration:

BOOL FtpCommand(
    HINTERNET hConnect,
    BOOL fExpectResponse,
    DWORD dwFlags,
    LPCTSTR lpszCommand,
    DWORD_PTR dwContext,
    HINTERNET *phFtpCommand
);
  

FoxPro declaration:

DECLARE INTEGER FtpCommand IN wininet;
	INTEGER   hConnect,;
	INTEGER   fExpectResponse,;
	INTEGER   dwFlags,;
	STRING    lpszCommand,;
	STRING  @ dwContext,;
	INTEGER @ phFtpCommand
  

Parameters:

hConnect [in] HINTERNET handle returned from a call to InternetConnect

fExpectResponse [in] BOOLvalue that indicates whether or not the application expects a response from the FTP server

dwFlags [in] Unsigned long integer value that contains the flags that control this function

lpszCommand [in] Pointer to a string value that contains the command to send to the FTP server

dwContext [in] Pointer to an unsigned long integer value that contains an application-defined value

phFtpCommand [out] Pointer to an HINTERNET handle that will be created if a valid data socket is opened


Return value:

Returns TRUE if successful, or FALSE otherwise


Comments:

The complete list of service commands can be found in the FTP specification.