1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SHBrowseForFolder & setting root folder

Discussion in 'Shell Script' started by JerryWest, Oct 1, 2006.

  1. JerryWest

    JerryWest New Member

    Oct 1, 2006
    Likes Received:
    Trophy Points:
    I'm using SHBrowseForFolder API to generate a folder browse dialog. I'd like to set a default folder from which the browse dialog will open to. This is accomplished by setting the BROWSEINFO structure's .pidlRoot property to the PIDL of the root folder from which to start browsing. How does one get the PIDL of any folder? It seems this member only supports the special shell folders whose CSIDL values must be converted to PIDL values. Is there a function which will take the path of any folder and return a PIDIL?



Share This Page