I have re-assigned a custom .ico to my filetype (.myp) in the registry, and am attempting to update a specific .myp file to display the new .ico. I am looking for this to happen immediately (as quickly as possible).
The icon updates fine when calling:
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
But this updates all icons in the system, regardless of extension and location, causing a strange flickering, not to mention it takes quite a bit of time to accomplish.
I have attempted the following: call SHGetFileInfo to obtain the system icon index of new1.myp's icon (I seem to get the index correctly, under sfi.iIcon a value of 590 when indicating a png, and 271 when indicating one of my .myp files), but the SHChangeNotify has no success in causing that icon to update: