RemoveDirectory
RemoveDirectory deletes an existing empty directory.
Syntax
BOOL RemoveDirectory(
LPCTSTR lpPathName
);
Parameters
lpPathName
A pointer to a null-terminated string that specifies the path of the directory to be removed. The path must specify an empty directory, and the calling process must have delete access to the directory.
Return Value
TRUE if the function succeeds, FALSE if the function fails
To get extended error information, call GetLastError.
Remarks
RemoveDirectory does not delete any object identified by lpPathName.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | windows.h |
Library | Rtx_Rtss.lib |
See Also: