SHBrowseForFolder & setting root folder

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

  1. JerryWest

    JerryWest New Member

    Joined:
    Oct 1, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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?

    Thanks,

    JW
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice