Export (0) Print
Expand All

IKnownFolder interface

Exposes methods that allow an application to retrieve information about a known folder's category, type, GUID, pointer to an item identifier list (PIDL) value, redirection capabilities, and definition. It provides a method for the retrival of a known folder's IShellItem object. It also provides methods to get or set the path of the known folder.

Members

The IKnownFolder interface inherits from the IUnknown interface. IKnownFolder also has these types of members:

Methods

The IKnownFolder interface has these methods.

MethodDescription
GetCategory

Retrieves the category—virtual, fixed, common, or per-user—of the selected folder.

GetFolderDefinition

Retrieves a structure that contains the defining elements of a known folder, which includes the folder's category, name, path, description, tooltip, icon, and other properties.

GetFolderType

Retrieves the folder type.

GetId

Gets the ID of the selected folder.

GetIDList

Gets the location of the Shell namespace folder in the IDList (ITEMIDLIST) form.

GetPath

Retrieves the path of a known folder as a string.

GetRedirectionCapabilities

Gets a value that states whether the known folder can have its path set to a new value or what specific restrictions or prohibitions are placed on that redirection.

GetShellItem

Retrieves the location of a known folder in the Shell namespace in the form of a Shell item (IShellItem or derived interface).

SetPath

Assigns a new path to a known folder.

 

Remarks

IKnownFolder objects can be obtained through several methods of the IKnownFolderManager interface, such as IKnownFolderManager::GetFolder and IKnownFolderManager::FindFolderFromIDList.

Third parties do not implement IKnownFolder. Use the provided implementation.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 6.0.6000 or later)

See also

Known Folders Sample

 

 

Community Additions

ADD
Show:
© 2014 Microsoft