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
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.
To get extended error information, call GetLastError.
Remarks
RemoveDirectory does not delete any object identified by lpPathName.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
windows.h | rtkrnl.lib |
See Also: