If you just want to know how to refresh the Windows icon cache, I managed to dig up a Windows API call on StackOverflow that does it:
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
That's a C++ call to a Win32 method, so not sure how much use that will be to you!