Chapter 11. Namespace Extensions

only for RuBoard - do not distribute or recompile

Chapter 11. Namespace Extensions

The Windows namespace is similar to the directory structure of a filesystem, but in addition to files, it also contains other objects, like printers, storage devices, and network resources. As Figure 11.1 shows, this namespace is a single hierarchy that begins with the Desktop and contains everything that is visible within Explorer. Namespace extensions provide the means for you to insert your own objects into this hierarchy. This allows you to browse your data as if it were just another object in the system, but it also provides the means for you to manipulate that data in a manner that is specific to your needs.

Figure 11.1. The namespace
figs/vshl.1101.gif

Consider the desktop for a moment (see Figure 11.1). The Desktop contains My Computer, Network Neighborhood, My Briefcase, and the Recycle Bin. My Computer in turn contains Printers, Control Panel, and Dial-Up Networking. If you examine the registry's HKEY_CLASSES_ROOT\CLSID key for each of these objects, you will see that each of them is mapped to shell32.dll . In other words, these are all namespace extensions. Actually, everything you can see that is displayed in Explorer is being handled by a namespace extensioneven the directories and files. Nothing is built-in. Explorer is literally a shell that's a namespace browser.

only for RuBoard - do not distribute or recompile


Visual Basic Shell Programming
Visual Basic Shell Programming
ISBN: B00007FY99
EAN: N/A
Year: 2000
Pages: 128

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net