Windows 7 Development: Shell Library

Source: Internet
Author: User

Windows 7 introduces a new concept of a library, a new entry point for user data. Users can easily find and manage their data in the form of collection data, and this data may be in several different locations on the computer. This library replaces the inherent folders in earlier versions of Windows (for example, My Documents, pictures, music) and puts them in the main "storage". The shell Library API, which provides an easy way for an application to interoperate with the library. Applications can create, interact, and support the library as a level element in their environment.

In Windows 7, the concept of the Shell library is to try to solve the problem of users storing data everywhere on their PCs by allowing them full control over their document library folder structure. In other words, in Windows 7, users can define which folder to store in a document library. We can also say that the shell library is a user-defined, logical collection of folders that represent user data. The folder contained in the library is actually where the user tells Windows where his or her important data is stored. The system then indexes these folders for faster query retrieval and richer view presentation capabilities in Windows Explorer based on file attributes and metadata.

In earlier versions of Windows, each application had its own property library. For example, Windows Media player has a different set of scopes than itunes, and neither is consistent with the music folder. Using the Shell Library API, the application can define and work with the user-defined area.

You can also include network folders in the Shell library. This feature will give users a good user experience, both at home and in the organization. Whenever a user opens a file dialog box, he can get a view of the collection that is pointed to by all available libraries.

Note: For more information, see inside Windows 7:introducing Libraries, and Windows 7 programming guide-libraries

Goal

In this hands-on experiment, you'll learn how to manage libraries in a programmatic way, including how to:

• Create a new library

• Open an existing library

• Add and delete folders in the library

• Get and resolve a list of library folders

• Delete Library

• Renaming libraries

• Set a default Save folder for the library

• Set the properties of the library, such as folder type, icon, lock to navigation bar status, etc.

• Display the Manage User interface dialog box

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.