IKnownFolderManager::RegisterFolder method (shobjidl_core.h)
Adds a new known folder to the registry. Used particularly by independent software vendors (ISVs) that are adding one of their own folders to the known folder system.
HRESULT RegisterFolder( REFKNOWNFOLDERID rfid, const KNOWNFOLDER_DEFINITION *pKFD );
A GUID that represents the known folder.
Type: const KNOWNFOLDER_DEFINITION*
A pointer to a valid KNOWNFOLDER_DEFINITION structure that provides the details of the new folder.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Multiple KNOWNFOLDERID values for the same file system path can cause several issues, such as conflicts in the Desktop.ini file that lead to confusion as to what language or properties to show for the folder. Multiple KNOWNFOLDERID values can also cause confusion as to the address bar path or what tasks to show for the folder in Windows Explorer.
You can suppress the display of the Customize page of your known folder's Properties window. To do so, set the following registry REG_DWORD value:
Software Microsoft Windows CurrentVersion Explorer FolderDescriptions Folder GUID PropertyBag NoCustomize = 0x00000001 (1)
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|