I\'ve been trying to change folder icon programmatically using changing desktop.ini on the folder. I was able to set an icon, but couldn\'t change it immediately through cha
Example:
SHFOLDERCUSTOMSETTINGS fcs = {0}; fcs.dwSize = sizeof(SHFOLDERCUSTOMSETTINGS); fcs.dwMask = FCSM_ICONFILE; fcs.pszIconFile = iconPath; fcs.cchIconFile = 0; fcs.iIconIndex = iconIndex; SHGetSetFolderCustomSettings(&fcs, folderPath, FCS_FORCEWRITE);