FtpGetCurrentDirectoryFtpGetCurrentDirectory*
*



Contents  *



Index  *Topic Contents
*Previous Topic: FtpFindFirstFile
*Next Topic: FtpGetFile

FtpGetCurrentDirectory

BOOL FtpGetCurrentDirectory(
    IN HINTERNET hFtpSession,
    OUT LPSTR lpszCurrentDirectory,
    IN OUT LPDWORD lpdwCurrentDirectory
);

Retrieves the current directory for the specified FTP session.

hFtpSession
Valid handle to an FTP session.
lpszCurrentDirectory
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
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.

If the lpszCurrentDirectory buffer is not large enough, lpdwCurrentDirectory receives the number of bytes required to retrieve the full, current directory name.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.