VB6 code - using SHBrowseForFolder API Function - how to prevent access to network folders?

    Question by:
    On

    Topics:

    Hi Experts,

    I am using VB^ code (see article here:  http://www.codeguru.com/vb/controls/vb_shell/article.php/c3051/ ) that uses the SHBrowseForFolder API Function.

    How can I modify that code so that will either:

    a. hide network folders?, OR
    b. prevent access to network folders?

    I already suspect a simple solution is to check for folders that start with "\\", but I am hoping for a more sophisicated solution.

    Regards,
    Leigh

     

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2008-08-27 at 05:49:48ID: 22324124

    You can just simply assign it:

    .pIDLRoot=CSIDL_DRIVES

    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone. Privacy Policy Terms of Use

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201507-LO-Qu-065