[SHFlushSFCache is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Flushes the special folder cache.
void SHFlushSFCache( );
This function has no parameters.
This function does not return a value.
SHFlushSFCache is called when the path to a special folder is changed. This ensures that the updated path stored in the registry is used rather than the cached value.
For more information on special folders, see the Special Folders and CSIDLs section of Getting a Folder's ID.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||shlobj_core.h (include Shlobj.h)|
|DLL||Shell32.dll (version 6.0 or later)|