IKnownFolderManager::UnregisterFolder method (shobjidl_core.h)
Remove a known folder from the registry, which makes it unknown to the known folder system. This method does not remove the folder itself.
HRESULT UnregisterFolder( [in] REFKNOWNFOLDERID rfid );
GUID or KNOWNFOLDERID that represents the known folder.
Returns S_OK if successful, or an error value otherwise, including the following:
||Among other things, this value can indicate that the rfid parameter references a KNOWNFOLDERID that is not present on the system. Not all KNOWNFOLDERID values are present on all systems. Use IKnownFolderManager::GetFolderIds to retrieve the set of KNOWNFOLDERID values known to the current system.|
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|