views:

154

answers:

1

Hi there

I hope someone can help me with this as I'm unable to find the right method to do it. I am currently developing an application that should ,in a part of it, be able to enumerate all the Windows Libraries and display their contents as well. For now I was able to get the included folders for all the standard windows 7 libraries, Documents, Pictures, Videos and Music. The problem is that I don't know how to get the info of custom user libraries as the IShellLibrary::SHLoadLibraryFromKnownFolder needs the specific folder GUID which is not really defined in KnownFolders.h.

I only need to list all libraries names and fetch their respective GUIDs if it's possible.

+1  A: 

It seems like you can technically create a library definition file and place it anywhere on a system. Short of searching for all such definition files, perhaps you might consider limiting yourself to enumerating all shell items under the well-known shell folder FOLDERID_Libraries? The ID for this folder should be in KnownFolders.h in the latest version of the Windows SDK.

For each shell item that you come across under this folder, you should be able to call SHLoadLibraryFromItem to "load" the library if you need access to an IShellLibrary object for it.

Reuben
Thx man already done that and now everything works thx for the reply
Red Serpent