ISearchFolderItemFactory interface

Exposes methods that create and modify search folders. The Set methods are called first to set up the parameters of the search. When not called, default values will be used instead. ISearchFolderItemFactory::GetIDList and ISearchFolderItemFactory::GetShellItem return the two forms of the search specified by these parameters.

Methods

The ISearchFolderItemFactory interface has these methods.

Method Description
ISearchFolderItemFactory::GetIDList Gets the search folder as an ITEMIDLIST.
ISearchFolderItemFactory::GetShellItem Gets the search folder as a IShellItem.
ISearchFolderItemFactory::SetCondition Sets the ICondition of the search. When this method is not called, the resulting search will have no filters applied.
ISearchFolderItemFactory::SetDisplayName Sets the search folder display name, as specified.
ISearchFolderItemFactory::SetFolderLogicalViewMode Sets folder logical view mode. The default settings are based on the FolderTypeID which is set by the ISearchFolderItemFactory::SetFolderTypeID method.
ISearchFolderItemFactory::SetFolderTypeID Sets a search folder type ID, as specified.
ISearchFolderItemFactory::SetGroupColumn Sets a group column, as specified. If no group column is specified, no grouping occurs.
ISearchFolderItemFactory::SetIconSize Sets the search folder icon size, as specified. The default settings are based on the FolderTypeID which is set by the ISearchFolderItemFactory::SetFolderTypeID method.
ISearchFolderItemFactory::SetScope Sets search scope, as specified.
ISearchFolderItemFactory::SetSortColumns Creates a list of sort column directions, as specified.
ISearchFolderItemFactory::SetStacks Creates a list of stack keys, as specified. If this method is not called, by default the folder will not be stacked.
ISearchFolderItemFactory::SetVisibleColumns Creates a new column list whose columns are all visible, given an array of PROPERTYKEY structures. The default is based on FolderTypeID.

Remarks

To implement this interface use class ID CLSID_SearchFolderItemFactory.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)