Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.97 KB

nf-wininet-ftpsetcurrentdirectoryw.md

File metadata and controls

98 lines (73 loc) · 3.97 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wininet.FtpSetCurrentDirectoryW
FtpSetCurrentDirectoryW function (wininet.h)
Changes to a different working directory on the FTP server. (Unicode)
FtpSetCurrentDirectory
FtpSetCurrentDirectory function [WinINet]
FtpSetCurrentDirectoryW
_inet_ftpsetcurrentdirectory_function
wininet.ftpsetcurrentdirectory
wininet/FtpSetCurrentDirectory
wininet/FtpSetCurrentDirectoryW
wininet\ftpsetcurrentdirectory.htm
wininet
1ee21e9e-d113-427e-ab47-86139e6ecad0
12/05/2018
FtpSetCurrentDirectory, FtpSetCurrentDirectory function [WinINet], FtpSetCurrentDirectoryA, FtpSetCurrentDirectoryW, _inet_ftpsetcurrentdirectory_function, wininet.ftpsetcurrentdirectory, wininet/FtpSetCurrentDirectory, wininet/FtpSetCurrentDirectoryA, wininet/FtpSetCurrentDirectoryW
wininet.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
FtpSetCurrentDirectoryW (Unicode) and FtpSetCurrentDirectoryA (ANSI)
Wininet.lib
Wininet.dll
Windows
19H1
FtpSetCurrentDirectoryW
wininet/FtpSetCurrentDirectoryW
c++
APIRef
kbSyntax
DllExport
Wininet.dll
FtpSetCurrentDirectory
FtpSetCurrentDirectoryA
FtpSetCurrentDirectoryW

FtpSetCurrentDirectoryW function

-description

Changes to a different working directory on the FTP server.

-parameters

-param hConnect [in]

Handle to an FTP session.

-param lpszDirectory [in]

Pointer to a null-terminated string that contains the name of the directory to become the current working directory. This can be either a fully qualified path or a name relative to the current directory.

-returns

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

-remarks

An application should use FtpGetCurrentDirectory to determine the remote site's current working directory, instead of assuming that the remote system uses a hierarchical naming scheme for directories.

The lpszDirectory parameter can be either partially or fully qualified file names relative to the current directory.

Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

Note

The wininet.h header defines FtpSetCurrentDirectory as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

FTP Sessions

WinINet Functions