|
|
|
IShellFolder Interface |
|
IID_IShellFolder |
{000214E6-0000-0000-C000-000000000046} |
|
The IShellFolder interface is used to manage folders. It is exposed by all Shell namespace folder objects.
Use this interface when you need to display or perform an operation on the contents of the Shell's namespace. Objects that support IShellFolder are usually created by other Shell folder objects. To retrieve a folder's IShellFolder interface, you normally start by calling SHGetDesktopFolder. This function returns a pointer to the desktop's IShellFolder interface. You can then use its methods to retrieve an IShellFolder interface for a particular namespace folder.
Note IShellFolder methods only accept PIDLs that are relative to the folder. Some IShellFolder methods, such as IShellFolder::GetAttributesOf, only accept single-level PIDLs. In other words, the PIDL must contain only a single SHITEMID structure, plus the terminating NULL. When you enumerate the contents of a folder with IEnumIDList, you will receive PIDLs of this form. Other methods, such as IShellFolder::CompareIDs, accept multi-level PIDLs. These PIDLs can have multiple SHITEMID structures and identify objects one or more levels below the parent folder. Check the reference to be sure what type of PIDL can be accepted by a particular method.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IShellFolder Methods |
Description |
|
ParseDisplayName |
Translates a file object's or folder's display name into an item identifier list. |
|
EnumObjects |
Allows a client to determine the contents of a folder by creating an item identifier enumeration object and returning its IEnumIDList interface. The methods supported by that interface can then be used to enumerate the folder's contents. |
|
BindToObject |
Retrieves an IShellFolder object for a subfolder. |
|
BindToStorage |
Requests a pointer to an object's storage interface. |
|
CompareIDs |
Determines the relative order of two file objects or folders, given their item identifier lists. |
|
CreateViewObject |
Requests an object that can be used to obtain information from or interact with a folder object. |
|
GetAttributesOf |
Retrieves the attributes of one or more file or folder objects contained in the object represented by IShellFolder. |
|
GetUIObjectOf |
Retrieves an OLE interface that can be used to carry out actions on the specified file objects or folders. |
|
GetDisplayNameOf |
Retrieves the display name for the specified file object or subfolder. |
|
SetNameOf |
Sets the display name of a file object or subfolder, changing the item identifier in the process. |
|
ParseDisplayName |
|
FUNCTION
IShellFolder_ParseDisplayName ( _
pwszDisplayName = UCODE$(pwszDisplayName
& $NUL)
|
|
EnumObjects |
|
FUNCTION
IShellFolder_EnumObjects ( _
|
|
BindToObject |
|
FUNCTION
IShellFolder_BindToObject ( _
|
|
BindToStorage |
|
FUNCTION
IShellFolder_BindToStorage ( _
|
|
CompareIDs |
|
FUNCTION
IShellFolder_CompareIDs ( _
|
|
CreateViewObject |
|
FUNCTION
IShellFolder_CreateViewObject ( _
|
|
GetAttributesOf |
|
FUNCTION
IShellFolder_GetAttributesOf ( _
|
|
GetUIObjectOf |
|
FUNCTION
IShellFolder_GetUIObjectOf ( _
|
|
GetDisplayNameOf |
|
FUNCTION
IShellFolder_GetDisplayNameOf ( _
|
|
SetNameOf |
|
FUNCTION
IShellFolder_SetNameOf ( _
pwszName = UCODE$(pwszName
& $NUL)
|
Page last updated on Friday, 11 August 2006 04:22:17 +0200