Folders and File Objects
A
folder is a collection of items in the shell's namespace. A folder is analogous to a
file system directory, and many folders are, in fact, directories. However,
there are also other types of folders, such as remote computers, storage devices,
the desktop folder, the Control Panel, the Printers folder, and the Fonts
folder. A folder may contain other folders as well as items called
file objects. A file object may be an actual file, or it can be a Control Panel
application, a printer, or another type of object. Each type of folder can only contain
certain kinds of file objects; for example, you cannot move a Control Panel
application into a file system directory.
Because there are many kinds of folders and file objects, each folder is a OLE
component object model (COM) object that "knows" how to enumerate its contents
and carry out other actions. More precisely, each folder implements the
IShellFolder interface. Retrieving the
IShellFolder object for a shell folder is referred to as
binding to the folder. An application that binds to a folder must eventually free the
IShellFolder interface object by calling its
Release member function.
You can bind to the desktop folder (retrieve the folder's
IShellFolder interface) by using the
SHGetDesktopFolder member function. You can enumerate subfolders by using the
IShellFolder::EnumObjects member function. You can bind to a subfolder of any given folder by using the
IShellFolder::BindToObject member function. Using these three functions, an application can navigate
throughout the shell's entire namespace.
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database