A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



FtpGetCurrentDirectory

Retrieves the current directory for the specified FTP session.

VB4-32,5,6
Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, lpdwCurrentDirectory As Long) As Long

VB.NET
Not implemented

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 95 or later

Library
Wininet

Parameter Information
- hConnect
[in] Valid handle to an FTP session.

- lpszCurrentDirectory
[out] Address of a buffer that receives the current directory string, which specifies the absolute path to the current directory. The string is null-terminated.

- lpdwCurrentDirectory
[in, out] Address of a variable that specifies the length, in characters, of the buffer for the current directory string. 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 receives the number of characters copied into the buffer.

Return Values
Returns TRUE if successful, or FALSE otherwise. To get the specific error code, call GetLastError. If the error code indicates that the FTP server denied the request to change to a directory, use InternetGetLastResponseInfo to determine why.

Last update: 07 April 2006