Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.82 KB

nf-wininet-ftpremovedirectoryw.md

File metadata and controls

98 lines (73 loc) · 3.82 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.FtpRemoveDirectoryW
FtpRemoveDirectoryW function (wininet.h)
Removes the specified directory on the FTP server. (Unicode)
FtpRemoveDirectory
FtpRemoveDirectory function [WinINet]
FtpRemoveDirectoryW
_inet_ftpremovedirectory_function
wininet.ftpremovedirectory
wininet/FtpRemoveDirectory
wininet/FtpRemoveDirectoryW
wininet\ftpremovedirectory.htm
wininet
4c02af2f-ece8-409a-9c3e-495e1beb80ef
12/05/2018
FtpRemoveDirectory, FtpRemoveDirectory function [WinINet], FtpRemoveDirectoryA, FtpRemoveDirectoryW, _inet_ftpremovedirectory_function, wininet.ftpremovedirectory, wininet/FtpRemoveDirectory, wininet/FtpRemoveDirectoryA, wininet/FtpRemoveDirectoryW
wininet.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
FtpRemoveDirectoryW (Unicode) and FtpRemoveDirectoryA (ANSI)
Wininet.lib
Wininet.dll
Windows
19H1
FtpRemoveDirectoryW
wininet/FtpRemoveDirectoryW
c++
APIRef
kbSyntax
DllExport
Wininet.dll
FtpRemoveDirectory
FtpRemoveDirectoryA
FtpRemoveDirectoryW

FtpRemoveDirectoryW function

-description

Removes the specified 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 be removed. 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 remove 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 FtpRemoveDirectory 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