DECLAREINTEGER FtpSetCurrentDirectory IN wininet;
STRING @ lpszDirectory
[in] Valid HINTERNET handle to an FTP session.
[in] Pointer to a null-terminated string that contains the name of the directory to change to on the remote system
Returns TRUE if successful, or FALSE otherwise
The function is very straightforward, nothing sophisticated. You can pass the directory name by a reference or by a value; it looks like the VFP automatically changes the passing value to a proper format