how to modify this func so that it would also delete folders?
How to modify this function so that It would also delete all directories (including empty ones) in given directory?
void DLL_EXPORT DeleteAllFiles(const LPCSTR folderPath)
MessageBoxA(0, folderPath, "DLL Message", MB_OK | MB_ICONINFORMATION);
sprintf(fileFound, "%s\\*.*", folderPath);
hp = FindFirstFile(fileFound, &info);
sprintf(fileFound,"%s\\%s", folderPath, info.cFileName);