I have this piece of code...
What I want to do is to make it loop, and on the second run change strcat(szPath, "\\\\folder1"); into strcat(szPath, "\\\\anotherfolder"); and on the third run change to strcat(szPath, "\\\\yetanotherfolder"); and so on... Any idea how to go about doing it? Maybe a loop or something?
// Get current user's favorite folder
SHGetSpecialFolderPath(NULL, szPath, CSIDL_FAVORITES, FALSE);
// THIS IS THE LINE I WANT TO CHANGE
os.hwnd = NULL;
os.pFrom = szPath;
os.pTo = NULL;
os.wFunc = FO_DELETE;
os.fFlags = FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_SILENT;
int x = SHFileOperation(&os);