This function deletes an existing empty directory.
BOOL RemoveDirectory( LPCSTR lpPathName )
Nonzero indicates success. Zero indicates failure.
EX1
int RemoveDirectory_ex1() { char szDirPath[] = "c:\\TEXTRO\\"; if (!CreateDirectory(szDirPath, NULL)) { out_str("Couldn't create new directory."); } if (!RemoveDirectory(szDirPath)) { out_str("Couldn't Delete empty directory."); } return 1; }
CreateDirectory
origin.h