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

    Question by:


    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.



    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:


    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


    RELATED TOPICS view all topics

    1. MS Excel
    2. VB Script
    3. MS Access
    4. .NET Programming
    5. Visual Basic.NET
    6. MS Development
    7. Programming Languages
    8. Programming
    9. MS Office
    10. MS Word