SHFlushSFCache function

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

);

Parameters

This function has no parameters.

Return Value

This function does not return a value.

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

   
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)