locked
Clearing SHGetFileInfo cache RRS feed

  • Question

  • Hi.
    I hope this is the right place to ask...I use VB 2005 Express and I've been fiddling a bit with the SHGetFileInfo API to retrieve icons with overlays and fileattributes.
    I have a problem though. Say I get the icon of a folder e.g. D:\Data.
    Then I share this folder and the explorer updates the display with the little hand overlay. My app has to restart to reflect the change. Every call to SHGetFileInfo returns the same icon and attributes.

    So, my question is this: Is the a way to clear the cache, forcing SHGetFileInfo to actually read the current information?

    I've been doing some Google'ing and I found some undocumented functions like FileIconInit but nothing worked.

    Thanks.

     

    Monday, May 22, 2006 8:20 AM