|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
IntroductionRecently I have been working on a project that involved
getting the list of favorites (aka Bookmarks) in Internet Explorer. Microsoft
does provide an API to dump all the favorites in a text file that follows Netscape's
bookmark format. But that text file did not serve my purpose. First I needed a
parser that could extract all the information from that file and secondly, the
method call This gave me a reason to search for alternatives. The
answer was using the shell programming API. Favorites are stored in a user's
profile as regular folders and files. Therefore I could use the file attributes
to extract all the information that I needed, namely creation, modified and last
access dates, URL, description of the favorite. During the search I came across
a Microsoft article that described how to get started with this. With the help
of that article and some of my own ideas I came up with this COM object, The implementation shows the use of the shell APIs and some COM concepts, and prepares the complete enumeration of Favorites on the system. This COM object has just two methods:
The I have included a simple Win32 console application to show
how the
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||