FtpGetCurrentDirectory (Windows CE 5.0)
This function retrieves the current directory for the specified FTP session.
BOOL WINAPI FtpGetCurrentDirectory( HINTERNET hConnect, LPCTSTR lpszCurrentDirectory, LPDWORD lpdwCurrentDirectory );
- [in] Valid handle to an FTP session.
- [out] Long pointer to a buffer that receives the null-terminated string that contains the absolute path to the current directory.
- [in, out] Long pointer to a variable that specifies the buffer length, in characters, for the current directory string. On input, the buffer length must include room for a terminating null character. Using a length of MAX_PATH is sufficient for all paths. When the function returns, the variable contains the number of characters that were copied into the buffer.
TRUE indicates success. FALSE indicates failure. To get extended error data, call GetLastError.
If the lpszCurrentDirectory buffer is not large enough, lpdwCurrentDirectory receives the number of bytes required to retrieve the full, current directory name.
OS Versions: Windows CE 2.0 and later.
Link Library: Wininet.lib.
Send Feedback on this topic to the authors