Deletes an existing empty directory.
BOOLEAN RemoveDirectory( LPCTSTR lpPathName );
lpPathName
A bad path results in ERROR_FILE_NOT_FOUND instead of ERROR_PATH_NOT_FOUND.
RemoveDirectory operates only on empty directories. If the directory is not empty, an application must first recursively enumerate and delete the files and subdirectories inside the directory.
0
(zero)
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib |
Note
This function operates in the real-time portion of your application.
CreateDirectory, DeleteFile, iwin32 API, iwin32 Overview