| August 24, 2008 Sunday Last updated |
|
August 28, 1998 Friday Site founded |
||
| for people and PCs | ||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
Shell ReferenceThe Microsoft® Windows® user interface (UI) gives users access to a wide variety of objects necessary for running applications and managing the operating system. The most numerous and familiar of these objects are the folders and files that reside on computer disk drives. There are also a number of virtual objects that allow the user to do tasks, such as send files to remote printers or access the Recycle Bin. The shell organizes these objects into a hierarchical structure called the namespace, which provides users and applications with a consistent and efficient way to access and manage objects. Users interact with the namespace through the shell's graphical UI or through an application. Applications interact with the namespace through the shell's application programming interface (API). File ClassesFiles with a common file name extension can be defined as members of a file class. Defining a file class allows to extend the shell by customizing the behavior of all files in the class. The folowing behaviors can be customized by adding registry entries or special files:
For a greater degree of control over the behavior of
a file class, there are shell extension handlers. Context Menu HandlersWhen a user right-clicks a shell object, the shell displays its context menu. For file system objects there are a number of standard items, such as Cut and Copy, that are on the menu by default. If the object is a file that is a member of a class, additional items can be specified in the registry (static menu items). Finally, the shell checks the registry to see if the file class is associated with any context menu handlers. If it is, the shell queries the handler for additional context menu items (dynamic menu items). A context menu handler is a shell extension handler that adds commands to an existing context menu. Context menu handlers are associated with a particular file class and are called any time a context menu is displayed for a member of the class. While you can add items to a file class context menu with the registry, the items will be the same for all members of the class. By implementing and registering such a handler, it is possible to dynamically add items to an object's context menu, customized for the particular object. Predefined Shell ObjectsThe shell defines additional objects under HKEY_CLASSES_ROOT which can be extended in the same way as file types. The following table gives the various subkeys of HKEY_CLASSES_ROOT that extension handlers can be registered under.
Notes:
Information source: MSDN
Library. |
||||||||||||||||||||||||||||||||||||||||||||||