SHFlushSFCache function (shlobj_core.h)

[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.

Syntax

void SHFlushSFCache();

Return value

None

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 6.0 or later)